diff --git a/project/sass/apps/AppHealthReport/components/Detail.vue b/project/sass/apps/AppHealthReport/components/Detail.vue index e5010d3d..2bd8aad2 100644 --- a/project/sass/apps/AppHealthReport/components/Detail.vue +++ b/project/sass/apps/AppHealthReport/components/Detail.vue @@ -18,7 +18,7 @@ @@ -28,7 +28,6 @@ width="890px" customFooter title="上报详情"> - @@ -41,30 +40,6 @@ {{ reportInfo.healthName }} - - - - {{ reportInfo.checkTime && reportInfo.checkTime.split(' ')[0] }} - - - {{ $dict.getLabel('epidemicRecentTestResult', reportInfo.checkResult) }} - - - {{ $dict.getLabel('epidemicHealthCode', reportInfo.healthCode) }} - - - {{ $dict.getLabel('epidemicVaccineTime', reportInfo.vaccine) }} - - - - - - @@ -106,10 +81,8 @@ }, created () { - console.log(this.params) if (this.params && this.params.id) { this.id = this.params.id - console.log(this.id) this.dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => { this.getList() }) @@ -117,24 +90,17 @@ }, methods: { - toDetail (id) { - this.instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => { - if (res.code === 0) { - this.reportInfo = res.data - this.reportInfo.checkPhoto = JSON.parse(res.data.checkPhoto) - let healthName = '' - this.reportInfo.isHealth = false - res.data.health.split(',').forEach(v => { - if (v > 0) { - this.reportInfo.isHealth = true - } - healthName = healthName + this.dict.getLabel('epidemicRecentHealth', v) - }) - this.reportInfo.healthName = healthName - - this.isShow = true + toDetail (e) { + this.reportInfo = e + let healthName = '' + e.health.split(',').forEach(v => { + if (v > 0) { + this.reportInfo.isHealth = true } + healthName = healthName + this.dict.getLabel('epidemicRecentHealth', v) }) + this.reportInfo.healthName = healthName + this.isShow = true }, getList () {