From 1d63ad4b362b7802790d2e50abbf24e108834cce Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Sun, 26 Apr 2020 18:49:22 +0800 Subject: [PATCH 1/5] =?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/dwellTimeOperate/dwellTime.vue | 2 +- .../newMapdraft/dataRelation/routingoperate/route.vue | 8 +++++--- .../newMapdraft/dataRelation/runLeveloperate/detail.vue | 5 ++++- .../newMapdraft/dataRelation/runLeveloperate/route.vue | 6 ++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue index 6af6d89a4..e9ba5804c 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue @@ -4,7 +4,7 @@
- + {{ $t('map.activate') }} - + {{ $t('map.activate') }} @@ -49,7 +50,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} - + diff --git a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue index 308c89068..4c12cf2d3 100644 --- a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue @@ -89,7 +89,10 @@ export default { }, { title: '站间距离', - prop: 'distance' + prop: 'distance', + type: 'tag', + columnValue: (row) => { return row.distance + ' m'; }, + tagType: (row) => { return 'success'; } }, { title: '第一等级时间', diff --git a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue index e826094c7..7607a8827 100644 --- a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue @@ -19,7 +19,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} @@ -47,7 +48,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} From f318854de7b487cdbfe471d705089a4263a6cf43 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 10:06:17 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=96=B0=E7=89=88=E7=BB=98=E5=9B=BE=20=20?= =?UTF-8?q?=E4=BA=A4=E8=B7=AF=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/routingoperate/route.vue | 83 ++++++++++++++----- 1 file changed, 61 insertions(+), 22 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue index 74895d6d1..d7755bc7c 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue @@ -20,8 +20,8 @@ @click="hover('startStationCode')" >{{ $t('map.activate') }} - - + + {{ $t('map.activate') }} - - + + {{ $t('map.activate') }} - - + + { return elem.sectionCode == data.sectionCode; }); @@ -369,16 +369,55 @@ export default { if (index < 0) { list.splice(list.length - 1, 0, data); } else { - this.$messageBox(this.$t('tip.routeSameID')); + this.$messageBox('该区段已经在交路区段中存在'); } break; } case 'top': { - list.splice(0, 1, data); + if (isStation) { + if (index < 0) { + list.splice(0, 1, data); + } + } else { + if (index < 0) { + list.splice(0, 1, data); + } else { + if (index == list.length - 1) { + this.$messageBox('起始区段和终到区段不能相同'); + this.addModel.startSectionCode = list[0].sectionCode; + } else { + this.$messageBox('该区段已经在交路区段中存在'); + } + } + } break; } case 'bottom': { - list.splice(list.length, 1, data); + if (isStation) { + if (index < 0) { + if (list.length >= 2) { + list.splice(list.length - 1, 1, data); + } else { + list.push(data); + } + } + } else { + if (index < 0) { + if (list.length >= 2) { + list.splice(list.length - 1, 1, data); + } else { + list.push(data); + } + } else { + if (index == 0) { + this.$messageBox('起始区段和终到区段不能相同'); + this.addModel.endSectionCode = list[list.length - 1].sectionCode; + } else { + this.$messageBox('该区段已经在交路区段中存在'); + } + } + } + break; } default: { From 0fb3536fff375b179812bb6d44695f558b495dbf Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 10:54:42 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=BB=98=E5=88=B6=20=E4=BA=A4=E8=B7=AF=20=E5=81=9C=E7=AB=99?= =?UTF-8?q?=E6=97=B6=E9=97=B4=20=E8=AE=BE=E7=BD=AE=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=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/dwellTimeOperate/detail.vue | 57 ++++--------------- .../dwellTimeOperate/dwellTime.vue | 14 ++++- .../dataRelation/routingoperate/detail.vue | 23 +++++--- .../dataRelation/runLeveloperate/detail.vue | 4 +- 4 files changed, 38 insertions(+), 60 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue index 75e1092b2..644f959df 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue @@ -1,5 +1,5 @@