From 8d38ee214e20bd4b7812e2bbab9449999d7d7ab4 Mon Sep 17 00:00:00 2001 From: Yuan Date: Thu, 7 Jul 2022 18:14:03 +0800 Subject: [PATCH] =?UTF-8?q?JD1A=20=E7=9A=AE=E8=82=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/datie_jd1a.js | 15 +- src/jmapNew/shape/graph/Switch/ESwDot.js | 35 + src/jmapNew/shape/graph/Switch/index.js | 65 +- .../theme/datie_jd1a/menus/bottomTable.vue | 292 +++++ .../datie_jd1a/menus/dialog/addSpareTrain.vue | 210 +++ .../dialog/childDialog/confirmControl.vue | 141 +++ .../childDialog/confirmControlSpeed.vue | 156 +++ .../menus/dialog/childDialog/confirmTip.vue | 74 ++ .../menus/dialog/childDialog/confirmTrain.vue | 173 +++ .../dialog/childDialog/passwordInputBox.vue | 193 +++ .../menus/dialog/childDialog/popupAlarm.vue | 94 ++ .../menus/dialog/defectiveShunting.vue | 137 ++ .../datie_jd1a/menus/dialog/deleteRunplan.vue | 99 ++ .../datie_jd1a/menus/dialog/drawSelect.vue | 163 +++ .../datie_jd1a/menus/dialog/mapVisual.vue | 245 ++++ .../menus/dialog/modifyAdjacentStation.vue | 154 +++ .../menus/dialog/modifyTripNumber.vue | 224 ++++ .../theme/datie_jd1a/menus/dialog/recDep.vue | 136 ++ .../datie_jd1a/menus/dialog/routeDetail.vue | 196 +++ .../datie_jd1a/menus/dialog/routeGuide.vue | 278 ++++ .../menus/dialog/routeHandControl.vue | 267 ++++ .../menus/dialog/routeSelection.vue | 325 +++++ .../menus/dialog/routeSelection1.vue | 308 +++++ .../datie_jd1a/menus/dialog/sectionDetail.vue | 114 ++ .../datie_jd1a/menus/dialog/sendRunplan.vue | 265 ++++ .../datie_jd1a/menus/dialog/shuntRoute.vue | 62 + .../datie_jd1a/menus/dialog/stageRunplan.vue | 191 +++ .../datie_jd1a/menus/dialog/standControl.vue | 603 +++++++++ .../datie_jd1a/menus/dialog/standDetail.vue | 217 ++++ .../datie_jd1a/menus/dialog/trainControl.vue | 332 +++++ .../datie_jd1a/menus/dialog/trainCreate.vue | 133 ++ .../menus/dialog/trainCreateNumber.vue | 181 +++ .../datie_jd1a/menus/dialog/trainDelete.vue | 150 +++ .../menus/dialog/trainDeleteNumber.vue | 176 +++ .../menus/dialog/trainDetailInfo.vue | 378 ++++++ .../menus/dialog/trainEditNumber.vue | 174 +++ .../datie_jd1a/menus/dialog/trainMove.vue | 200 +++ .../menus/dialog/trainMoveNumber.vue | 193 +++ .../datie_jd1a/menus/dialog/trainRoute.vue | 51 + .../datie_jd1a/menus/dialog/trainSetPlan.vue | 181 +++ .../datie_jd1a/menus/dialog/trainSwitch.vue | 209 +++ .../datie_jd1a/menus/dialog/updateTrip.vue | 155 +++ src/jmapNew/theme/datie_jd1a/menus/index.vue | 847 ++++++++++++- .../theme/datie_jd1a/menus/menuBar.vue | 335 +++++ .../theme/datie_jd1a/menus/menuButton.vue | 878 +++++++++++++ .../theme/datie_jd1a/menus/menuButtonCtc.vue | 827 ++++++++++++ .../childDialog/twoConfirmation.vue | 133 ++ .../menus/menuDialog/childDialog/userAdd.vue | 157 +++ .../menuDialog/childDialog/userDelete.vue | 129 ++ .../menus/menuDialog/childDialog/userEdit.vue | 173 +++ .../datie_jd1a/menus/menuDialog/helpAbout.vue | 126 ++ .../menus/menuDialog/limitSpeed.vue | 138 ++ .../menus/menuDialog/manageUser.vue | 285 +++++ .../menus/menuDialog/passwordBox.vue | 221 ++++ .../menus/menuDialog/routeCancel.vue | 154 +++ .../menus/menuDialog/setLimitSpeed.vue | 286 +++++ .../menuDialog/stationControlConvert.vue | 433 +++++++ .../datie_jd1a/menus/menuDialog/trainAdd.vue | 168 +++ .../menus/menuDialog/trainDelete.vue | 151 +++ .../menus/menuDialog/trainTranstalet.vue | 158 +++ .../datie_jd1a/menus/menuDialog/viewName.vue | 256 ++++ .../theme/datie_jd1a/menus/menuPanel.vue | 302 +++++ .../theme/datie_jd1a/menus/menuSection.vue | 260 ++++ .../theme/datie_jd1a/menus/menuSignal.vue | 381 +++++- .../theme/datie_jd1a/menus/menuStation.vue | 213 ++++ .../datie_jd1a/menus/menuStationStand.vue | 220 ++++ .../theme/datie_jd1a/menus/menuSwitch.vue | 323 +++-- .../theme/datie_jd1a/menus/menuTool.vue | 211 ++++ .../theme/datie_jd1a/menus/menuTrain.vue | 614 +++++++++ .../datie_jd1a/menus/passiveDialog/alarm.vue | 216 ++++ .../menus/passiveDialog/timeout.vue | 109 ++ .../theme/datie_jd1a/menus/runplanPane.vue | 1125 +++++++++++++++++ src/jmapNew/theme/datie_jd1a/planConfig.js | 74 ++ src/utils/baseUrl.js | 2 +- 74 files changed, 17680 insertions(+), 170 deletions(-) create mode 100644 src/jmapNew/shape/graph/Switch/ESwDot.js create mode 100644 src/jmapNew/theme/datie_jd1a/menus/bottomTable.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/addSpareTrain.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControl.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControlSpeed.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTip.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTrain.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/passwordInputBox.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/popupAlarm.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/defectiveShunting.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/deleteRunplan.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/drawSelect.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/mapVisual.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/modifyAdjacentStation.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/modifyTripNumber.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/recDep.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/routeDetail.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/routeGuide.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/routeHandControl.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection1.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/sectionDetail.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/sendRunplan.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/shuntRoute.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/stageRunplan.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/standControl.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/standDetail.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainControl.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreate.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreateNumber.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainDelete.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainDeleteNumber.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainDetailInfo.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainEditNumber.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainMove.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainMoveNumber.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainRoute.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainSetPlan.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/trainSwitch.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/dialog/updateTrip.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuBar.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuButton.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuButtonCtc.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/twoConfirmation.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userAdd.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userDelete.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userEdit.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/helpAbout.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/limitSpeed.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/manageUser.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/passwordBox.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/routeCancel.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/setLimitSpeed.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/stationControlConvert.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainAdd.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainDelete.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainTranstalet.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuDialog/viewName.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuPanel.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuSection.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuStation.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuStationStand.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuTool.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/menuTrain.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/passiveDialog/alarm.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/passiveDialog/timeout.vue create mode 100644 src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue create mode 100644 src/jmapNew/theme/datie_jd1a/planConfig.js diff --git a/src/jmapNew/config/skinCode/datie_jd1a.js b/src/jmapNew/config/skinCode/datie_jd1a.js index e12f11c3e..e4244837c 100644 --- a/src/jmapNew/config/skinCode/datie_jd1a.js +++ b/src/jmapNew/config/skinCode/datie_jd1a.js @@ -533,7 +533,7 @@ class SkinCode extends defaultStyle { }, jointImg: { // 道岔 A B C D四元素属性配置 trapezoidLength: 8, // 直角梯形元素默认长度 - faultStatus: true, // 挤岔表示 + faultStatus: false, // 挤岔表示 fork: true, // 挤岔专用(如有挤岔操作 变为true) forKColor: 'red' // 挤岔颜色 配合挤岔专用 }, @@ -546,17 +546,22 @@ class SkinCode extends defaultStyle { rectLock: { // 矩形封锁框图形 rectWidth: 18, // 矩形框 宽高 rectBorderColor: '#fff', // 矩形边框颜色 - block: true, // 封锁显示 + block: false, // 封锁显示 blockColor: 'red', // 封锁颜色 followName: true // 位置跟随名称确定 }, arcBlcok: { // 圆形封锁图形 - show: true, // 显示 + show: false, // 显示 shapeR: 10, arcBorderColor: 'red', // 默认边框颜色 locationColor: 'red', // 定位封锁颜色 - inversionColor: 'red' // 反位封锁颜色 - } + inversionColor: 'red' // 反位封锁颜色 + }, + switchDot: { // 岔心小圆点 + show: true, + monoLockColor: '#ff0000', // 单锁 红色 + lockColor: '#0000ff' // 单封 蓝色 + }, }; this[deviceType.LcControl] = { diff --git a/src/jmapNew/shape/graph/Switch/ESwDot.js b/src/jmapNew/shape/graph/Switch/ESwDot.js new file mode 100644 index 000000000..27714b7ae --- /dev/null +++ b/src/jmapNew/shape/graph/Switch/ESwDot.js @@ -0,0 +1,35 @@ +import Group from 'zrender/src/container/Group' +import Circle from 'zrender/src/graphic/shape/Circle' + +class ESwDot extends Group { + constructor(model, drictx, dricty) { + super() + this.model = model + this.dricty = dricty > 0 + this.drictx = drictx > 0 + this.create() + } + create() { + const { model } = this + this.dot = new Circle({ + zlevel: model.zlevel, + z: model.z || 0 + 12, + shape: { + cx: model.intersection.x + (this.drictx ? 12 : -12), + cy: model.intersection.y + (this.dricty ? 8 : -8), + r: 2 + }, + style: { + fill: '#FF0000' + } + }) + this.add(this.dot) + } + setColor(color) { + console.log(this.dot) + console.log(color) + this.dot.setStyle({ fill: color }) + } +} + +export default ESwDot diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js index 8c7976b21..80c649df2 100644 --- a/src/jmapNew/shape/graph/Switch/index.js +++ b/src/jmapNew/shape/graph/Switch/index.js @@ -13,6 +13,7 @@ import EMouse from './EMouse'; import EHighlight from '../element/EHighlight'; import ETriangle from './ETriangle'; import store from '@/store/index'; +import ESwDot from './ESwDot'; export default class Switch extends Group { constructor(model, {style, mapDevice}) { @@ -211,6 +212,13 @@ export default class Switch extends Group { textFill: 'yellow' } }); + + if (this.style.Switch.switchDot.show) { + console.log(this.style.Switch.switchDot.show) + const { drictx, dricty } = this.triangle + this.dot = new ESwDot(model, drictx, dricty) + this.add(this.dot) + } this.add(this.shapeModelA); this.add(this.shapeModelB); @@ -218,6 +226,7 @@ export default class Switch extends Group { this.add(this.shapeBlockCover); this.add(this.name); this.add(this.enabledName); + style.Switch.text.show && model.nameShow ? this.name.show() : this.name.hide(); } @@ -343,6 +352,7 @@ export default class Switch extends Group { this.artificialArc && this.artificialArc.hide(); this.name && this.name.show(); this.limitName && this.limitName.show(); + this.dot && this.dot.hide() } /** 定位*/ @@ -434,28 +444,20 @@ export default class Switch extends Group { .start(); } // N-定位 R-反位 NO-无(失表) EX-挤叉 - setSwitchFault(fault, pos) { - if (this.style.Switch.jointImg.faultStatus && fault && (pos == 'NO' || pos == 'EX') ) { // 宁波线失表状态 - this.setForkAction(fault); // 道岔挤岔 - } else if (this.style.Switch.faultNoHandle ) { - this.shapeModelA.hide(); - this.shapeModelB.hide(); - this.shapeModelC.hide(); - } else { - const faultList = ['SPLIT', 'SQUEEZE', 'NORMAL_SPLIT', 'REVERSE_SPLIT', 'SPLIT_1']; - // (fault === 'SPLIT' || fault === 'SQUEEZE' || (fault === 'NORMAL_SPLIT' && !reversePosition) || (fault === 'REVERSE_SPLIT' && !normalPosition)) - if (this.model.switchFaultCode && fault && faultList.includes(fault) ) { - const switchFault = this.mapDevice[this.model.switchFaultCode]; - switchFault.instance.setControlColor('#F00', true); - } else if (this.model.switchFaultCode) { - const switchFault = this.mapDevice[this.model.switchFaultCode]; - switchFault.instance.setControlColor(this.style.backgroundColor, false); - } - // stopAnimation - this.shapeModelB.stopAnimation(false); - this.shapeModelC.stopAnimation(false); - this.shapeModelA.stopAnimation(false); + setSwitchFault(fault) { + const faultList = ['SPLIT', 'SQUEEZE', 'NORMAL_SPLIT', 'REVERSE_SPLIT', 'SPLIT_1']; + // (fault === 'SPLIT' || fault === 'SQUEEZE' || (fault === 'NORMAL_SPLIT' && !reversePosition) || (fault === 'REVERSE_SPLIT' && !normalPosition)) + if (this.model.switchFaultCode && fault && faultList.includes(fault) ) { + const switchFault = this.mapDevice[this.model.switchFaultCode]; + switchFault.instance.setControlColor('#F00', true); + } else if (this.model.switchFaultCode) { + const switchFault = this.mapDevice[this.model.switchFaultCode]; + switchFault.instance.setControlColor(this.style.backgroundColor, false); } + // stopAnimation + this.shapeModelB.stopAnimation(false); + this.shapeModelC.stopAnimation(false); + this.shapeModelA.stopAnimation(false); } /** 挤叉*/ setForkAction(fault) { @@ -514,6 +516,10 @@ export default class Switch extends Group { this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.inversionColor }); } } + if (this.style.Switch.switchDot.show) { + this.dot.show() + this.dot.setColor(this.style.Switch.switchDot.monoLockColor) + } this.setTextColor(this.style.Switch.text.monolockLocationColor); } @@ -567,6 +573,10 @@ export default class Switch extends Group { this.lockRect.setStyle({ stroke: this.style.Switch.rectLock.blockColor, fill: this.style.Switch.rectLock.blockFillColor }); } } + if (this.style.Switch.switchDot.show) { + this.dot.show() + this.dot.setColor(this.style.Switch.switchDot.lockColor) + } // if (this.style.Switch.coverBlock && this.style.Switch.coverBlock.show) { // this.shapeBlockCover.show(); @@ -706,7 +716,7 @@ export default class Switch extends Group { this.setAshShow(); } } else { - this.setSwitchFault(model.fault, model.pos); + this.setSwitchFault(model.fault); // model.pos == 'NO' || model.pos == 'EX'; // N-定位 R-反位 NO-无(失表) EX-挤叉 @@ -718,7 +728,16 @@ export default class Switch extends Group { this.switchPosition = 'reverse'; this.setInversionAction(model); /** 反位*/ } else if (model.pos == 'NO') { - this.setLossAction(model.fault); // 失去 + //宁波线失表 + if (this.style.Switch.jointImg.faultStatus && model.fault) { + this.setForkAction(model.fault) + } else if (this.style.Switch.faultNoHandle) { + this.shapeModelA.hide(); + this.shapeModelB.hide(); + this.shapeModelC.hide(); + } else { + this.setLossAction(model.fault); // 失去 + } } else if (model.pos == 'EX') { this.setForkAction(model.fault); // 挤岔 } diff --git a/src/jmapNew/theme/datie_jd1a/menus/bottomTable.vue b/src/jmapNew/theme/datie_jd1a/menus/bottomTable.vue new file mode 100644 index 000000000..e5687c866 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/bottomTable.vue @@ -0,0 +1,292 @@ + + + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/addSpareTrain.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/addSpareTrain.vue new file mode 100644 index 000000000..f2964cbb2 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/addSpareTrain.vue @@ -0,0 +1,210 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControl.vue new file mode 100644 index 000000000..d298f8bc1 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControl.vue @@ -0,0 +1,141 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControlSpeed.vue new file mode 100644 index 000000000..d49556383 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmControlSpeed.vue @@ -0,0 +1,156 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTip.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTip.vue new file mode 100644 index 000000000..6852074ca --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTip.vue @@ -0,0 +1,74 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTrain.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTrain.vue new file mode 100644 index 000000000..494347b75 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/confirmTrain.vue @@ -0,0 +1,173 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/passwordInputBox.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/passwordInputBox.vue new file mode 100644 index 000000000..eec77511b --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/passwordInputBox.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/popupAlarm.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/popupAlarm.vue new file mode 100644 index 000000000..b6b925622 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/childDialog/popupAlarm.vue @@ -0,0 +1,94 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/defectiveShunting.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/defectiveShunting.vue new file mode 100644 index 000000000..2d2491d3f --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/defectiveShunting.vue @@ -0,0 +1,137 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/deleteRunplan.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/deleteRunplan.vue new file mode 100644 index 000000000..0b9134b52 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/deleteRunplan.vue @@ -0,0 +1,99 @@ + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/drawSelect.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/drawSelect.vue new file mode 100644 index 000000000..10fb5b5cd --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/drawSelect.vue @@ -0,0 +1,163 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/mapVisual.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/mapVisual.vue new file mode 100644 index 000000000..f7e172930 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/mapVisual.vue @@ -0,0 +1,245 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyAdjacentStation.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyAdjacentStation.vue new file mode 100644 index 000000000..53bf85a71 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyAdjacentStation.vue @@ -0,0 +1,154 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyTripNumber.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyTripNumber.vue new file mode 100644 index 000000000..dd92fc91d --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/modifyTripNumber.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/recDep.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/recDep.vue new file mode 100644 index 000000000..1d99ffe15 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/recDep.vue @@ -0,0 +1,136 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/routeDetail.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeDetail.vue new file mode 100644 index 000000000..b7211c025 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeDetail.vue @@ -0,0 +1,196 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/routeGuide.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeGuide.vue new file mode 100644 index 000000000..11cba9131 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeGuide.vue @@ -0,0 +1,278 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeHandControl.vue new file mode 100644 index 000000000..69ce0d572 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeHandControl.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection.vue new file mode 100644 index 000000000..12014afb3 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection.vue @@ -0,0 +1,325 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection1.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection1.vue new file mode 100644 index 000000000..c34eb1e49 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/routeSelection1.vue @@ -0,0 +1,308 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/sectionDetail.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/sectionDetail.vue new file mode 100644 index 000000000..7e6a03371 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/sectionDetail.vue @@ -0,0 +1,114 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/sendRunplan.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/sendRunplan.vue new file mode 100644 index 000000000..26e4fb5dd --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/sendRunplan.vue @@ -0,0 +1,265 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/shuntRoute.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/shuntRoute.vue new file mode 100644 index 000000000..78727e7cc --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/shuntRoute.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/stageRunplan.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/stageRunplan.vue new file mode 100644 index 000000000..6a55e1b49 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/stageRunplan.vue @@ -0,0 +1,191 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/standControl.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/standControl.vue new file mode 100644 index 000000000..c6c29c830 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/standControl.vue @@ -0,0 +1,603 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/standDetail.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/standDetail.vue new file mode 100644 index 000000000..efe048e52 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/standDetail.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainControl.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainControl.vue new file mode 100644 index 000000000..738d9509e --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainControl.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreate.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreate.vue new file mode 100644 index 000000000..59f7935b6 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreate.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreateNumber.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreateNumber.vue new file mode 100644 index 000000000..e56f2f80d --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainCreateNumber.vue @@ -0,0 +1,181 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDelete.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDelete.vue new file mode 100644 index 000000000..895d6024c --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDelete.vue @@ -0,0 +1,150 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDeleteNumber.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDeleteNumber.vue new file mode 100644 index 000000000..210e2dc87 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDeleteNumber.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDetailInfo.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDetailInfo.vue new file mode 100644 index 000000000..907727139 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainDetailInfo.vue @@ -0,0 +1,378 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainEditNumber.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainEditNumber.vue new file mode 100644 index 000000000..570e22144 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainEditNumber.vue @@ -0,0 +1,174 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMove.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMove.vue new file mode 100644 index 000000000..82c84dc13 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMove.vue @@ -0,0 +1,200 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMoveNumber.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMoveNumber.vue new file mode 100644 index 000000000..7e7635d23 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainMoveNumber.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainRoute.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainRoute.vue new file mode 100644 index 000000000..98e3e4b46 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainRoute.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSetPlan.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSetPlan.vue new file mode 100644 index 000000000..17421e391 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSetPlan.vue @@ -0,0 +1,181 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSwitch.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSwitch.vue new file mode 100644 index 000000000..583e53d8e --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/trainSwitch.vue @@ -0,0 +1,209 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/dialog/updateTrip.vue b/src/jmapNew/theme/datie_jd1a/menus/dialog/updateTrip.vue new file mode 100644 index 000000000..49a60e088 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/dialog/updateTrip.vue @@ -0,0 +1,155 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/index.vue b/src/jmapNew/theme/datie_jd1a/menus/index.vue index 76b4ba9b6..645d03ed7 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/index.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/index.vue @@ -1,19 +1,133 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuBar.vue b/src/jmapNew/theme/datie_jd1a/menus/menuBar.vue new file mode 100644 index 000000000..d16b8bc18 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuBar.vue @@ -0,0 +1,335 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue b/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue new file mode 100644 index 000000000..7e52408dc --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuButton.vue @@ -0,0 +1,878 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuButtonCtc.vue b/src/jmapNew/theme/datie_jd1a/menus/menuButtonCtc.vue new file mode 100644 index 000000000..da166116e --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuButtonCtc.vue @@ -0,0 +1,827 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/twoConfirmation.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/twoConfirmation.vue new file mode 100644 index 000000000..c1f7b93a3 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/twoConfirmation.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userAdd.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userAdd.vue new file mode 100644 index 000000000..6c98c5a53 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userAdd.vue @@ -0,0 +1,157 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userDelete.vue new file mode 100644 index 000000000..e64aa49f3 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userDelete.vue @@ -0,0 +1,129 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userEdit.vue new file mode 100644 index 000000000..b03165a1b --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/childDialog/userEdit.vue @@ -0,0 +1,173 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/helpAbout.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/helpAbout.vue new file mode 100644 index 000000000..4dc26a4ce --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/helpAbout.vue @@ -0,0 +1,126 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/limitSpeed.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/limitSpeed.vue new file mode 100644 index 000000000..e416e68e0 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/limitSpeed.vue @@ -0,0 +1,138 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/manageUser.vue new file mode 100644 index 000000000..deef68f43 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/manageUser.vue @@ -0,0 +1,285 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/passwordBox.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/passwordBox.vue new file mode 100644 index 000000000..69fa03d70 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/passwordBox.vue @@ -0,0 +1,221 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/routeCancel.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/routeCancel.vue new file mode 100644 index 000000000..8a403be7f --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/routeCancel.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/setLimitSpeed.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/setLimitSpeed.vue new file mode 100644 index 000000000..dfb5821b3 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/setLimitSpeed.vue @@ -0,0 +1,286 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/stationControlConvert.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/stationControlConvert.vue new file mode 100644 index 000000000..046b66327 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/stationControlConvert.vue @@ -0,0 +1,433 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainAdd.vue new file mode 100644 index 000000000..fba049a10 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainAdd.vue @@ -0,0 +1,168 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainDelete.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainDelete.vue new file mode 100644 index 000000000..b1139915a --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainDelete.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainTranstalet.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainTranstalet.vue new file mode 100644 index 000000000..97918ae44 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/trainTranstalet.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuDialog/viewName.vue b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/viewName.vue new file mode 100644 index 000000000..4a32473d5 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuDialog/viewName.vue @@ -0,0 +1,256 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuPanel.vue b/src/jmapNew/theme/datie_jd1a/menus/menuPanel.vue new file mode 100644 index 000000000..bf2c9df6b --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuPanel.vue @@ -0,0 +1,302 @@ + + + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuSection.vue b/src/jmapNew/theme/datie_jd1a/menus/menuSection.vue new file mode 100644 index 000000000..d5d3702f8 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuSection.vue @@ -0,0 +1,260 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuSignal.vue b/src/jmapNew/theme/datie_jd1a/menus/menuSignal.vue index 28a3fa9fe..ed63959c9 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/menuSignal.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/menuSignal.vue @@ -1,20 +1,52 @@ + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuStationStand.vue b/src/jmapNew/theme/datie_jd1a/menus/menuStationStand.vue new file mode 100644 index 000000000..8dafb5bef --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuStationStand.vue @@ -0,0 +1,220 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuSwitch.vue b/src/jmapNew/theme/datie_jd1a/menus/menuSwitch.vue index 54b30f0c8..013b098bb 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/menuSwitch.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/menuSwitch.vue @@ -1,26 +1,46 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/menuTrain.vue b/src/jmapNew/theme/datie_jd1a/menus/menuTrain.vue new file mode 100644 index 000000000..1df99fa4e --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/menuTrain.vue @@ -0,0 +1,614 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/alarm.vue b/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/alarm.vue new file mode 100644 index 000000000..afbff9ddc --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/alarm.vue @@ -0,0 +1,216 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/timeout.vue b/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/timeout.vue new file mode 100644 index 000000000..e4ef062a6 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/passiveDialog/timeout.vue @@ -0,0 +1,109 @@ + + + diff --git a/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue b/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue new file mode 100644 index 000000000..036da1041 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue @@ -0,0 +1,1125 @@ + + + + diff --git a/src/jmapNew/theme/datie_jd1a/planConfig.js b/src/jmapNew/theme/datie_jd1a/planConfig.js new file mode 100644 index 000000000..0cb8b8311 --- /dev/null +++ b/src/jmapNew/theme/datie_jd1a/planConfig.js @@ -0,0 +1,74 @@ +import { convertSheetToList } from '../parser/util'; + +export default { + /** 运行图解析方式*/ + type: 'Ratio', + + /** 边缘高度*/ + edge: 600, + + /** 间隔高度*/ + multiple: 1, + + /** 偏移时间*/ + translation: 60 * 60 * 2, + + /** excel解析配置*/ + excelConfig: { + beginRow: 1, + beginCol: 0, + fieldNum: 8, + sepField: '车次', + columns: { + '车站名称': { key: 'stationName', formatter: (val) => { return val; } }, + '到点': { key: 'arriveTime', formatter: (val) => { return val; } }, + '发点': { key: 'departureTime', formatter: (val) => { return val; } } + } + }, + + /** 解析excel数据转换为Json后台数据*/ + importData(Sheet, JsonData) { + var dataList = convertSheetToList(Sheet, false); + var needList = Object.keys(this.excelConfig.columns); + if (dataList && dataList.length) { + for (var rowIndex = this.excelConfig.beginRow; rowIndex < dataList.length; rowIndex += 1) { + for (var colIndex = this.excelConfig.beginCol; colIndex < dataList[this.excelConfig.beginCol].length; colIndex += this.excelConfig.fieldNum + 1) { + var tripNew, tripObj; + var stationObj = {}; + + tripNew = tripObj = { code: '', arrivalList: [] }; + for (var index = 0; index < this.excelConfig.fieldNum; index += 1) { + var title = dataList[0][colIndex + index]; + var value = dataList[rowIndex][colIndex + index]; + + if (title && value) { + var titleStr = `${title}`.trim(); + var valueStr = `${value}`.trim(); + + if (titleStr.includes(this.excelConfig.sepField)) { + tripObj.code = valueStr; + JsonData.forEach(elem => { + if (elem.code == valueStr) { + tripObj = elem; + return; + } + }); + } + + // 取需要的字段 + if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { + stationObj[this.excelConfig.columns[titleStr].key] = this.excelConfig.columns[titleStr].formatter(valueStr); + } + } + } + + tripObj.arrivalList.push(stationObj); + if (tripObj.code && tripObj == tripNew) { + JsonData.push(tripObj); + } + } + } + } + return JsonData; + } +}; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 30bf92c6f..5532e1d3e 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -29,7 +29,7 @@ export function handlerUrl(data) { // BASE_API = 'http://114.116.51.125/jlcloud'; // BASE_API = 'http://192.168.8.152:9000'; // 袁琪 // BASE_API = 'http://192.168.3.94:9000'; // 旭强 - // BASE_API = 'http://192.168.3.15:9000'; // 张赛 + // BASE_API = 'http://192.168.3.201:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://b29z135112.zicp.vip';