44 lines
1.1 KiB
Vue
44 lines
1.1 KiB
Vue
<!--
|
|
* @Author: zhp
|
|
* @Date: 2023-01-31 09:49:36
|
|
* @LastEditTime: 2023-04-17 11:10:37
|
|
* @LastEditors: zhp
|
|
* @Description:
|
|
-->
|
|
<template>
|
|
<span>
|
|
<el-tag
|
|
v-if="injectData.controlStatus === 1 || injectData.customerTypeStatus === 1 || injectData.customerStatus === 1 || injectData.failureTypeStatus === 1 || injectData.productTypeStatus === 1"
|
|
type="success">可用</el-tag>
|
|
<el-tag v-else type="warning">不可用</el-tag>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
// import { addDynamicRoute } from '@/router'
|
|
export default {
|
|
props: {
|
|
injectData: {
|
|
type: Object,
|
|
default: () => ({})
|
|
}
|
|
},
|
|
methods: {
|
|
// 子级
|
|
// emitClick () {
|
|
// // 路由参数
|
|
// const routeParams = {
|
|
// routeName: `${this.$route.name}__${this.injectData.id}`,
|
|
// title: `${this.$route.meta.title} - ${this.injectData.dictType}`,
|
|
// path: 'sys/dict-data',
|
|
// params: {
|
|
// dictTypeId: this.injectData.id
|
|
// }
|
|
// }
|
|
// // 动态路由
|
|
// addDynamicRoute(routeParams, this.$router)
|
|
// }
|
|
}
|
|
}
|
|
</script>
|