From e8d946a82907aa530ff086987d3ec7d2c04a90d2 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期二, 15 十一月 2022 13:09:55 +0800 Subject: [PATCH] 默认更改列表 --- src/views/specialWorkManage/workFlow/approveRule/index.vue | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/specialWorkManage/workFlow/approveRule/index.vue b/src/views/specialWorkManage/workFlow/approveRule/index.vue index ec77eb0..8739001 100644 --- a/src/views/specialWorkManage/workFlow/approveRule/index.vue +++ b/src/views/specialWorkManage/workFlow/approveRule/index.vue @@ -42,16 +42,20 @@ <el-table-column property="ruleName" label="任务名称" /> <el-table-column property="workType" label="作业类型"> <template slot-scope="scope"> - <span> - {{ parseNumber(scope.row.workType, '作业类型') }} - </span> + <div v-for="item in workTypeList"> + <div v-if="scope.row.workType === item.id"> + <span>{{item.name}}</span> + </div> + </div> </template> </el-table-column> <el-table-column property="workLevel" label="作业等级"> <template slot-scope="scope"> - <span> - {{ parseNumber(scope.row.workLevel, '作业等级') }} - </span> + <div v-for="item in workLevelList"> + <div v-if="scope.row.workLevel === item.id"> + <span>{{item.name}}</span> + </div> + </div> </template> </el-table-column> <el-table-column prop="createUname" label="创建人" show-overflow-tooltip></el-table-column> @@ -151,7 +155,7 @@ } else { this.$message({ type: 'warning', - message: res.data.msg + message: res.data.message }); } }, @@ -189,9 +193,8 @@ confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' - }) - .then(async () => { - let res = await approveRuleApi().deleteApproveRule({ ids: [row.id] }); + }).then(async () => { + let res = await approveRuleApi().deleteApproveRule({ ids: [row.ruleId] }); this.deleteList.ids = []; if (res.data.code === '200') { this.$message({ @@ -203,7 +206,7 @@ } else { this.$message({ type: 'warning', - message: res.data.msg + message: res.data.message }); } }) @@ -228,7 +231,7 @@ } else { this.$message({ type: 'warning', - message: res.data.msg + message: res.data.message }); } }) -- Gitblit v1.9.2