Merge remote-tracking branch 'origin/test'

This commit is contained in:
joylink_zhangsai 2021-02-03 18:39:04 +08:00
commit 8305fb5230
454 changed files with 2224 additions and 4248 deletions

View File

@ -262,6 +262,7 @@ class SkinCode extends defaultStyle {
lampSpace: 60 // 灯间距 lampSpace: 60 // 灯间距
}, },
StationControl: { StationControl: {
disPlayNone: true, // 不显示
text: { text: {
distance: 12, // 灯和文字之间的距离 distance: 12, // 灯和文字之间的距离
fontSize: 12, // 字体大小 fontSize: 12, // 字体大小

View File

@ -248,8 +248,8 @@ class Jlmap {
this.$painter.setLevelVisible(list); this.$painter.setLevelVisible(list);
} }
render(list) { render(list = []) {
(list || []).forEach(elem => { list.forEach(elem => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
// const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); // const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
@ -304,46 +304,9 @@ class Jlmap {
return false; return false;
} }
// 后处理 setUpdateMapDevice(list = []) {
postHandle(list) {
list.forEach(elem => {
const code = elem.code;
const type = elem._type;
if (type == deviceType.Switch) {
const item = this.mapDevice[code];
if (item) {
const sectionA = this.mapDevice[item.sectionACode];
const sectionB = this.mapDevice[item.sectionBCode];
const sectionC = this.mapDevice[item.sectionCCode];
if (sectionA && sectionB && sectionC) {
item['cutOff'] = sectionA.cutOff;
}
}
this.$painter.update(item);
}
if (type == deviceType.Section) {
const item = this.mapDevice[code];
if (item) {
const swch = this.mapDevice[item.relSwitchCode];
if (swch) {
const sectionA = this.mapDevice[swch.sectionACode];
const sectionB = this.mapDevice[swch.sectionBCode];
const sectionC = this.mapDevice[swch.sectionCCode];
if (sectionA && sectionB && sectionC) {
swch['cutOff'] = sectionA.cutOff;
}
this.$painter.update(swch);
}
}
}
});
}
setUpdateMapDevice(list) {
store.commit('map/updateMapDevice', list); store.commit('map/updateMapDevice', list);
(list || []).forEach(elem => { list.forEach(elem => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
const oDevice = this.mapDevice[code] || deviceFactory(type, elem); const oDevice = this.mapDevice[code] || deviceFactory(type, elem);
@ -351,9 +314,9 @@ class Jlmap {
}); });
} }
// 模式选择 -> 更新 // 模式选择 -> 更新
updateShowMode(list, showMode) { updateShowMode(list=[], showMode=false) {
this.showConfig.showMode = showMode; this.showConfig.showMode = showMode;
(list || []).forEach(elem => { list.forEach(elem => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
@ -365,9 +328,9 @@ class Jlmap {
getShowConfig() { getShowConfig() {
return this.showConfig; return this.showConfig;
} }
updateShowStation(list, stationCode) { updateShowStation(list=[], stationCode=false) {
this.stationCode = stationCode; this.stationCode = stationCode;
(list || []).forEach(elem => { list.forEach(elem => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
@ -418,10 +381,10 @@ class Jlmap {
}); });
} }
} }
updatePrdType(list, val, showMode) { updatePrdType(list = [], val = '', showMode = false) {
this.showConfig.prdType = val; this.showConfig.prdType = val;
this.showConfig.showMode = showMode; this.showConfig.showMode = showMode;
(list || []).forEach(item => { list.forEach(item => {
const code = item.code; const code = item.code;
const type = item._type; const type = item._type;
const oDevice = this.mapDevice[code] || deviceFactory(type, item, this.showConfig); const oDevice = this.mapDevice[code] || deviceFactory(type, item, this.showConfig);
@ -430,13 +393,17 @@ class Jlmap {
this.$painter.updateShowMode(oDevice); this.$painter.updateShowMode(oDevice);
}); });
} }
update(list) { update(list=[]) {
this.setUpdateMapDevice(list || []); // 增加一个 前数据 处理 为了在区段中 获取全部的 道岔信息 this.setUpdateMapDevice(list); // 增加一个 前数据 处理 为了在区段中 获取全部的 道岔信息
const codeList = [];
const controlTransferList = []; const controlTransferList = [];
const signalDeviceList = []; const signalDeviceList = [];
(list || []).forEach((elem, index) => { const selected = store.state.menuOperation.selected;
list.forEach((elem, index) => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
if (elem.deviceType === 'ROUTE' && this.logicData.routeData) { // 处理进路数据状态 if (elem.deviceType === 'ROUTE' && this.logicData.routeData) { // 处理进路数据状态
store.dispatch('map/updateRouteState', elem); store.dispatch('map/updateRouteState', elem);
const route = this.logicData.routeData[code]; const route = this.logicData.routeData[code];
@ -501,6 +468,34 @@ class Jlmap {
psdDevice.fault = elem.fault; psdDevice.fault = elem.fault;
this.$painter.update(psdDevice); this.$painter.update(psdDevice);
} }
} else if (elem.deviceType == 'SWITCH') {
const oDevice = this.mapDevice[code]
if (oDevice) {
const sectionA = this.mapDevice[oDevice.sectionACode];
const sectionB = this.mapDevice[oDevice.sectionBCode];
const sectionC = this.mapDevice[oDevice.sectionCCode];
if (sectionA && sectionB && sectionC) {
oDevice['cutOff'] = sectionA.cutOff;
}
}
this.$painter.update(oDevice);
} else if (elem.deviceType == 'SECTION') {
const oDevice = this.mapDevice[code]
if (oDevice) {
const sDevice = this.mapDevice[oDevice.relSwitchCode];
if (sDevice) {
const sectionA = this.mapDevice[sDevice.sectionACode];
const sectionB = this.mapDevice[sDevice.sectionBCode];
const sectionC = this.mapDevice[sDevice.sectionCCode];
if (sectionA && sectionB && sectionC) {
sDevice['cutOff'] = sectionA.cutOff;
}
this.$painter.update(sDevice);
codeList.push(sDevice.code);
}
}
} else if (elem.deviceType === 'DIRECTION_ROD' && elem.uniqueCode) { } else if (elem.deviceType === 'DIRECTION_ROD' && elem.uniqueCode) {
store.state.map.map.directionRodList.forEach(item => { store.state.map.map.directionRodList.forEach(item => {
if (elem.uniqueCode === item.uniqueCode) { if (elem.uniqueCode === item.uniqueCode) {
@ -510,6 +505,7 @@ class Jlmap {
} }
}); });
} }
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
if (elem.dispose) { if (elem.dispose) {
this.$painter.delete(oDevice); this.$painter.delete(oDevice);
@ -517,6 +513,8 @@ class Jlmap {
this.$painter.update(oDevice); this.$painter.update(oDevice);
} }
} }
codeList.push(code);
}); });
if (controlTransferList.length > 0) { if (controlTransferList.length > 0) {
@ -527,9 +525,12 @@ class Jlmap {
store.dispatch('map/setActiveTrainList'); store.dispatch('map/setActiveTrainList');
this.isUpdateShowTrainList = false; this.isUpdateShowTrainList = false;
} }
if (selected && codeList.includes(selected.code)) {
store.commit('menuOperation/setSelected', {device: {...selected}});
}
this.handleRouteSignalStatus(signalDeviceList); this.handleRouteSignalStatus(signalDeviceList);
// 状态后处理
this.postHandle(list || []);
if (this.methods.stateUpdate instanceof Function) { this.methods.stateUpdate(list); } if (this.methods.stateUpdate instanceof Function) { this.methods.stateUpdate(list); }
} }

View File

@ -157,7 +157,13 @@ export default class StationTurnBack extends Group {
}); });
} }
} }
getShapeTipPoint() {
const rect = this.control.getBoundingRect();
return {
x: rect.x + rect.width,
y: rect.y
};
}
setShowMode() { setShowMode() {
const showMode = this.model.showMode; const showMode = this.model.showMode;
const showConditions = (this.style.StationTurnBack || {}).displayCondition; const showConditions = (this.style.StationTurnBack || {}).displayCondition;

View File

@ -604,13 +604,25 @@ export default class Switch extends Group {
this.name.getNameText().setStyle({textFill: '#7F7F7F'}); this.name.getNameText().setStyle({textFill: '#7F7F7F'});
} }
preReset(normalPosition, reversePosition ) { preReset(normalPosition, reversePosition ) {
if (this.style.Switch.coverBlock.preResetColor) { // 范围且封锁时显示 const coverBlock = this.style.Switch.coverBlock;
if (coverBlock && coverBlock.preResetColor) { // 范围且封锁时显示
if (normalPosition) { if (normalPosition) {
this.shapeModelB.show(); this.shapeModelB.show();
this.shapeModelB.setColor(this.style.Switch.coverBlock.preResetColor); this.shapeModelB.setColor(coverBlock.preResetColor);
} else if (reversePosition) { } else if (reversePosition) {
this.shapeModelA.show(); this.shapeModelA.show();
this.shapeModelA.setColor(this.style.Switch.coverBlock.preResetColor); this.shapeModelA.setColor(coverBlock.preResetColor);
}
} else {
const sectionReset = this.style.Section.sectionMiddle;
if (sectionReset && sectionReset.preResetColor) {
if (normalPosition) {
this.shapeModelB.show();
this.shapeModelB.setColor(sectionReset.preResetColor);
} else if (reversePosition) {
this.shapeModelA.show();
this.shapeModelA.setColor(sectionReset.preResetColor);
}
} }
} }
} }

View File

@ -229,11 +229,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
stopTask() { stopTask() {
if (this.task) { if (this.task) {

View File

@ -74,11 +74,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -92,11 +92,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -112,11 +112,6 @@ export default {
return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operate.operateNext) : ''; return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operate.operateNext) : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -48,11 +48,6 @@ export default {
return this.dialogShow ? OperationEvent.Command.close.alarm.domId : ''; return this.dialogShow ? OperationEvent.Command.close.alarm.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, messages) { doShow(operate, messages) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -113,11 +113,6 @@ export default {
return disabled; return disabled;
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
getProtectedSectionName(row) { getProtectedSectionName(row) {
let name = ''; let name = '';

View File

@ -114,11 +114,6 @@ export default {
return '变通策略管理'; return '变通策略管理';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(selected, opts) { loadInitData(selected, opts) {
this.tempData = []; this.tempData = [];

View File

@ -166,11 +166,6 @@ export default {
return '站台详细信息'; return '站台详细信息';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(selected, opts) { loadInitData(selected, opts) {
this.tempData = []; this.tempData = [];

View File

@ -179,9 +179,6 @@ export default {
} }
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (!this.$store.state.menuOperation.break) { if (!this.$store.state.menuOperation.break) {
if (this.timeCountCommand > 0) { if (this.timeCountCommand > 0) {

View File

@ -59,11 +59,6 @@ export default {
return this.dialogShow ? OperationEvent.Station.humanControlALL.menu.domId : ''; return this.dialogShow ? OperationEvent.Station.humanControlALL.menu.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -73,11 +73,6 @@ export default {
return this.dialogShow ? OperationEvent.Station.atsAutoControlALL.menu.domId : ''; return this.dialogShow ? OperationEvent.Station.atsAutoControlALL.menu.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -87,11 +87,6 @@ export default {
return '定义车组号'; return '定义车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -81,11 +81,6 @@ export default {
return '删除车组号'; return '删除车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
if (map) { if (map) {

View File

@ -97,11 +97,6 @@ export default {
return '删除计划车'; return '删除计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -87,11 +87,6 @@ export default {
return '修改计划车'; return '修改计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -79,11 +79,6 @@ export default {
return 'ATP切除功能'; return 'ATP切除功能';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -87,11 +87,6 @@ export default {
return '平移车组号'; return '平移车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -105,11 +105,6 @@ export default {
return '平移计划车'; return '平移计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -87,11 +87,6 @@ export default {
return '设置头码车'; return '设置头码车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -79,11 +79,6 @@ export default {
return '设置计划车'; return '设置计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -71,11 +71,6 @@ export default {
return '设置人工车'; return '设置人工车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -293,9 +293,6 @@ export default {
} }
}, },
watch: { watch: {
'$store.state.config.canvasOffsetCount': function (val) {
this.resetPosition();
},
'$store.state.menuOperation.buttonOperation': function (val, old) { '$store.state.menuOperation.buttonOperation': function (val, old) {
this.updateButtonShow(val, old); this.updateButtonShow(val, old);
}, },
@ -303,15 +300,7 @@ export default {
this.selectedChange(); this.selectedChange();
} }
}, },
mounted() {
this.resetPosition();
},
methods: { methods: {
resetPosition() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
updateButtonShow(val, old) { updateButtonShow(val, old) {
if (old) { if (old) {
// //

View File

@ -73,11 +73,6 @@ export default {
return []; return [];
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, message) { doShow(operate, message) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -93,11 +93,6 @@ export default {
return '增加用户'; return '增加用户';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -65,11 +65,6 @@ export default {
return '删除用户'; return '删除用户';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -101,11 +101,6 @@ export default {
return '用户编辑页面'; return '用户编辑页面';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -81,11 +81,6 @@ export default {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -81,11 +81,6 @@ export default {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -73,11 +73,6 @@ export default {
return '关于ControlMonitor'; return '关于ControlMonitor';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -121,11 +121,6 @@ export default {
return '用户管理'; return '用户管理';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -106,11 +106,6 @@ export default {
}); });
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.message = ''; this.message = '';

View File

@ -96,11 +96,6 @@ export default {
return '添加计划车'; return '添加计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -79,11 +79,6 @@ export default {
return '删除计划车'; return '删除计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -96,11 +96,6 @@ export default {
return '平移计划车'; return '平移计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -140,11 +140,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -59,11 +59,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -186,11 +186,6 @@ export default {
return '设备标签'; return '设备标签';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -181,9 +181,6 @@ export default {
} }
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (!this.$store.state.menuOperation.break) { if (!this.$store.state.menuOperation.break) {
if (this.timeCountCommand > 0) { if (this.timeCountCommand > 0) {

View File

@ -181,11 +181,6 @@ export default {
return list; return list;
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(step, selected) { doShow(step, selected) {
// this.operate = operate || {}; // this.operate = operate || {};

View File

@ -62,11 +62,6 @@ export default {
return []; return [];
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.domIdConfirm = ''; this.domIdConfirm = '';

View File

@ -93,11 +93,6 @@ export default {
return '增加用户'; return '增加用户';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -67,11 +67,6 @@ export default {
return '删除用户'; return '删除用户';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -101,11 +101,6 @@ export default {
return '用户编辑页面'; return '用户编辑页面';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -100,11 +100,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(position) { doShow(position) {
// this.operate = operate || {}; // this.operate = operate || {};

View File

@ -141,11 +141,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -59,11 +59,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};
@ -83,7 +78,7 @@ export default {
}, },
cancel() { cancel() {
const operate = { const operate = {
operation: this.operate.type, // operation: this.operate.type,
operation: OperationEvent.Command.close.notice.operation operation: OperationEvent.Command.close.notice.operation
}; };

View File

@ -70,11 +70,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -75,11 +75,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -92,11 +92,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -112,11 +112,6 @@ export default {
return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : ''; return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -48,11 +48,6 @@ export default {
return this.dialogShow ? OperationEvent.Command.close.alarm.domId : ''; return this.dialogShow ? OperationEvent.Command.close.alarm.domId : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, messages) { doShow(operate, messages) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -118,11 +118,6 @@ export default {
return '查询进路状态'; return '查询进路状态';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected, tempData) { doShow(operate, selected, tempData) {
this.selected = selected; this.selected = selected;

View File

@ -130,11 +130,6 @@ export default {
'mapConfig' 'mapConfig'
]) ])
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
getProtectedSectionName(row) { getProtectedSectionName(row) {
let name = ''; let name = '';

View File

@ -123,11 +123,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected, tempData) { doShow(operate, selected, tempData) {
this.selected = selected; this.selected = selected;

View File

@ -138,11 +138,6 @@ export default {
'mapConfig' 'mapConfig'
]) ])
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
getProtectedSectionName(row) { getProtectedSectionName(row) {
let name = ''; let name = '';

View File

@ -69,11 +69,6 @@ export default {
return '无岔区段属性对话框'; return '无岔区段属性对话框';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -26,23 +26,26 @@
> >
<span class="base-label" style="left: -5px; top: -22px; background: #ECE9D8; padding: 0 4px;">范围</span> <span class="base-label" style="left: -5px; top: -22px; background: #ECE9D8; padding: 0 4px;">范围</span>
<el-row style="margin-top: -13px;"> <el-row style="margin-top: -13px;">
<el-radio-group :id="domIdDetainCar" v-model="radio" @change="choose"> <el-radio-group v-model="radio" @change="choose">
<el-col :span="24"> <el-col :span="24">
<el-radio <el-radio
:id="domIdDetainCar"
label="01" label="01"
style="display: block; text-align: left; float: left; margin-right: 10px;" style="display: block; text-align: left; float: left; margin-right: 10px;"
>本站台 >本站台
</el-radio> </el-radio>
<el-radio <el-radio
:id="isUpDirection? domIdDetainChoose: ''"
v-if="radio1 == 2" v-if="radio1 == 2"
:disabled="!isUpDirection" :disabled="!isUpDirection"
label="02" :label="`${isUpDirection}`"
style="display: block; text-align: left; float: left; margin-right: 10px;" style="display: block; text-align: left; float: left; margin-right: 10px;"
>上行全线 >上行全线
</el-radio> </el-radio>
<el-radio <el-radio
:id="isUpDirection ? '': domIdDetainChoose"
v-if="radio1 == 2" v-if="radio1 == 2"
label="03" :label="`${!isUpDirection}`"
:disabled="isUpDirection" :disabled="isUpDirection"
style="display: block; text-align: left; float: left;" style="display: block; text-align: left; float: left;"
>下行全线</el-radio> >下行全线</el-radio>
@ -297,6 +300,9 @@ export default {
domIdDetainCar() { domIdDetainCar() {
return this.dialogShow ? OperationEvent.StationStand.cancelDetainTrain.choose.domId : ''; return this.dialogShow ? OperationEvent.StationStand.cancelDetainTrain.choose.domId : '';
}, },
domIdDetainChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '';
},
domIdChoose() { domIdChoose() {
if (this.radio1 == '1') { // if (this.radio1 == '1') { //
return this.dialogShow ? OperationEvent.StationStand.setJumpStop.select.domId : ''; return this.dialogShow ? OperationEvent.StationStand.setJumpStop.select.domId : '';
@ -380,11 +386,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected, tempDate = null) { doShow(operate, selected, tempDate = null) {
this.selected = selected; this.selected = selected;
@ -434,7 +435,9 @@ export default {
}, },
choose(upDown) { // code choose(upDown) { // code
const operate = { const operate = {
operation: OperationEvent.StationStand.cancelDetainTrain.choose.operation, operation: upDown == '01'
? OperationEvent.StationStand.cancelDetainTrain.choose.operation
: OperationEvent.Command.common.choose.operation,
val: this.radio val: this.radio
}; };
if (this.radio == '02' || this.radio == '03') { if (this.radio == '02' || this.radio == '03') {

View File

@ -130,11 +130,6 @@ export default {
return '站台信息'; return '站台信息';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(selected, opts) { loadInitData(selected, opts) {
this.tempData = []; this.tempData = [];

View File

@ -196,11 +196,6 @@ export default {
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
}, },

View File

@ -80,11 +80,6 @@ export default {
return '设置列车'; return '设置列车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.dialogShow = true; this.dialogShow = true;

View File

@ -100,11 +100,6 @@ export default {
return '新建车组号'; return '新建车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
}, },

View File

@ -80,11 +80,6 @@ export default {
return '删除列车识别号'; return '删除列车识别号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
if (map) { if (map) {

View File

@ -95,11 +95,6 @@ export default {
return '删除车组号'; return '删除车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
}, },

View File

@ -321,11 +321,6 @@ export default {
return '列车信息显示'; return '列车信息显示';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -93,11 +93,6 @@ export default {
return '修改车组号'; return '修改车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
}, },

View File

@ -132,11 +132,6 @@ export default {
return '移动列车识别号'; return '移动列车识别号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -110,11 +110,6 @@ export default {
return '移动车组号'; return '移动车组号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(map) { loadInitData(map) {
}, },

View File

@ -137,11 +137,6 @@ export default {
return '移动列车识别号'; return '移动列车识别号';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -209,9 +209,6 @@ export default {
} }
}, },
watch: { watch: {
'$store.state.config.canvasOffsetCount': function (val) {
this.resetPosition();
},
'$store.state.menuOperation.buttonOperation': function (val, old) { '$store.state.menuOperation.buttonOperation': function (val, old) {
this.updateButtonShow(val, old); this.updateButtonShow(val, old);
}, },
@ -219,9 +216,6 @@ export default {
this.selectedChange(); this.selectedChange();
} }
}, },
mounted() {
this.resetPosition();
},
beforeDestroy() { beforeDestroy() {
this.buttonDown(this.Command.cancel.clearMbm.operation); this.buttonDown(this.Command.cancel.clearMbm.operation);
}, },
@ -266,11 +260,6 @@ export default {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
}); });
}, },
resetPosition() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
updateButtonShow(val, old) { updateButtonShow(val, old) {
if (old) { if (old) {
// //
@ -700,7 +689,6 @@ export default {
if (station.controlMode == 'Local' || station.controlMode == 'Emergency') { if (station.controlMode == 'Local' || station.controlMode == 'Emergency') {
if (buttonOperation && this.commandTypeList.includes(model._type)) { if (buttonOperation && this.commandTypeList.includes(model._type)) {
this.deviceList.push(model); this.deviceList.push(model);
// debugger;
if (buttonOperation === this.Signal.arrangementRoute.button.operation) { if (buttonOperation === this.Signal.arrangementRoute.button.operation) {
this.arrangementRouteOperation(this.deviceList); this.arrangementRouteOperation(this.deviceList);
} else if (buttonOperation === this.MixinCommand.totalCancel.button.operation) { } else if (buttonOperation === this.MixinCommand.totalCancel.button.operation) {

View File

@ -62,11 +62,6 @@ export default {
return []; return [];
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.domIdConfirm = ''; this.domIdConfirm = '';

View File

@ -83,11 +83,6 @@
return '增加用户' return '增加用户'
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -57,11 +57,6 @@
return '删除用户' return '删除用户'
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -91,11 +91,6 @@
return '用户编辑页面' return '用户编辑页面'
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
// //

View File

@ -63,11 +63,6 @@
return '关于ControlMonitor' return '关于ControlMonitor'
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -66,11 +66,6 @@ export default {
return '设置限速'; return '设置限速';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -103,11 +103,6 @@
return '用户管理' return '用户管理'
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
})
},
methods: { methods: {
doShow(operate) { doShow(operate) {
// //

View File

@ -94,11 +94,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
loadInitData(operate) { loadInitData(operate) {
this.model.username = ''; this.model.username = '';

View File

@ -193,11 +193,6 @@ export default {
return '设置临时限速'; return '设置临时限速';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -189,9 +189,6 @@ export default {
}, },
mounted() { mounted() {
this.loadTableData(); this.loadTableData();
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
}, },
methods: { methods: {
updateTableValue(code, result, success) { updateTableValue(code, result, success) {

View File

@ -95,11 +95,6 @@ export default {
return '添加计划车'; return '添加计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -78,11 +78,6 @@ export default {
return '删除计划车'; return '删除计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -95,11 +95,6 @@ export default {
return '平移计划车'; return '平移计划车';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -103,7 +103,6 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.setNameDisplay(); this.setNameDisplay();
this.$store.dispatch('training/tipReload');
}); });
}, },
methods: { methods: {

View File

@ -142,11 +142,6 @@ export default {
// } // }
// } // }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -59,11 +59,6 @@ export default {
// } // }
// }, // },
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -641,16 +641,16 @@ export default {
{ {
maxDuration: 15, maxDuration: 15,
minDuration: 8, minDuration: 8,
operateType: CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN.value, operateType: CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN.value,
skinCode: '04', skinCode: '04',
trainingName: '取消扣车({10}-{12}站台)', trainingName: '全线取消扣车',
trainingRemark: '设置取消扣车功能(上行全线)', trainingRemark: '设置取消扣车功能({12}全线)',
trainingType: 'Stand', trainingType: 'Stand',
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' }, { deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
{ deviceType: '06', orderNum: 2, operateCode: '5051', tip: '鼠标左键点击【上行全线】按钮', val: '02' }, { deviceType: '06', orderNum: 2, operateCode: 'com01', tip: '鼠标左键点击【{12}全线】按钮', val: 'true' },
{ deviceType: '06', orderNum: 3, operateCode: '508', tip: '鼠标左键点击【确定】按钮' } { deviceType: '06', orderNum: 3, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {

View File

@ -107,11 +107,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -83,11 +83,6 @@ export default {
return ''; return '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
if (!this.dialogShow) { if (!this.dialogShow) {

View File

@ -60,11 +60,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(messages) { doShow(messages) {
this.dialogShow = true; this.dialogShow = true;

View File

@ -115,11 +115,6 @@ export default {
return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : ''; return this.dialogShow ? OperationHandler.getDomIdByOperation(this.operation) : '';
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate) { doShow(operate) {
this.operate = operate || {}; this.operate = operate || {};

View File

@ -155,9 +155,6 @@ export default {
} }
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (this.timeCountConfirm > 0) { if (this.timeCountConfirm > 0) {
this.timeCountConfirm--; this.timeCountConfirm--;

View File

@ -101,11 +101,6 @@ export default {
} }
}, },
watch:{}, watch:{},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -121,11 +121,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

View File

@ -110,11 +110,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected, tempData) { doShow(operate, selected, tempData) {
this.selected = selected; this.selected = selected;

View File

@ -152,11 +152,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected, tempData) { doShow(operate, selected, tempData) {
this.selected = selected; this.selected = selected;

View File

@ -112,11 +112,6 @@ export default {
} }
} }
}, },
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: { methods: {
doShow(operate, selected) { doShow(operate, selected) {
this.selected = selected; this.selected = selected;

Some files were not shown because too many files have changed in this diff Show More