From 9f223956050d1ed6a86351fefe907410c537b61e Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Mon, 17 Aug 2020 14:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E6=93=8D=E4=BD=9C=E7=BB=84=E4=BB=B6=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=8F=91=E5=B8=83=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/ningbo_01/menus/dialog/setFault.vue | 129 ------------ .../ningbo_01/menus/dialog/standDetail.vue | 19 +- .../ningbo_01/menus/dialog/stationControl.vue | 4 +- .../menus/dialog/trainDeletePlan.vue | 169 ---------------- .../ningbo_01/menus/dialog/trainEdit.vue | 181 ----------------- .../ningbo_01/menus/dialog/trainFlag.vue | 160 --------------- .../menus/dialog/trainMoveEvently.vue | 189 ------------------ .../theme/ningbo_01/menus/menuTrain.vue | 3 - .../newDesignUser/mapmanage/publish.vue | 8 +- 9 files changed, 10 insertions(+), 852 deletions(-) delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue delete mode 100644 src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue deleted file mode 100644 index 93b1e6f44..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue index 89bed56d2..79d43388a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue @@ -17,12 +17,10 @@ :default-expand-all="true" style="background: #f0f0f0;" > -
+
{{ data.name }}
-
+
{{ data.name }}
{{ data.value }}
@@ -108,11 +106,6 @@ export default { }, { children: [ - // { - // name: '上行站台', - // value: '', - // level: 2 - // }, { name: '站台', value: '', @@ -179,19 +172,15 @@ export default { // 车站扣车 this.treeData[1].children[1].value = selected.stationHoldTrain ? '已设置' : '未设置'; // 停站时间 - this.treeData[0].children[2].value = selected.parkingTime == 0 ? '自动' : `${selected.parkingTime} 秒`; + this.treeData[0].children[2].value = selected.parkingTime >= 0 ? `${selected.parkingTime} 秒` : '自动'; // 跳停 this.treeData[0].children[3].value = selected.allSkip || selected.assignSkip ? '已设置' : '未设置'; - // if (selected.direction == '01') { - // 待添加 - // } + if (!stationStand || !station) { this.treeData[2].children[0].value = `自动`; } else { this.treeData[2].children[0].value = selected.runLevelTime > 0 ? `至${station.name}${stationStand.name}:人工` : `至${station.name}${stationStand.name}:自动`; } - // 待添加 - // this.tempData.push({ item: '下行折返策略', status: this.strategyMap[selected.reentryStrategy] ? this.strategyMap[selected.reentryStrategy] : '默认' }); }, doShow(operate, selected) { this.selected = selected; diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue index 6cbd3cbc2..f79a2eb45 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue @@ -15,8 +15,8 @@ diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue deleted file mode 100644 index 22ffb19e1..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue deleted file mode 100644 index cb2aa2985..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue deleted file mode 100644 index 39b3b619a..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue deleted file mode 100644 index ed0996eb8..000000000 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue index 240ede036..40451b18d 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue @@ -5,10 +5,7 @@ - - - diff --git a/src/views/newMap/newDesignUser/mapmanage/publish.vue b/src/views/newMap/newDesignUser/mapmanage/publish.vue index 4c1432b64..487903c83 100644 --- a/src/views/newMap/newDesignUser/mapmanage/publish.vue +++ b/src/views/newMap/newDesignUser/mapmanage/publish.vue @@ -78,7 +78,6 @@ export default { this.$refs.form.validate((valid) => { if (valid) { this.loading = true; - delete this.editModel.children; this.verifyMapName(); } }); @@ -93,12 +92,13 @@ export default { } } catch (error) { console.log(error); + this.loading = false; } }, confirmPublish() { - this.$confirm(this.$t('map.verifyMapName'), this.$t('tip.hint'), { - confirmButtonText: this.$t('tip.confirm'), - cancelButtonText: this.$t('tip.cancel'), + this.$confirm('地图名称重复,您确认发布此地图将会覆盖公共地图?', '提示', { + confirmButtonText: '确 定', + cancelButtonText: '取 消', type: 'warning' }).then(() => { this.publishMap();