From bb7556a876573280bc493d5ce476e9b88373d42b Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Sat, 9 May 2020 14:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=81=E6=B3=A2=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E6=93=8D=E4=BD=9C=E5=A4=B1=E8=B4=A5=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Section/index.js | 1 + .../ningbo_01/menus/dialog/alxeEffective.vue | 4 +- .../childDialog/childDialog/noticeInfo.vue | 126 +++-- .../dialog/childDialog/confirmControl.vue | 4 +- .../ningbo_01/menus/dialog/routeControl.vue | 6 +- .../ningbo_01/menus/dialog/routeDetail.vue | 2 +- .../menus/dialog/routeHandControl.vue | 4 +- .../ningbo_01/menus/dialog/routeLock.vue | 4 +- .../ningbo_01/menus/dialog/routeSelection.vue | 12 +- .../ningbo_01/menus/dialog/routeUnLock.vue | 16 +- .../ningbo_01/menus/dialog/routerCommand.vue | 4 +- .../menus/dialog/sectionAlxeReset.vue | 4 +- .../ningbo_01/menus/dialog/sectionControl.vue | 2 +- .../ningbo_01/menus/dialog/sectionUnLock.vue | 16 +- .../menus/dialog/standBackStrategy.vue | 3 +- .../menus/dialog/standBulkBuckleTrain.vue | 12 +- .../ningbo_01/menus/dialog/standControl.vue | 4 +- .../menus/dialog/standJumpStopControl.vue | 8 +- .../ningbo_01/menus/dialog/standRunLevel.vue | 1 - .../ningbo_01/menus/dialog/standStopTime.vue | 4 +- .../ningbo_01/menus/dialog/stationControl.vue | 4 +- .../menus/dialog/stationHumanControlAll.vue | 2 +- .../dialog/stationSetRouteControlAll.vue | 2 +- .../ningbo_01/menus/dialog/switchControl.vue | 4 +- .../ningbo_01/menus/dialog/switchUnLock.vue | 16 +- .../ningbo_01/menus/dialog/trainDefine.vue | 2 +- .../ningbo_01/menus/dialog/trainDelete.vue | 2 +- .../menus/dialog/trainDeletePlan.vue | 282 +++++----- .../ningbo_01/menus/dialog/trainEdit.vue | 2 +- .../ningbo_01/menus/dialog/trainFlag.vue | 2 +- .../ningbo_01/menus/dialog/trainMove.vue | 2 +- .../menus/dialog/trainMoveEvently.vue | 302 +++++----- .../ningbo_01/menus/dialog/trainSetHead.vue | 2 +- .../ningbo_01/menus/dialog/trainSetPlan.vue | 2 +- .../ningbo_01/menus/dialog/trainSetWork.vue | 2 +- .../menus/dialog/trainSetWorkATP.vue | 2 +- .../menus/dialog/turnBackControl.vue | 7 +- .../childDialog/twoConfirmation.vue | 4 +- .../menus/menuDialog/detainTrainContorl.vue | 281 +++++----- .../menuDialog/detainTrainContorlUpDown.vue | 320 +++++------ .../ningbo_01/menus/menuDialog/trainAdd.vue | 285 +++++----- .../menus/menuDialog/trainDelete.vue | 255 ++++----- .../menus/menuDialog/trainTranstalet.vue | 285 +++++----- .../theme/ningbo_01/menus/menuSection.vue | 4 +- .../theme/ningbo_01/menus/menuSignal.vue | 8 +- .../theme/ningbo_01/menus/menuStation.vue | 12 +- .../ningbo_01/menus/menuStationStand.vue | 8 +- .../theme/ningbo_01/menus/menuSwitch.vue | 8 +- .../theme/ningbo_01/menus/menuTrain.vue | 18 +- .../ningbo_01/menus/passiveDialog/control.vue | 520 +++++++++--------- .../newMap/newMapdraft/mapoperate/index.vue | 2 +- .../newMapdraft/mapoperate/section/index.vue | 3 +- 52 files changed, 1473 insertions(+), 1414 deletions(-) diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 341c6869e..5dc6206d1 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -238,6 +238,7 @@ export default class Section extends Group { } /** 目的码名称*/ + console.log(model.destinationCode, model.destinationNameShow); if (model.destinationCode && model.destinationNameShow && style.Section.destinationText.show) { const opposite = style.Section.destinationText.opposite ? -1 : 1; const tempx = x + traingle.getSin(style.Section.destinationText.distance); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue index c25c4d969..c3f15a821 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue @@ -361,10 +361,10 @@ export default { // Object.assign(this.operate, {val: operate.val}), [`集中站 ${this.model.stationName} 区段 ${this.model.sectionName}报告恢复计轴有效`] // ); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); } else { if (this.model.stationCode != this.model.confirmStationCode) { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/childDialog/noticeInfo.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/childDialog/noticeInfo.vue index 444a28d5f..2bae49f17 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/childDialog/noticeInfo.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/childDialog/noticeInfo.vue @@ -1,72 +1,80 @@ - - - - {{message}} - - - - - 确定 - - - + + + + {{ message }} + + + + + 确定 + + + \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControl.vue index 166e5c6f0..73417e455 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/childDialog/confirmControl.vue @@ -135,10 +135,10 @@ export default { if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeControl.vue index f06c1f6e2..7126d66a4 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeControl.vue @@ -183,10 +183,10 @@ export default { if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, // 取消 @@ -201,7 +201,7 @@ export default { } }).catch(() => { this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue index 237066fbb..80f0b5cbc 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeDetail.vue @@ -144,7 +144,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeHandControl.vue index 1b9bf35ce..2671a8003 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeHandControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeHandControl.vue @@ -283,10 +283,10 @@ export default { if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeLock.vue index 3521fb45a..344d071f3 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeLock.vue @@ -147,10 +147,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue index 1a9387fde..f62ef0f73 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue @@ -107,8 +107,14 @@ export default { this.stationName = station.name; } } + const routeList = JSON.parse(JSON.stringify(tempData || [])); - this.tempData = tempData || []; + this.tempData = routeList; + this.tempData.forEach(route => { + if (route.turnBack) { + route.name = `${route.name}(Z)`; + } + }); this.operation = operate.operation; } this.dialogShow = true; @@ -188,10 +194,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); } }, diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue index c4c738f62..be59d641b 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue @@ -159,8 +159,8 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, @@ -178,8 +178,8 @@ export default { this.disabledConfirm2 = false; this.timeCountConfirm = 60; // 倒计时 } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, confirm2() { @@ -196,8 +196,8 @@ export default { this.disabledConfirm2 = true; this.timeCountConfirm = -1; } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); } else { this.message = '选择信号机错误'; @@ -212,9 +212,9 @@ export default { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.doClose(); - }).catch((error) => { + }).catch(() => { this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue index b027ff4d1..3dbc3280a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue @@ -112,10 +112,10 @@ export default { if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionAlxeReset.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionAlxeReset.vue index 33a16f85a..d0e430f31 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionAlxeReset.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionAlxeReset.vue @@ -133,10 +133,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionControl.vue index 81dcfaa08..cd5846af7 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionControl.vue @@ -168,7 +168,7 @@ export default { }).catch(error => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue index 214c3a945..cc7efd075 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue @@ -206,8 +206,8 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, @@ -231,8 +231,8 @@ export default { this.disabledConfirm2 = false; this.timeCountConfirm = 60; // 倒计时 } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, confirm2() { @@ -258,8 +258,8 @@ export default { this.disabledConfirm2 = true; this.timeCountConfirm = -1; } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); } else { this.message = '选择区段错误'; @@ -279,9 +279,9 @@ export default { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.doClose(); - }).catch((error) => { + }).catch(() => { this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standBackStrategy.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standBackStrategy.vue index 4b097fd5d..87d4169ff 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standBackStrategy.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standBackStrategy.vue @@ -120,7 +120,6 @@ export default { methods: { loadInitData(selected, opts) { this.tempData = []; - const stationList = [...this.stationList]; const station = this.stationList.find(n => n.code == selected.stationCode); this.tempData.push({ name: station.name, station: selected.name, strategy: opts.reentryStrategy }); this.$nextTick(() => { @@ -204,7 +203,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); } else { this.doClose(); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue index 803660914..f28e29f25 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue @@ -205,12 +205,12 @@ export default { this.loading = false; this.doClose(); if (!valid) { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(); }); }, // 批量取消扣车 @@ -242,12 +242,12 @@ export default { this.loading = false; this.doClose(); if (!valid) { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, [error.message]); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standControl.vue index 4dab861ce..314fa53e5 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standControl.vue @@ -333,10 +333,10 @@ export default { if (valid) { this.doClose(); } - }).catch(error => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standJumpStopControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standJumpStopControl.vue index 7bc1ba2d3..9ee4f97f1 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standJumpStopControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standJumpStopControl.vue @@ -243,10 +243,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, // 取消跳停 @@ -257,10 +257,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standRunLevel.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standRunLevel.vue index 96c5b546f..d1b23246d 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standRunLevel.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standRunLevel.vue @@ -296,7 +296,6 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - // this.$refs.noticeInfo.doShow({}, error.message); }); } else { this.doClose(); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standStopTime.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standStopTime.vue index fdb4f68d5..b89236e3e 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standStopTime.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standStopTime.vue @@ -206,10 +206,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue index b2233e491..b9b18c09d 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue @@ -249,10 +249,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); } }, diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue index ab2d6b445..a4c2bc2b1 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue @@ -98,7 +98,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationSetRouteControlAll.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationSetRouteControlAll.vue index 61ae8dab8..5fd13e082 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationSetRouteControlAll.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationSetRouteControlAll.vue @@ -117,7 +117,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/switchControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/switchControl.vue index f647f8e09..25737c572 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/switchControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/switchControl.vue @@ -233,10 +233,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue index 1058ad313..4ab887b2e 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/switchUnLock.vue @@ -190,8 +190,8 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, @@ -215,8 +215,8 @@ export default { this.disabledConfirm2 = false; this.timeCountConfirm = 60; // 倒计时 } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); }, confirm2() { @@ -240,8 +240,8 @@ export default { this.disabledConfirm2 = true; this.timeCountConfirm = -1; } - }).catch((error) => { - this.$refs.noticeInfo.doShow(operate, error.message); + }).catch(() => { + this.$refs.noticeInfo.doShow(); }); } else { this.message = '选择道岔错误'; @@ -262,9 +262,9 @@ export default { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.doClose(); - }).catch((error) => { + }).catch(() => { this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow(); }); } } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDefine.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDefine.vue index 821001381..a86072b4d 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDefine.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDefine.vue @@ -146,7 +146,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDelete.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDelete.vue index 9d969581d..d83f8f9e3 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDelete.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDelete.vue @@ -144,7 +144,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); } else { return false; diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue index bcd707893..22ffb19e1 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainDeletePlan.vue @@ -1,157 +1,161 @@ - - - - - - - - - 终 端: - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - + + + + + + + + + 终 端: + + + + + + + + + + + + + + 确定 + + + 取 消 + + + \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue index 3f663a94a..9c5409c32 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainEdit.vue @@ -146,7 +146,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue index a0fe79a5e..64103d467 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainFlag.vue @@ -125,7 +125,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMove.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainMove.vue index fca33d07b..1d16deb53 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMove.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainMove.vue @@ -146,7 +146,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue index 11083a3d9..ed0996eb8 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainMoveEvently.vue @@ -1,177 +1,181 @@ - - - - + + + - - - 源 - - - - - - - - - 目的 - - - 终 端: - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - + + + + + + + 目的 + + + 终 端: + + + + + + + + + + + + + + 确定 + + + 取 消 + + + \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetHead.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetHead.vue index 858d3865d..7e724d24a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetHead.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetHead.vue @@ -146,7 +146,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetPlan.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetPlan.vue index da51f9241..d2bb4f025 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetPlan.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetPlan.vue @@ -139,7 +139,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWork.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWork.vue index 68d6aa75c..4f695e6d0 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWork.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWork.vue @@ -130,7 +130,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWorkATP.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWorkATP.vue index c0ebd91aa..c3e7206ec 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWorkATP.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/trainSetWorkATP.vue @@ -141,7 +141,7 @@ export default { }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, cancel() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/turnBackControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/turnBackControl.vue index 37c1a36cb..e37bc27d9 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/turnBackControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/turnBackControl.vue @@ -45,7 +45,6 @@ - \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue index d6e7647f4..ae759a395 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainAdd.vue @@ -1,154 +1,163 @@ - - - - 添加位置 - - - 终 端: - - - - - - - - - - - - - - - - - 确定 - - - 取 消 - - - + + + + 添加位置 + + + 终 端: + + + + + + + + + + + + + + + + 确定 + + + 取 消 + + + \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainDelete.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainDelete.vue index 529f2df33..5eaa74ee4 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainDelete.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainDelete.vue @@ -1,141 +1,146 @@ - - - - 终 端: - - - - - - - - - - - - 确定 - - - 取 消 - - - + + + + 终 端: + + + + + + + + + + + 确定 + + + 取 消 + + + \ No newline at end of file + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainTranstalet.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainTranstalet.vue index 0dc10a6f7..133de1d96 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainTranstalet.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/trainTranstalet.vue @@ -1,152 +1,161 @@ - - - - - - - 目的 - - - 终 端: - - - - - - - - - - - - - - 确定 - - - 取 消 - - - + + + + + + + 目的 + + + 终 端: + + + + + + + + + + + + + 确定 + + + 取 消 + + + \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue index ac6aeac70..b75931c98 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue @@ -152,8 +152,8 @@ export default { alxeFailure() { this.mouseCancelState(this.selected); commitOperate(menuOperate.Section.alxeFailure, {sectionCode:this.selected.code}, 3).then(({valid, operate})=>{ - }).catch((error)=>{ - this.$refs.noticeInfo.doShow({}, error.message); + }).catch(()=>{ + this.$refs.noticeInfo.doShow(); }); }, // 故障解锁 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue index 230612add..26cb43946 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSignal.vue @@ -251,10 +251,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); }); }, // 取消故障 @@ -273,10 +273,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); }); }, // 获取进路列表 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue index 81b2a52f3..280d34864 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue @@ -173,10 +173,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 取消故障 @@ -195,10 +195,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 全站设置联锁自动触发 @@ -216,7 +216,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 全站取消联锁自动触发 @@ -234,7 +234,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 上电解锁 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue index 625c01ecf..8cac92f44 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue @@ -214,10 +214,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); }); }, // 取消故障 @@ -235,10 +235,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(step); + this.$refs.noticeInfo.doShow(); }); }, // 设置扣车 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue index 896e4fb98..3e79b0650 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue @@ -200,10 +200,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 取消故障 @@ -222,10 +222,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 定操定位 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue index f5c7b8a9c..2ecfcdedc 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue @@ -278,8 +278,6 @@ export default { start: true, send: true, code: this.selected.code, - type: MapDeviceType.Train.type, - label: MapDeviceType.Train.label, operation: OperationEvent.Train.stoppage.menu.operation }; @@ -288,10 +286,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 取消故障 @@ -300,8 +298,6 @@ export default { start: true, send: true, code: this.selected.code, - type: MapDeviceType.Train.type, - label: MapDeviceType.Train.label, operation: OperationEvent.Train.cancelStoppage.menu.operation }; @@ -310,10 +306,10 @@ export default { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, // 限速行驶 @@ -322,18 +318,16 @@ export default { start: true, send: true, code: this.selected.code, - type: MapDeviceType.Train.type, - label: MapDeviceType.Train.label, operation: OperationEvent.Train.limitSpeed.menu.operation }; this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); } }).catch(() => { - this.$refs.noticeInfo.doShow(operate); + this.$refs.noticeInfo.doShow(); }); }, undeveloped() { diff --git a/src/jmapNew/theme/ningbo_01/menus/passiveDialog/control.vue b/src/jmapNew/theme/ningbo_01/menus/passiveDialog/control.vue index 8beb7267a..2e37f5764 100644 --- a/src/jmapNew/theme/ningbo_01/menus/passiveDialog/control.vue +++ b/src/jmapNew/theme/ningbo_01/menus/passiveDialog/control.vue @@ -1,278 +1,296 @@ - - {{`${requestInfo}请求如下区域的控制模式`}} - - - - {{scope.row.operate}} - - - - - {{scope.row.control.name}} - - - - - {{scope.row.target.name}} - - - - - - - - - 距离对话还有{{count}}秒,请应答。 - - - 同意 - - - - 拒绝 - - - - + + {{ `${requestInfo}请求如下区域的控制模式` }} + + + + {{ scope.row.operate }} + + + + + {{ scope.row.control.name }} + + + + + {{ scope.row.target.name }} + + + + + + + + + 距离对话还有{{ count }}秒,请应答。 + + + 同意 + + + + 拒绝 + + + + \ No newline at end of file + diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue index 3a7321ef6..586e0cb54 100644 --- a/src/views/newMap/newMapdraft/mapoperate/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/index.vue @@ -285,7 +285,7 @@ export default { }, selected(val, oldVal) { if (this.selected) { - console.log(this.$refs[this.enabledTab], this.enabledTab); + // console.log(this.$refs[this.enabledTab], this.enabledTab); this.$nextTick(() => { this.$refs[this.enabledTab].deviceSelect(val); }); diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue index edce74b24..929ff587c 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue @@ -450,6 +450,7 @@ export default { this.oldRightSectionCode = selected.rightSectionCode; this.editModel.leftAxlePosition = selected.leftAxlePosition || 0; // 重置计轴显示 this.editModel.rightAxlePosition = selected.rightAxlePosition || 0; // 重置计轴显示 + this.editModel.belongStation = selected.belongStation || ''; if (this.field.toUpperCase() === 'splitSection'.toUpperCase()) { this.$refs.splitOrMerge.addModel.splitOffsetMax = Math.sqrt(new JTriangle(selected.points[0], selected.points[selected.points.length - 1]).abspowz); this.$refs.splitOrMerge.addModel.splitOffset = this.$refs.splitOrMerge.addModel.splitOffsetMax / 2; @@ -670,7 +671,7 @@ export default { } }, clear() { - this.$refs.dataform && this.$refs.dataform.resetFields(); + this.$refs.dataform && this.$refs.dataform.resetFields(); // 新加属性需要单独在这里清除(避免老数据无新属性,深拷贝是未获取属性,沿用上一个设备的属性导致的数据污染) this.editModel.logicSectionCodeList = []; this.editModel.rightSectionCode = '';