From c11b74d689b6a80b357ef4688addc786f9ea110d Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 12 Oct 2022 15:37:08 +0800 Subject: [PATCH] 31088 --- .../apps/AppHealthReport/components/Detail.vue | 14 +++++++++++++- .../apps/AppHealthReport/components/List.vue | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/project/pingchang/apps/AppHealthReport/components/Detail.vue b/project/pingchang/apps/AppHealthReport/components/Detail.vue index f9325d31..5e4a9703 100644 --- a/project/pingchang/apps/AppHealthReport/components/Detail.vue +++ b/project/pingchang/apps/AppHealthReport/components/Detail.vue @@ -103,7 +103,19 @@ colConfigs1: [ {prop: 'createTime', label: '上报日期', align: 'center' }, {prop: 'phone', label: '上报位置', align: 'center'}, - {prop: 'status', label: '健康状态', align: 'center', formart: v => v === '0' ? '正常' : '异常' }, + { prop: 'status', + label: '健康状态', + align: 'center', + render: (h, params) => { + return h( + 'span', { + style: { + color: params.row.status === '1' ? 'red' : '' + } + }, params.row.status === '0' ? '正常' : '异常' + ) + } + }, {slot: 'nucleicAcidUrl', label: '核酸截图', align: 'center'} ], colConfigs2: [ diff --git a/project/pingchang/apps/AppHealthReport/components/List.vue b/project/pingchang/apps/AppHealthReport/components/List.vue index 8431d7fa..c3d7d92b 100644 --- a/project/pingchang/apps/AppHealthReport/components/List.vue +++ b/project/pingchang/apps/AppHealthReport/components/List.vue @@ -148,7 +148,20 @@ ) } }, - { prop: 'status', align: 'center', label: '健康状态', formart: v => v === '0' ? '正常' : '异常' }, + { + prop: 'status', + align: 'center', + label: '检测结果', + render: (h, params) => { + return h( + 'span', { + style: { + color: params.row.status === '1' ? 'red' : '' + } + }, params.row.status === '0' ? '正常' : '异常' + ) + } + }, { prop: 'todayReport', align: 'center', label: '今日上报', formart: v => v ? '已上报' : '未上报' } ], tableData: [],