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: [],