This commit is contained in:
joylink_cuiweidong 2021-02-01 11:24:14 +08:00
commit c4619c0784
50 changed files with 352 additions and 269 deletions

View File

@ -434,6 +434,8 @@ class Jlmap {
this.setUpdateMapDevice(list || []); // 增加一个 前数据 处理 为了在区段中 获取全部的 道岔信息 this.setUpdateMapDevice(list || []); // 增加一个 前数据 处理 为了在区段中 获取全部的 道岔信息
const controlTransferList = []; const controlTransferList = [];
const signalDeviceList = []; const signalDeviceList = [];
const selected = store.state.menuOperation.selected;
(list || []).forEach((elem, index) => { (list || []).forEach((elem, index) => {
const code = elem.code; const code = elem.code;
const type = elem._type; const type = elem._type;
@ -517,6 +519,10 @@ class Jlmap {
this.$painter.update(oDevice); this.$painter.update(oDevice);
} }
} }
if (selected && selected.code == elem.code) {
store.dispatch('menuOperation/setSelected', {device: selected});
}
}); });
if (controlTransferList.length > 0) { if (controlTransferList.length > 0) {

View File

@ -120,10 +120,13 @@ export default {
}; };
if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) { if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) {
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL; operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL;
operate.operation = OperationEvent.StationControl.requestCentralControl.confirm.operation;
} else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) { } else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) {
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL; operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL;
operate.operation = OperationEvent.StationControl.requestStationControl.confirm.operation;
} else if (this.operation == OperationEvent.StationControl.emergencyStationControl.menu.operation) { } else if (this.operation == OperationEvent.StationControl.emergencyStationControl.menu.operation) {
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL; operate.cmdType = CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL;
operate.operation = OperationEvent.StationControl.emergencyStationControl.confirm.operation;
} }
this.doClose(); this.doClose();
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => { this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {

View File

@ -85,23 +85,22 @@ export default {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdChooseControl() { domIdChooseControl() {
return this.dialogShow ? OperationEvent.MixinCommand.remoteControl.select.domId : ''; return this.dialogShow ? OperationEvent.Command.order.choose.domId : '';
}, },
domIdChooseStation() { domIdChooseStation() {
return this.dialogShow ? OperationEvent.Command.order.choose1.domId : ''; return this.dialogShow ? OperationEvent.Command.order.choose1.domId : '';
}, },
domIdCommit() { domIdCommit() {
if (this.dialogShow) { if (this.dialogShow) {
// if (this.stationType == '01') { if (this.stationType == '01') {
// return OperationEvent.StationControl.requestCentralControl.menu.domId; return OperationEvent.StationControl.requestCentralControl.menu.domId;
// } else if (this.stationType == '02') { } else if (this.stationType == '02') {
// return OperationEvent.StationControl.requestStationControl.menu.domId; return OperationEvent.StationControl.requestStationControl.menu.domId;
// } else if (this.stationType == '03') { } else if (this.stationType == '03') {
// return OperationEvent.StationControl.emergencyStationControl.menu.domId; return OperationEvent.StationControl.emergencyStationControl.menu.domId;
// } else { } else {
// return ''; return '';
// } }
return OperationEvent.MixinCommand.remoteControl.confirm.domId;
} else { } else {
return ''; return '';
} }
@ -241,21 +240,21 @@ export default {
}, },
// //
conterCommit() { conterCommit() {
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCodes:[this.stationCode]}, 0).then((data)=>{ commitOperate(menuOperate.StationControl.requestCentralControl, {stationCodes:[this.stationCode]}, 1).then((data)=>{
this.doClose(); this.doClose();
this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由站控转为遥控:\n' + this.stationName); this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由站控转为遥控:\n' + this.stationName);
}); });
}, },
// //
requestCommit() { requestCommit() {
commitOperate(menuOperate.StationControl.requestStationControl, {stationCodes:[this.stationCode]}, 0).then((data)=>{ commitOperate(menuOperate.StationControl.requestStationControl, {stationCodes:[this.stationCode]}, 1).then((data)=>{
this.doClose(); this.doClose();
this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName); this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName);
}); });
}, },
// //
emergencyCommit() { emergencyCommit() {
commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCodes:[this.stationCode]}, 0).then((data)=>{ commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCodes:[this.stationCode]}, 1).then((data)=>{
this.doClose(); this.doClose();
this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName); this.$refs.twoConfirmation.doShow(data.operate, '确认将如下操作区域的控制模式由中控转为站控:\n' + this.stationName);
}); });

