This commit is contained in:
shijingjing
2022-09-27 14:58:48 +08:00
parent e1a1f46ca7
commit d55355267b

View File

@@ -379,13 +379,13 @@ export default {
onLoad(o) { onLoad(o) {
if(o.length) { if(o.id) {
this.form.id = o?.id this.form.id = o?.id
this.getInfo(o.id) this.getInfo(o.id)
this.form.gatewayId = decodeURIComponent(o.scene) || ''
} }
this.form.gatewayId = decodeURIComponent(o.scene) || ''
this.$areaId = this.user.$areaId this.$areaId = this.user.$areaId
this.travelTypeDict = this.$dict.getDict('EP_travelType') this.travelTypeDict = this.$dict.getDict('epidemicRecentTravel')
this.getewayList() this.getewayList()
}, },
@@ -464,8 +464,8 @@ export default {
} }
}).then(res => { }).then(res => {
if(res?.data) { if(res?.data) {
this.form.name = res.data.records?.[0].name this.form.name = res.data.records?.[0]?.name || ''
this.form.phone = res.data.records?.[0].phone this.form.phone = res.data.records?.[0]?.phone || ''
} }
}) })
}, },