调整现地操作
This commit is contained in:
parent
7fce0afd5a
commit
b06b2b58e2
@ -51,44 +51,6 @@ export default {
|
|||||||
oldSelected:null,
|
oldSelected:null,
|
||||||
menuNormal: {
|
menuNormal: {
|
||||||
Local: [
|
Local: [
|
||||||
// {
|
|
||||||
// label: '排列进路',
|
|
||||||
// handler: this.arrangementRoute,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
|
||||||
// // auth: { station: false, center: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: '取消进路',
|
|
||||||
// handler: this.cancelTrainRoute,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
|
|
||||||
// // auth: { station: false, center: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: '信号重开',
|
|
||||||
// handler: this.reopenSignal,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL
|
|
||||||
// // auth: { station: false, center: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// type: 'separator'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: '进路交人工控',
|
|
||||||
// handler: this.humanControl,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
|
|
||||||
// // auth: { station: false, center: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: '进路交自动控',
|
|
||||||
// handler: this.atsAutoControl,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
|
|
||||||
// // auth: { station: false, center: true }
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: '查询进路控制状态',
|
|
||||||
// handler: this.detail,
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
|
|
||||||
// }
|
|
||||||
],
|
],
|
||||||
Center: [
|
Center: [
|
||||||
{
|
{
|
||||||
|
@ -196,7 +196,7 @@ export default {
|
|||||||
case this.Signal.arrangementRoute.button.operation: // 排列进路
|
case this.Signal.arrangementRoute.button.operation: // 排列进路
|
||||||
return CMD.Signal.CMD_SIGNAL_SET_ROUTE;
|
return CMD.Signal.CMD_SIGNAL_SET_ROUTE;
|
||||||
case this.Signal.guide.button.operation: // 引导进路
|
case this.Signal.guide.button.operation: // 引导进路
|
||||||
return CMD.Section.CMD_SIGNAL_ROUTE_GUIDE;
|
return CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE;
|
||||||
case this.Signal.reopenSignal.button.operation:
|
case this.Signal.reopenSignal.button.operation:
|
||||||
return CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
|
return CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
|
||||||
}
|
}
|
||||||
@ -219,14 +219,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
passWordCommit(data) {
|
passWordCommit(data) {
|
||||||
|
console.log(data);
|
||||||
const operate = {
|
const operate = {
|
||||||
type: 'mbm',
|
type: 'mbm',
|
||||||
operation: data.operateNext
|
operation: data.operateNext
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
@ -395,6 +396,58 @@ export default {
|
|||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {});
|
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {});
|
||||||
console.log(operate);
|
console.log(operate);
|
||||||
},
|
},
|
||||||
|
handleGuideRoute(deviceList) {
|
||||||
|
if (deviceList.length === 1) {
|
||||||
|
let route = '';
|
||||||
|
this.routeList.forEach(item => {
|
||||||
|
if (item.startSignalCode === deviceList[0].code && this.routeData[item.code].lock) {
|
||||||
|
route = item;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (!route) {
|
||||||
|
const operate = {
|
||||||
|
type: 'mbm',
|
||||||
|
operation: this.$store.state.menuOperation.buttonOperation,
|
||||||
|
operateNext: this.Command.close.password.operation
|
||||||
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
|
this.$refs.password.doShow(operate);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const operate = {
|
||||||
|
send: true,
|
||||||
|
operation: this.$store.state.menuOperation.buttonOperation,
|
||||||
|
cmdType: this.cmdType,
|
||||||
|
param: {routeCode: route.code}
|
||||||
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
|
operate['operateNext'] = this.Command.close.password.operation;
|
||||||
|
this.operation = '0';
|
||||||
|
this.$refs.password.doShow(operate);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (deviceList.length === 2) {
|
||||||
|
const operate = {
|
||||||
|
send: true,
|
||||||
|
operation: this.$store.state.menuOperation.buttonOperation,
|
||||||
|
cmdType: this.cmdType,
|
||||||
|
param: ''
|
||||||
|
};
|
||||||
|
this.routeList.forEach(item => {
|
||||||
|
if (item.startSignalCode === deviceList[0].code && item.endSignalCode === deviceList[1].code) {
|
||||||
|
operate.param = {routeCode: item.code};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log(operate, '222222222222');
|
||||||
|
}
|
||||||
|
},
|
||||||
selectedChange() {
|
selectedChange() {
|
||||||
// 按钮按下时
|
// 按钮按下时
|
||||||
if (this.$store.state.menuOperation.buttonOperation) {
|
if (this.$store.state.menuOperation.buttonOperation) {
|
||||||
@ -411,19 +464,15 @@ export default {
|
|||||||
this.handelFunctionButton(model, subType);
|
this.handelFunctionButton(model, subType);
|
||||||
} else if (this.$store.state.menuOperation.buttonOperation === this.MixinCommand.totalCancel.button.operation) {
|
} else if (this.$store.state.menuOperation.buttonOperation === this.MixinCommand.totalCancel.button.operation) {
|
||||||
this.handelTotalCancel(model, subType);
|
this.handelTotalCancel(model, subType);
|
||||||
|
} else if (this.$store.state.menuOperation.buttonOperation === this.Signal.guide.button.operation) {
|
||||||
|
if (model._type !== 'Signal') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.handleGuideRoute(this.deviceList);
|
||||||
} else {
|
} else {
|
||||||
const operate = this.handelOperate(model);
|
const operate = this.handelOperate(model);
|
||||||
if (this.cmdTypeList.indexOf(model._type) >= 0) {
|
if (this.cmdTypeList.indexOf(model._type) >= 0) {
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {});
|
||||||
if (valid) {
|
|
||||||
if (this.operation == this.Signal.guide.button.operation) { // 引导进路操作 显示密码窗
|
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
operate['operateNext'] = this.Command.close.password.operation;
|
|
||||||
this.operation = '0';
|
|
||||||
this.$refs.password.doShow(operate);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
Handler.clear(); // 清空操作组
|
Handler.clear(); // 清空操作组
|
||||||
this.$store.dispatch('menuOperation/setButtonOperation', null);
|
this.$store.dispatch('menuOperation/setButtonOperation', null);
|
||||||
|
Loading…
Reference in New Issue
Block a user