From b5c85e0031aed8fa1a8621055a5c72685faff40d Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 26 Jul 2022 17:55:35 +0800 Subject: [PATCH] bug --- .../apps/Announce/AppAnnounce/components/List.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/project/sass/apps/Announce/AppAnnounce/components/List.vue b/project/sass/apps/Announce/AppAnnounce/components/List.vue index f711b551..a0abd6bc 100644 --- a/project/sass/apps/Announce/AppAnnounce/components/List.vue +++ b/project/sass/apps/Announce/AppAnnounce/components/List.vue @@ -119,7 +119,18 @@ { prop: 'sendType', label: '群发类型', formart: v => v === '0' ? '立即发送' : '定时发送', align: 'center' }, { slot: 'user', label: '创建人', openType: 'userName', align: 'center' }, { prop: 'createTime', label: '群发时间', align: 'center' }, - { prop: 'status', label: '状态', formart: v => this.dict.getLabel('mstStatus', v), align: 'center' }, + { + prop: 'status', + align: 'center', + label: '状态', + render: (h, {row}) => { + return h('span', { + style: { + color: this.dict.getColor('mstStatus', row.status) + } + }, this.dict.getLabel('mstStatus', row.status)) + } + }, { prop: 'completionRate', label: '任务完成率', align: 'center' } ] }