View File

@ -789,10 +789,12 @@ export default {
trainingType: 'ControlConvertMenu', trainingType: 'ControlConvertMenu',
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: 'mBar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击【系统】' }, { deviceType: 'bar', orderNum: 1, operateCode: '002', tip: '鼠标左键点击【系统】' },
{ deviceType: '05', orderNum: 2, operateCode: '0024', tip: '鼠标左键点击【站遥控】' }, { deviceType: '05', orderNum: 2, operateCode: '0024', tip: '鼠标左键点击【站遥控】' },
{ deviceType: '05', orderNum: 3, operateCode: '299b', tip: '选择【紧急站控】' }, { deviceType: '05', orderNum: 3, operateCode: '0071', tip: '选择车站-【{1}】', val: '{2}'},
{ deviceType: '05', orderNum: 4, operateCode: '299c', tip: '鼠标左键点击【设置】' } { deviceType: '05', orderNum: 4, operateCode: '007', tip: '选择【紧急站控】', val: '{2}' },
{ deviceType: '05', orderNum: 5, operateCode: '201', tip: '鼠标左键点击【设置】' },
{ deviceType: '05', orderNum: 6, operateCode: '2013', tip: '鼠标左键点击【确认】' }
] ]
}, },
{ {

View File

@ -59,9 +59,8 @@
<script> <script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
// import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
export default { export default {
name: 'SignalBlock', name: 'SignalBlock',
@ -75,7 +74,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
startTime: new Date(), startTime: new Date(),
@ -90,6 +88,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -116,8 +117,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -66,7 +66,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -83,6 +82,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -109,8 +111,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -126,7 +127,6 @@ export default {
commit() { commit() {
}, },
handleClick() { handleClick() {
}, },
cancel() { cancel() {
const operate = { const operate = {

View File

@ -112,7 +112,6 @@ export default {
return { return {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
display: true, display: true,
checkAll: false, checkAll: false,
minTime: 0, minTime: 0,
@ -131,6 +130,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -155,6 +157,12 @@ export default {
if (this.show) { if (this.show) {
this.commit(); this.commit();
} }
},
'$store.state.menuOperation.selectedCount': function(val) {
if (this.selected) {
const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
this.currentTime = stand.parkingTime
}
} }
}, },
mounted() { mounted() {
@ -163,8 +171,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -206,11 +213,11 @@ export default {
operation: OperationEvent.Command.common.choose.operation, operation: OperationEvent.Command.common.choose.operation,
val: val.code val: val.code
}; };
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
const stand = this.$store.getters['map/getDeviceByCode'](val.code);
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -88,7 +88,6 @@ export default {
beforeSectionList: [], beforeSectionList: [],
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
displayCopyPath: false, displayCopyPath: false,
selectStandCode: '' selectStandCode: ''
}; };
@ -101,6 +100,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -133,8 +135,7 @@ export default {
expandPath() { expandPath() {
console.log('展开进路预览'); console.log('展开进路预览');
}, },
doShow(operate, selected, tempData) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -43,7 +43,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -57,6 +56,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -83,8 +85,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -57,9 +57,8 @@
<script> <script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
// import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SectionLimitSpeed from './sectionLimitSpeed'; import SectionLimitSpeed from './sectionLimitSpeed';
export default { export default {
@ -75,7 +74,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
activeName: 'first', activeName: 'first',
tempData: [], tempData: [],
@ -110,6 +108,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -142,7 +143,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.tempData = []; this.tempData = [];
this.operate = operate; this.operate = operate;
this.sectionList.forEach(item => { this.sectionList.forEach(item => {
@ -150,7 +151,6 @@ export default {
this.tempData.push(item); this.tempData.push(item);
} }
}); });
// this.selected = selected;
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.speedLimitValue = 0; this.speedLimitValue = 0;
@ -178,7 +178,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
const sectionEle = this.$store.getters['map/getDeviceByCode'](val.code); const sectionEle = this.$store.getters['map/getDeviceByCode'](val.code);
this.speedLimitValue = sectionEle.speedUpLimit; this.speedLimitValue = sectionEle.speedUpLimit;
if (this.speedLimitValue > 0) { if (this.speedLimitValue > 0) {

View File

@ -61,7 +61,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
selectShow: false, selectShow: false,
activeName: 'first', activeName: 'first',
@ -81,6 +80,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -110,7 +112,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.tempData = []; this.tempData = [];
this.sectionList.forEach(item => { this.sectionList.forEach(item => {
if (item.type === '01' || item.type === '04') { if (item.type === '01' || item.type === '04') {
@ -119,7 +121,6 @@ export default {
}); });
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -148,7 +149,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -68,7 +68,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
isBlock: true, isBlock: true,
initEle: null, initEle: null,
commandEleCode: null commandEleCode: null
@ -86,6 +85,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -115,10 +117,9 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -161,7 +162,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -46,7 +46,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: {} operate: {}
}; };
}, },
@ -57,6 +56,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
isCbtc() { isCbtc() {
return this.operate.operation === OperationEvent.Command.mBar.cbtcMode.operation; return this.operate.operation === OperationEvent.Command.mBar.cbtcMode.operation;
}, },
@ -86,8 +88,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -63,7 +63,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: '', operate: '',
initEle: null, initEle: null,
commandEleCode: null commandEleCode: null
@ -76,6 +75,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -102,10 +104,9 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -169,10 +170,11 @@ export default {
operation: OperationEvent.Signal.lock.choose.operation, operation: OperationEvent.Signal.lock.choose.operation,
param: {} param: {}
}; };
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -68,7 +68,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: '', operate: '',
initEle: null, initEle: null,
commandEleCode: null commandEleCode: null
@ -81,6 +80,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -107,10 +109,9 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -185,7 +186,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -66,7 +66,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
mode: '', mode: '',
position: '', position: '',
reserved: '', reserved: '',
@ -85,6 +84,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -111,10 +113,9 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
@ -151,14 +152,14 @@ export default {
this.initEle = null; this.initEle = null;
this.commandEleCode = null; this.commandEleCode = null;
const step = { const step = {
code: `${val.code}`, code: val.code,
operation: this.isBlock ? OperationEvent.Switch.block.choose.operation : OperationEvent.Switch.unblock.choose.operation, operation: this.isBlock ? OperationEvent.Switch.block.choose.operation : OperationEvent.Switch.unblock.choose.operation,
param: {} param: {}
}; };
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -63,7 +63,6 @@ export default {
value: '', value: '',
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
checkedDirection: '', checkedDirection: '',
isIndeterminate: true, isIndeterminate: true,
checkAll: false checkAll: false
@ -73,6 +72,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -99,8 +101,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -55,7 +55,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -72,6 +71,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -98,8 +100,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -51,7 +51,6 @@
<script> <script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
// import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
@ -66,7 +65,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -82,6 +80,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -108,8 +109,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -197,7 +197,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
activeName: 'first', activeName: 'first',
tempData: [], tempData: [],
@ -217,6 +216,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
filterRouteList() { filterRouteList() {
return this.routeList.filter(el => { return el.flt == {'auto': true, 'artificial': false}[this.unlockType]; }); return this.routeList.filter(el => { return el.flt == {'auto': true, 'artificial': false}[this.unlockType]; });
}, },
@ -246,8 +248,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -355,7 +356,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = row; this.$store.dispatch('menuOperation/setSelected', {device: row});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
@ -411,7 +412,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
@ -431,7 +432,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
@ -453,7 +454,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -45,7 +45,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -62,6 +61,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -88,8 +90,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -99,7 +99,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
intervalValue: 180, intervalValue: 180,
@ -117,6 +116,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -143,8 +145,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -79,7 +79,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
command: false, command: false,
activeName: 'first', activeName: 'first',
@ -113,6 +112,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdConfirm() { domIdConfirm() {
return this.dialogShow ? OperationEvent.Command.common.confirm1.domId : ''; return this.dialogShow ? OperationEvent.Command.common.confirm1.domId : '';
}, },
@ -147,7 +149,7 @@ export default {
} }
}); });
this.command = true; this.command = true;
this.selected = selected; this.$store.dispatch('menuOperation/setSelected', {device: selected});
// //
this.operate = operate; this.operate = operate;
this.speedLimitValue = value; this.speedLimitValue = value;

View File

@ -45,7 +45,6 @@
<script> <script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
// import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
@ -60,7 +59,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
selectShow: false, selectShow: false,
activeName: 'first', activeName: 'first',
@ -78,6 +76,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -104,8 +105,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -67,7 +67,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
activeName: 'first', activeName: 'first',
tempData: [], tempData: [],
@ -86,6 +85,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose1.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose1.domId : ''
}, },
@ -115,14 +117,13 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.tempData = []; this.tempData = [];
this.sectionList.forEach(item => { this.sectionList.forEach(item => {
if (item.type === '01' || item.type === '04') { if (item.type === '01' || item.type === '04') {
this.tempData.push(item); this.tempData.push(item);
} }
}); });
this.selected = selected;
this.operate = operate; this.operate = operate;
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -145,7 +146,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
this.$refs.sectionable.setCurrentRow(this.selected); this.$refs.sectionable.setCurrentRow(this.selected);
} }
}).catch(() => { }).catch(() => {

View File

@ -68,7 +68,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false, active: false,
selectShow: false, selectShow: false,
activeName: 'first', activeName: 'first',
@ -83,6 +82,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -109,14 +111,13 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.tempData = []; this.tempData = [];
this.sectionList.forEach(item => { this.sectionList.forEach(item => {
if (item.type === '01' || item.type === '04') { if (item.type === '01' || item.type === '04') {
this.tempData.push(item); this.tempData.push(item);
} }
}); });
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -72,7 +72,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: {}, operate: {},
title: '' title: ''
}; };
@ -87,6 +86,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdConfirm() { domIdConfirm() {
return this.dialogShow ? OperationEvent.Command.common.confirm1.domId : ''; return this.dialogShow ? OperationEvent.Command.common.confirm1.domId : '';
}, },
@ -110,8 +112,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.title = this.isBlock ? '确认/取消信号机封锁' : '确认/取消信号机解除封锁'; this.title = this.isBlock ? '确认/取消信号机封锁' : '确认/取消信号机解除封锁';

View File

@ -68,7 +68,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: '', operate: '',
command: true command: true
}; };
@ -80,6 +79,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -106,8 +108,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -58,7 +58,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: {} operate: {}
}; };
}, },
@ -69,6 +68,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -95,8 +97,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -73,7 +73,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
command: true, command: true,
operate: '' operate: ''
}; };
@ -85,6 +84,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -111,8 +113,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -64,7 +64,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
operate: {} operate: {}
}; };
}, },
@ -75,6 +74,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
isCbtc() { isCbtc() {
return this.operate.operation === OperationEvent.Command.mBar.cbtcMode.operation; return this.operate.operation === OperationEvent.Command.mBar.cbtcMode.operation;
}, },
@ -117,15 +119,14 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
this.$refs.singleTable.setCurrentRow(this.selected); this.$refs.singleTable.setCurrentRow(this.selected);
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
}); });
}, },
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -13,8 +13,8 @@
<el-table-column prop="name" label="ID" /> <el-table-column prop="name" label="ID" />
<el-table-column prop="signalModel" label="信号指示模式"> <el-table-column prop="signalModel" label="信号指示模式">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.greenOpen">开灯模式</span>
<span v-if="scope.row.redOpen">灭灯模式</span> <span v-if="scope.row.redOpen">灭灯模式</span>
<span v-else>开灯模式</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -22,9 +22,9 @@
<el-col :span="5" :offset="1"> <el-col :span="5" :offset="1">
<div class="set-status-title">命令</div> <div class="set-status-title">命令</div>
<div class="set-status-box"> <div class="set-status-box">
<el-radio v-model="signalModel" :disabled="true" :label="false">灭灯</el-radio> <el-radio v-model="signalModel" :disabled="!signalDisabled" :label="false">灭灯</el-radio>
<br> <br>
<el-radio v-model="signalModel" :disabled="true" :label="true">点灯</el-radio> <el-radio v-model="signalModel" :disabled="signalDisabled" :label="true">点灯</el-radio>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
@ -62,10 +62,10 @@ export default {
status: false, status: false,
operate: null, operate: null,
signalModel: true, signalModel: true,
signalDisabled: true,
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false
selected: null
}; };
}, },
computed: { computed: {
@ -75,6 +75,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
filterSignalList() { filterSignalList() {
return this.signalList.map(el => { return this.signalList.map(el => {
return this.$store.getters['map/getDeviceByCode'](el.code); return this.$store.getters['map/getDeviceByCode'](el.code);
@ -101,6 +104,14 @@ export default {
if (this.show) { if (this.show) {
this.commit(); this.commit();
} }
},
'$store.state.menuOperation.selectedCount': function(val) {
console.log(this.selected)
if (this.selected) {
const signal = this.$store.getters['map/getDeviceByCode'](this.selected.code);
this.signalModel = !!signal.redOpen
this.signalDisabled = !this.signalModel;
}
} }
}, },
mounted() { mounted() {
@ -120,8 +131,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
this.signalModel = this.selected.redOpen;
this.$refs.singleTable.setCurrentRow(this.selected); this.$refs.singleTable.setCurrentRow(this.selected);
} }
}).catch(() => { }).catch(() => {
@ -129,8 +139,7 @@ export default {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
}); });
}, },
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -63,8 +63,7 @@ export default {
standStatus: true, standStatus: true,
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false
selected: null
}; };
}, },
computed: { computed: {
@ -74,6 +73,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -95,6 +97,13 @@ export default {
if (this.show) { if (this.show) {
this.commit(); this.commit();
} }
},
'$store.state.menuOperation.selectedCount': function(val) {
if (this.selected) {
const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
this.status = !!stand.allSkip
this.standStatus = !this.status;
}
} }
}, },
mounted() { mounted() {
@ -103,8 +112,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -155,9 +163,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
this.standStatus = !standEle.allSkip;
this.status = !!standEle.allSkip;
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -54,8 +54,7 @@ export default {
standStatus: true, standStatus: true,
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false
selected: null
}; };
}, },
computed: { computed: {
@ -65,6 +64,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -91,8 +93,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -37,9 +37,9 @@
<el-col :span="7" :offset="1"> <el-col :span="7" :offset="1">
<div class="set-status-box"> <div class="set-status-box">
<div class="set-status-title">扣车</div> <div class="set-status-title">扣车</div>
<el-radio v-model="status" :disabled="standStatus" :label="true" style="margin-top:17px">设置</el-radio> <el-radio v-model="status" :disabled="!standStatus" :label="true" style="margin-top:17px">设置</el-radio>
<br> <br>
<el-radio v-model="status" :disabled="!standStatus" :label="false">取消</el-radio> <el-radio v-model="status" :disabled="standStatus" :label="false">取消</el-radio>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
@ -79,7 +79,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
active: '未激活' active: '未激活'
}; };
@ -91,6 +90,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -113,15 +115,15 @@ export default {
this.commit(); this.commit();
} }
}, },
selected(val) { '$store.state.menuOperation.selectedCount': function(val) {
if (val) { if (this.selected) {
const stand = this.$store.getters['map/getDeviceByCode'](val.code); const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
if (stand && !stand.stationHoldTrain && !stand.centerHoldTrain) { if (stand && !stand.stationHoldTrain && !stand.centerHoldTrain) {
this.status = true; this.status = true;
this.standStatus = false; this.standStatus = true;
} else { } else {
this.status = false; this.status = false;
this.standStatus = true; this.standStatus = false;
} }
} }
} }
@ -178,10 +180,11 @@ export default {
operation: OperationEvent.Command.common.choose.operation, operation: OperationEvent.Command.common.choose.operation,
val: val.code val: val.code
}; };
this.$store.dispatch('menuOperation/setSelected', {device: val});
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val;
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -97,6 +97,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChooseControl() { domIdChooseControl() {
return this.dialogShow ? OperationEvent.Command.order.choose.domId : ''; return this.dialogShow ? OperationEvent.Command.order.choose.domId : '';
}, },
@ -130,8 +133,6 @@ export default {
}); });
} }
}, },
watch: {
},
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.$store.dispatch('training/tipReload'); this.$store.dispatch('training/tipReload');
@ -171,7 +172,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();

