26657
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user