新版地图包加载仿真

This commit is contained in:
fan 2019-12-30 09:57:54 +08:00
parent c7078dcdb9
commit 15f7aa656e
2 changed files with 15 additions and 3 deletions

View File

@ -447,7 +447,11 @@ export function getNewMapDataByGroup(group) {
} }
/** 新版地图指令操作定义 */ /** 新版地图指令操作定义 */
export function newMapOperate(group, operationId, data) { export function newMapOperate(group, operationId, data) {
return request({
url: `/simulation/${group}/operate/${operationId}`,
method: 'post',
data: data
});
} }
/** 新版地图根据group获取仿真运行图 */ /** 新版地图根据group获取仿真运行图 */
export function getRunPlanNew(group) { export function getRunPlanNew(group) {

View File

@ -96,7 +96,7 @@ export default {
}, },
computed: { computed: {
...mapGetters('map', [ ...mapGetters('map', [
'stationList', 'stationList'
]), ]),
...mapGetters('training', [ ...mapGetters('training', [
'mode', 'mode',
@ -111,16 +111,22 @@ export default {
isFork() { isFork() {
if (this.dialogShow) { if (this.dialogShow) {
return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.forcedStationControl); return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.forcedStationControl);
} else {
return '';
} }
}, },
isRequest() { isRequest() {
if (this.dialogShow) { if (this.dialogShow) {
return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestStationControl); return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestStationControl);
} else {
return '';
} }
}, },
isConter() { isConter() {
if (this.dialogShow) { if (this.dialogShow) {
return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestCentralControl); return checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestCentralControl);
} else {
return '';
} }
}, },
domIdChoose() { domIdChoose() {
@ -132,6 +138,8 @@ export default {
} else if (checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestCentralControl)) { } else if (checkOperationIsCurrentOperate(this.operation, OperationEvent.StationControl.requestCentralControl)) {
return OperationEvent.StationControl.requestCentralControl.choose.domId; return OperationEvent.StationControl.requestCentralControl.choose.domId;
} }
} else {
return '';
} }
}, },
domIdConter() { domIdConter() {
@ -356,7 +364,7 @@ export default {
} else { } else {
this.disabledSure = false; this.disabledSure = false;
} }
}).catch((error) => { }).catch(() => {
this.disabledSure = false; this.disabledSure = false;
this.disabledClose = false; this.disabledClose = false;
}); });