From 5a072c72365e838c065ae49a5a7f6eb6406ec7f5 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 3 Aug 2022 14:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/bigroutingoperate/route.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue index 39d8d1590..16a257d8f 100644 --- a/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue @@ -423,7 +423,16 @@ export default { api(newModel, that.mapInfo.id, newModel.code).then(res=>{ that.$message.success(that.$t(this.isModify ? 'tip.updateSuccessfully' : 'tip.creatingSuccessful')); that.loading = false; - if (!this.isModify && !newModel.multiRoute) { that.routeList.push({code:newModel.code, name:newModel.name, stationCode: newModel.stationCode || ''}); } + if (!this.isModify && !newModel.multiRoute) { + let sCode = newModel.stationCode; + if (!sCode && newModel.startSignalCode) { + const startSignalObj = that.signalList.find(item => { + return item.code == newModel.startSignalCode; + }); + sCode = startSignalObj ? startSignalObj.stationCode : ''; + } + that.routeList.push({code:newModel.code, name:newModel.name, stationCode: sCode || ''}); + } that.clear(); }).catch(() => { that.$messageBox(that.$t(this.isModify ? 'tip.updateFailed' : 'tip.operationAbnormal'));