View File

@ -61,7 +61,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
active: false active: false
}; };
}, },
@ -72,6 +71,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdChoose() { domIdChoose() {
return this.dialogShow ? OperationEvent.Command.common.choose.domId : '' return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
}, },
@ -93,6 +95,14 @@ export default {
if (this.show) { if (this.show) {
this.commit(); this.commit();
} }
},
'$store.state.menuOperation.selectedCount': function(val) {
if (this.selected) {
const swch = this.$store.getters['map/getDeviceByCode'](this.selected.code);
if (swch) {
this.active = !!swch.cutOff;
}
}
} }
}, },
mounted() { mounted() {
@ -101,8 +111,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -126,6 +135,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/setSelected', {device: selected});
isClose && this.doClose(); isClose && this.doClose();
} }
}).catch(() => { }).catch(() => {
@ -143,9 +153,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
const signalEle = this.$store.getters['map/getDeviceByCode'](val.code);
this.active = !!signalEle.singleLock;
} }
}).catch(() => { }).catch(() => {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
@ -153,7 +161,7 @@ export default {
}, },
getSignalLock(code) { getSignalLock(code) {
const signalEle = this.$store.getters['map/getDeviceByCode'](code); const signalEle = this.$store.getters['map/getDeviceByCode'](code);
if (signalEle.singleLock) { if (signalEle.cutOff) {
return '未激活'; return '未激活';
} else { } else {
return '激活'; return '激活';

View File

@ -72,7 +72,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
command: true, command: true,
title: '' title: ''
}; };
@ -84,6 +83,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
isBlock() { isBlock() {
return this.operate && this.operate.operation === OperationEvent.Command.commandNingBo3.line_switch_block.operation; return this.operate && this.operate.operation === OperationEvent.Command.commandNingBo3.line_switch_block.operation;
}, },
@ -166,7 +168,7 @@ export default {
this.$store.dispatch('training/nextNew', step).then(({ valid }) => { this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
this.$refs.singleTable.setCurrentRow(this.selected); this.$refs.singleTable.setCurrentRow(this.selected);
} }
}).catch(() => { }).catch(() => {

View File

@ -80,7 +80,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
mode: '', mode: '',
position: '', position: '',
reserved: 'reversed' reserved: 'reversed'
@ -94,6 +93,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -120,8 +122,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {
@ -164,7 +165,7 @@ export default {
} else if (switchEle.reversePosition) { } else if (switchEle.reversePosition) {
this.position = 'normal'; this.position = 'normal';
} }
this.selected = val; this.$store.dispatch('menuOperation/setSelected', {device: val});
} }
}); });
}, },

