From d55355267b0a0039558634251b1ce2d17df267c6 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 27 Sep 2022 14:58:48 +0800 Subject: [PATCH] bug --- .../pingchang/AppGetewayRegister/getewayAdd.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index 98b8ca9..7653d56 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -379,13 +379,13 @@ export default { onLoad(o) { - if(o.length) { + if(o.id) { this.form.id = o?.id this.getInfo(o.id) - this.form.gatewayId = decodeURIComponent(o.scene) || '' } + this.form.gatewayId = decodeURIComponent(o.scene) || '' this.$areaId = this.user.$areaId - this.travelTypeDict = this.$dict.getDict('EP_travelType') + this.travelTypeDict = this.$dict.getDict('epidemicRecentTravel') this.getewayList() }, @@ -464,8 +464,8 @@ export default { } }).then(res => { if(res?.data) { - this.form.name = res.data.records?.[0].name - this.form.phone = res.data.records?.[0].phone + this.form.name = res.data.records?.[0]?.name || '' + this.form.phone = res.data.records?.[0]?.phone || '' } }) },