This commit is contained in:
yanran200730
2022-01-12 16:28:50 +08:00
parent b818df0599
commit befcbf25c8

View File

@@ -38,8 +38,13 @@
<template #content>
<ai-wrapper
label-width="120px">
<ai-info-item label="体温" :value="info.temperature + '℃'"></ai-info-item>
<ai-info-item label="当前健康状况" :value="info.status === '0' ? '异常' : '正常'"></ai-info-item>
<ai-info-item label="当前体温" :value="info.temperature + '℃'"></ai-info-item>
<ai-info-item label="14天内是否接触新冠确诊或疑似患者">
<span>{{ dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen) }}</span>
</ai-info-item>
<ai-info-item label="当前健康状况" :value="info.status === '0' ? '异常' : '正常'">
<span>{{ info.healthName }}</span>
</ai-info-item>
</ai-wrapper>
</template>
</ai-card>
@@ -169,6 +174,15 @@
if (res.code === 0) {
this.info = res.data
this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : []
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
}
})
},