View File

@ -52,7 +52,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
mode: '', mode: '',
position: '', position: '',
reserved: '', reserved: '',
@ -66,6 +65,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdConfirm() { domIdConfirm() {
return this.dialogShow ? OperationEvent.Command.common.confirm.domId : ''; return this.dialogShow ? OperationEvent.Command.common.confirm.domId : '';
}, },
@ -89,8 +91,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -111,7 +111,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false allCheck: false
@ -125,6 +124,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -151,8 +153,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -45,7 +45,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {} operate: {}
}; };
@ -57,8 +56,8 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
domIdClose() { selected() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.$store.state.menuOperation.selected;
}, },
isDepart() { isDepart() {
return this.operate.operation === OperationEvent.Train.setTrainDeparture.menu.operation; return this.operate.operation === OperationEvent.Train.setTrainDeparture.menu.operation;
@ -75,6 +74,9 @@ export default {
domIdConfirm() { domIdConfirm() {
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.menu.domId : ''; return this.dialogShow ? OperationEvent.Signal.arrangementRoute.menu.domId : '';
}, },
domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
title() { title() {
if (this.isDepart) { if (this.isDepart) {
return '列车发车'; return '列车发车';
@ -100,8 +102,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -201,7 +201,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -219,6 +218,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -245,8 +247,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -91,7 +91,6 @@ export default {
activeName: 'first', activeName: 'first',
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
selectStandCode: '', selectStandCode: '',
showPath: false showPath: false
}; };
@ -104,6 +103,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -134,7 +136,7 @@ export default {
console.log('展开进路预览'); console.log('展开进路预览');
}, },
doShow(operate, activeName) { doShow(operate, activeName) {
// this.selected = selected; this.$store.dispatch('menuOperation/setSelected', {device: selected});
this.activeName = activeName; this.activeName = activeName;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -56,7 +56,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -72,6 +71,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -98,8 +100,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -72,7 +72,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false allCheck: false
@ -86,6 +85,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -112,8 +114,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -53,7 +53,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -77,6 +76,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -103,9 +105,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;
this.$nextTick(function () { this.$nextTick(function () {

View File

@ -86,6 +86,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },

View File

@ -53,7 +53,6 @@ export default {
allChecked: false, allChecked: false,
dialogShow: false, dialogShow: false,
loading: false, loading: false,
selected: null,
activeName: 'first', activeName: 'first',
operate: {}, operate: {},
allCheck: false, allCheck: false,
@ -68,6 +67,9 @@ export default {
show() { show() {
return this.dialogShow && !this.$store.state.menuOperation.break; return this.dialogShow && !this.$store.state.menuOperation.break;
}, },
selected() {
return this.$store.state.menuOperation.selected;
},
domIdClose() { domIdClose() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
}, },
@ -94,8 +96,7 @@ export default {
}); });
}, },
methods: { methods: {
doShow(operate, selected) { doShow(operate) {
this.selected = selected;
this.operate = operate; this.operate = operate;
// //
this.dialogShow = true; this.dialogShow = true;

View File

@ -87,14 +87,14 @@ const menuOperation = {
setButtonOperation: (state, operation) => { setButtonOperation: (state, operation) => {
state.buttonOperation = operation; state.buttonOperation = operation;
}, },
setSelected: (state, selected) => { setSelected: (state, obj) => {
state.selected = selected.device; if (obj.subType) state.subType = obj.subType;
state.subType = selected.subType; state.selected = obj.device;
state.selectedCount += 1; state.selectedCount += 1;
}, },
setMenuChange: (state, selected) => { setMenuChange: (state, obj) => {
state.selected = selected.device; state.selected = obj.device;
state.subType = selected.subType; state.subType = obj.subType;
state.setMenuChangeCount += 1; state.setMenuChangeCount += 1;
}, },
mbmpCountIncrement: (state) => { mbmpCountIncrement: (state) => {