From 73980d8dde0b181dc4e9d27c15fcec42bd072919 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 3 Nov 2022 10:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/tianfuxing/AppTaskReview/AppTaskReview.vue | 13 ++++++++++--- project/tianfuxing/AppUserList/AppUserList.vue | 4 +--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/project/tianfuxing/AppTaskReview/AppTaskReview.vue b/project/tianfuxing/AppTaskReview/AppTaskReview.vue index 13086e07..249f2947 100644 --- a/project/tianfuxing/AppTaskReview/AppTaskReview.vue +++ b/project/tianfuxing/AppTaskReview/AppTaskReview.vue @@ -67,7 +67,7 @@ export default { } }, created () { - this.$dict.load('integralCalcType', 'electionMethod').then(()=> { + this.$dict.load('tfx_status', 'tfx_listType').then(()=> { this.getList() }) }, @@ -76,9 +76,16 @@ export default { return [ {slot: "accessUrl", align: "left"}, {prop: "userName", label: "上传人", align: "center"}, - {prop: "type", label: "任务分类", align: "center",dict:"electionMethod"}, + {prop: "type", label: "任务分类", align: "center",dict:"tfx_listType"}, {prop: "createTime", label: "上传时间", align: "center"}, - {prop: "status", label: "状态", align: "center"}, + { + prop: "status", + label: "状态", + align: "center", + render: (h, {row}) => { + return h('span', {style: {color: this.dict.getColor('tfx_status', row.status)}}, this.dict.getLabel('tfx_status', row.status)) + }, + }, {prop: "auditUserName", label: "处理人", align: "center"}, {slot: "options"}, ] diff --git a/project/tianfuxing/AppUserList/AppUserList.vue b/project/tianfuxing/AppUserList/AppUserList.vue index 363565cb..6d2b8c83 100644 --- a/project/tianfuxing/AppUserList/AppUserList.vue +++ b/project/tianfuxing/AppUserList/AppUserList.vue @@ -67,9 +67,7 @@ export default { } }, created () { - this.$dict.load('integralCalcType', 'electionMethod').then(()=> { - this.getList() - }) + this.getList() }, computed: { ...mapState(['user']),