南京二行调调整
This commit is contained in:
parent
2fd6a971f3
commit
aec02b7752
@ -77,8 +77,7 @@ class Painter {
|
||||
*/
|
||||
add(device) {
|
||||
try {
|
||||
// const instance = shapefactory(device, this.$jmap);
|
||||
const instance = this.newGraph(device);
|
||||
const instance = device.instance || this.newGraph(device);
|
||||
if (instance) {
|
||||
device.instance = instance;
|
||||
this.$transformHandle.transformView(instance);
|
||||
@ -151,6 +150,7 @@ class Painter {
|
||||
const trainDevice = this.$jmap.getDeviceByCode(item);
|
||||
trainDevice.overLapIndex = index;
|
||||
trainDevice.instance && this.mapInstanceLevel[deviceType.Train].remove(trainDevice.instance);
|
||||
trainDevice.instance = null;
|
||||
this.add(trainDevice);
|
||||
});
|
||||
|
||||
|
@ -778,7 +778,10 @@ export default class Station extends Group {
|
||||
this.createTroButton(); // 创建轨道预览按钮
|
||||
} else {
|
||||
this.troButton && this.troButton.hide();
|
||||
// this.troButton && this.troButton.dirty();
|
||||
this.dirty();
|
||||
}
|
||||
console.log(this.model.showMode, '==', this.troButton);
|
||||
}
|
||||
setShowStation(flag) {
|
||||
if (flag) {
|
||||
|
@ -230,6 +230,7 @@ class StationStand extends Group {
|
||||
setShowMode() {
|
||||
const showMode = this.model.showMode;
|
||||
const showConditions = this.style.StationStand.common.functionButtonShow;
|
||||
this.setVisible(this.model.visible);
|
||||
if (!showConditions || showConditions === '01' || showMode === showConditions) {
|
||||
this.stopJumpLamp && this.stopJumpLamp.show();
|
||||
this.cancelStopJumpLamp && this.cancelStopJumpLamp.show();
|
||||
|
@ -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.3.83:9000'; // 旭强 有线
|
||||
// BASE_API = 'http://192.168.3.83:9000'; // 旭强 有线
|
||||
// BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线
|
||||
// BASE_API = 'http://192.168.3.120:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
|
||||
|
@ -31,7 +31,6 @@ export default {
|
||||
return {
|
||||
dialogShow: false,
|
||||
mapData: null,
|
||||
enter: false,
|
||||
selfJmap: null
|
||||
};
|
||||
},
|
||||
@ -72,21 +71,17 @@ export default {
|
||||
doShow() {
|
||||
this.dialogShow = true;
|
||||
if (this.selfJmap) { Vue.prototype.$jlmap = this.selfJmap; }
|
||||
this.$jlmap && this.$jlmap.clearTrainView();
|
||||
this.$store.dispatch('config/resize', { width:this.width, height: this.height });
|
||||
this.$nextTick(function() {
|
||||
if (!this.enter) {
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
this.enter = true;
|
||||
} else {
|
||||
this.$jlmap.clearTrainView();
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '02');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '02');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
});
|
||||
},
|
||||
destroy() {
|
||||
|
@ -41,7 +41,6 @@ export default {
|
||||
dialogShow: false,
|
||||
mapData: null,
|
||||
deviceCode: '',
|
||||
enter: false,
|
||||
selfJmap: null,
|
||||
buttonDbup: ButtonDbupIcon,
|
||||
buttonRight: ButtonRightIcon,
|
||||
@ -84,22 +83,18 @@ export default {
|
||||
methods: {
|
||||
doShow() {
|
||||
this.dialogShow = true;
|
||||
this.$jlmap && this.$jlmap.clearTrainView();
|
||||
if (this.selfJmap) { Vue.prototype.$jlmap = this.selfJmap; }
|
||||
this.$store.dispatch('config/resize', { width:this.width, height: this.height });
|
||||
this.$nextTick(function() {
|
||||
if (!this.enter) {
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
this.enter = true;
|
||||
} else {
|
||||
this.$jlmap.clearTrainView();
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '05');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '05');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
});
|
||||
},
|
||||
destroy() {
|
||||
|
@ -49,7 +49,6 @@ export default {
|
||||
buttonDbup: ButtonDbupIcon,
|
||||
buttonRight: ButtonRightIcon,
|
||||
buttonLeft: ButtonLeftIcon,
|
||||
enter: false,
|
||||
selfJmap: null
|
||||
};
|
||||
},
|
||||
@ -93,25 +92,18 @@ export default {
|
||||
doShow(deviceCode) {
|
||||
this.dialogShow = true;
|
||||
if (this.selfJmap) { Vue.prototype.$jlmap = this.selfJmap; }
|
||||
this.$jlmap && this.$jlmap.clearTrainView();
|
||||
this.$store.dispatch('config/resize', { width:this.width, height: this.height });
|
||||
this.deviceCode = deviceCode;
|
||||
if (this.enter) {
|
||||
this.$refs.mapCanvas && this.$refs.mapCanvas.setCenter(this.deviceCode);
|
||||
}
|
||||
this.$nextTick(function() {
|
||||
if (!this.enter) {
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
this.enter = true;
|
||||
} else {
|
||||
this.$jlmap.clearTrainView();
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '02');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
this.$refs.mapCanvas.setMap(this.$store.state.map.map);
|
||||
const mapDevice = this.$store.state.map.mapDevice;
|
||||
const list = [];
|
||||
for (const key in mapDevice) {
|
||||
list.push(mapDevice[key]);
|
||||
}
|
||||
this.$jlmap.updateShowMode(list, '02');
|
||||
this.$store.dispatch('training/updateMapState', list);
|
||||
});
|
||||
},
|
||||
doClose() {
|
||||
|
Loading…
Reference in New Issue
Block a user