From ca677c232e3308aaa0429782b1600faa5110055c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 26 Aug 2022 17:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/indicatorAssociatedInfo/route.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/indicatorAssociatedInfo/route.vue b/src/views/newMap/newMapdraft/dataRelation/indicatorAssociatedInfo/route.vue index e36130c36..946dd5c50 100644 --- a/src/views/newMap/newMapdraft/dataRelation/indicatorAssociatedInfo/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/indicatorAssociatedInfo/route.vue @@ -158,7 +158,7 @@ export default { directionLabelList: ConstConfig.ConstSelect.directionLabelList, ioDirectionList: ConstConfig.ConstSelect.ioDirectionList, addModel:{ - id:'', + id:'', code: '', name:'', stationCode: '', @@ -266,8 +266,8 @@ export default { that.$refs.form.validate((valid) => { if (valid) { const newModel = deepAssign({}, that.addModel); - if (that.isModify) { - delete newModel.code; + if (!that.isModify) { + delete newModel.id; } // newModel.code = setUID('Route'); that.loading = true; @@ -292,7 +292,7 @@ export default { this.$refs.form.resetFields(); this.isModify = false; this.addModel = { - id:'', + id:'', code: '', name:'', stationCode: '',