|
|
@@ -37,6 +37,9 @@
|
|
|
{{ row.planCode }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+ <template v-slot:planStatus="{ row }">
|
|
|
+ {{ dict.planStatus[row.planStatus] }}
|
|
|
+ </template>
|
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
|
@@ -78,6 +81,7 @@
|
|
|
import AddPatrolPlanDialog from '@/components/addPatrolPlanDialog';
|
|
|
import PlanSearch from './components/plan-search.vue';
|
|
|
import { getPage, revocation } from '@/api/maintenance/patrol_maintenance';
|
|
|
+ import { getByCode } from '@/api/system/dictionary-data';
|
|
|
export default {
|
|
|
components: {
|
|
|
PlanSearch,
|
|
|
@@ -140,6 +144,7 @@
|
|
|
},
|
|
|
{
|
|
|
prop: 'planStatus',
|
|
|
+ slot: 'planStatus',
|
|
|
label: '计划状态',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
@@ -182,10 +187,18 @@
|
|
|
// 加载状态
|
|
|
loading: false,
|
|
|
pageType: 'add',
|
|
|
- isBindPlan: false
|
|
|
+ isBindPlan: false,
|
|
|
+ dict: {
|
|
|
+ planStatus: {}
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
+ async mounted() {
|
|
|
+ const res = await getByCode('plan_status');
|
|
|
+ const statusObject = Object.assign({}, ...res.data);
|
|
|
+ this.dict.planStatus = statusObject;
|
|
|
+ },
|
|
|
methods: {
|
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where, order }) {
|