显示配置调整

This commit is contained in:
fan 2021-09-08 10:30:04 +08:00
parent abf36ad841
commit 8bf3d38f95
11 changed files with 18 additions and 41 deletions

View File

@ -307,7 +307,7 @@ class Jlmap {
}
});
const prdType2ShowMode = { '01': '03', '02': '02'};
const prdType2ShowMode = { '01': '03', '02': '02', '09': '09'};
const showMode = prdType2ShowMode[this.showConfig.prdType];
const stationCode = this.stationCode;

View File

@ -104,6 +104,9 @@ export default class Line2 extends Group {
this.segment && this.segment.hide();
this.viceSegment && this.viceSegment.hide();
}
if (store.state.training.prdType === '09') {
this.text && this.text.hide();
}
}
setShowStation(stationCode) {
if (store.getters['map/checkDeviceShow'](stationCode, this._code)) {

View File

@ -580,6 +580,7 @@ export default class Section extends Group {
this.eachChild(item => {
item.show();
});
this.isShowShape = true;
this.setState(this.model);
}
if (this.model.showMode === '05') {
@ -620,7 +621,6 @@ export default class Section extends Group {
if (this.reentryTrackText) {
this.model.reentryTrackNameShow ? this.reentryTrackText.show() : this.reentryTrackText.hide();
}
this.setState(this.model);
} else {
this.eachChild(item => {

View File

@ -1174,6 +1174,7 @@ class Signal extends Group {
this.eachChild(item => {
item.show();
});
this.isShowShape = true;
this.setState(this.model);
}
if (showMode == '03') {

View File

@ -802,6 +802,7 @@ export default class Switch extends Group {
this.eachChild(item => {
item.show();
});
this.isShowShape = true;
this.setState(this.model);
}
if ( this.model.showMode === '05') {

View File

@ -68,6 +68,9 @@ export default class Text2 extends Group {
} else {
this.text && this.text.hide();
}
if (store.state.training.prdType === '09') {
this.text && this.text.hide();
}
}
setShowStation(stationCode) {
if (store.getters['map/checkDeviceShow'](stationCode, this._code)) {

View File

@ -3,8 +3,8 @@ import systemGraphShape from './systemGraph';
export default {
__Shape: {
...graphMapShape,
...systemGraphShape
...graphMapShape
// ...systemGraphShape
},
getBuilder(type) {
const ShapeClazz = this.__Shape[type];

View File

@ -2,9 +2,9 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.167:9000'; // 旭强
BASE_API = 'http://192.168.8.176:9000'; // 旭强
// BASE_API = 'http://192.168.2.183:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';

View File

@ -219,7 +219,7 @@ export default {
});
},
async start() {
const jumpFunc = ['jump', 'jump', 'enterIntegratedSimulation', 'jump', 'jumpScheduling', 'enterISCS', 'enterScreen'];
const jumpFunc = ['jump', 'jump', 'enterIntegratedSimulation', 'jump', 'jumpScheduling', 'enterISCS', 'enterScreen', '', 'jump'];
this[jumpFunc[parseInt(this.courseModel.prdType) - 1]]();
},
jumpSimulation() {

View File

@ -98,19 +98,14 @@ export default {
}
});
},
// menuSchema
'$store.state.training.prdType':function(val) {
if (val == '01') { this.switchModeInner('01'); } else { this.switchModeInner('02'); }
},
'$store.state.config.menuBarLoadedCount': function (val) { // menuBar
this.setPosition();
},
'$store.state.app.windowSizeCount': function() { //
this.setWindowSize();
},
'$store.state.training.prdType': function (val) { //
this.setPosition();
},
// '$store.state.training.prdType': function (val) { //
// },
'$store.state.map.mapViewLoadedCount': function (val) { //
if (this.planRunning) {
this.$store.dispatch('training/simulationStart');
@ -217,29 +212,6 @@ export default {
this.dataError = resp.data.dataError;
}
},
// showMode
switchModeInner(swch) {
let showMode = '03';
if (swch == '01') {
showMode = '03';
} else if (swch == '02') {
showMode = '02';
}
const list = [];
const mapDevice = this.$store.state.map.mapDevice;
for (const key in mapDevice) {
list.push(mapDevice[key]);
}
if (swch == '01') {
this.$jlmap.updateShowStation(list, this.$store.state.training.centerStationCode); //
} else {
this.$jlmap.updateShowStation(list, ''); //
}
this.$jlmap.updateShowMode(list, showMode); //
},
//
loadMapData() {
if (parseInt(this.mapId)) {

View File

@ -144,6 +144,7 @@ export default {
},
'$store.state.map.mapViewLoadedCount': function (val) { //
this.$store.state.exam.deviceCode && this.setCenter(this.$store.state.exam.deviceCode);
if (this.$store.state.training.prdType === '09') { this.setShowStation(''); }
},
'$store.state.config.canvasSizeCount': function (val) {
this.resetSize();
@ -501,10 +502,6 @@ export default {
this.$jlmap.updateShowMode(list, showMode);
},
setShowStation(stationCode, setCenter) {
const lineCode = this.$store.getters['map/lineCode'];
// if (lineCode === '02' || lineCode === '05') {
// !setCenter && this.setCenter(stationCode);
// } else {
const list = [];
const mapDevice = this.$store.state.map.mapDevice;
for (const key in mapDevice) {