查询进路控制模式调整

This commit is contained in:
fan 2022-11-23 11:01:50 +08:00
parent 206dbd1219
commit 4c5e694c9a
2 changed files with 12 additions and 12 deletions

View File

@ -127,9 +127,8 @@ export default {
const operate = {
over: true,
operation: OperationEvent.Signal.detail.menu.operation,
cmdType: CMD.Signal.CMD_STAND_VIEW_STATUS
cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
};
this.loading = true;
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
this.loading = false;

View File

@ -53,17 +53,18 @@ class Handler {
const wholeParam = this.getWholeParam();
const cmdType = this.getCmdType();
if (!cmdType) {
reject({ message: '为获取到操作指令!' });
reject({ message: '未获取到操作指令!' });
} else {
if (store.state.training.domConfig.trainingDesign) { // 实训设计模式下推送 指令数据
store.dispatch('trainingNew/setSimCommand', {id: Date.now(), operationType: cmdType, params: wholeParam, simTime: store.state.socket.simulationTimeSync});
}
sendCommandNew(group, cmdType, wholeParam).then(response => {
this.clear();
resolve({ valid, response });
}).catch(error => {
reject(error);
});
}
if (store.state.training.domConfig.trainingDesign) { // 实训设计模式下推送 指令数据
store.dispatch('trainingNew/setSimCommand', {id: Date.now(), operationType: cmdType, params: wholeParam, simTime: store.state.socket.simulationTimeSync});
}
sendCommandNew(group, cmdType, wholeParam).then(response => {
this.clear();
resolve({ valid, response });
}).catch(error => {
reject(error);
});
} else {
resolve({ valid });
}