This commit is contained in:
yanran200730
2022-10-12 15:37:08 +08:00
parent ac5400fb6c
commit c11b74d689
2 changed files with 27 additions and 2 deletions

View File

@@ -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: [

View File

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