pictureList 显示调整
This commit is contained in:
parent
b09e2f003c
commit
b1419ef839
@ -409,6 +409,7 @@ class Jlmap {
|
||||
const code = elem.code;
|
||||
const type = elem._type;
|
||||
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
|
||||
oDevice._pictureHide = false;
|
||||
this.$painter.update(oDevice);
|
||||
});
|
||||
this.$painter.$transformHandle.revisibleAll();
|
||||
@ -435,11 +436,11 @@ class Jlmap {
|
||||
const device = this.mapDevice[item];
|
||||
if (device && device._type !== deviceType.Switch && device._type !== deviceType.Train) {
|
||||
const pictureDevice = store.getters['map/getPictureDeviceByCode'](item);
|
||||
device._dispose = pictureDevice ? pictureDevice.pictureHide : false;
|
||||
device._pictureHide = pictureDevice ? pictureDevice.pictureHide : false;
|
||||
this.$painter.updatePicture(device);
|
||||
try {
|
||||
if (device._type === deviceType.Section && device.type === '03') {
|
||||
this.mapDevice[device.switch.code]._dispose = pictureDevice ? pictureDevice.pictureHide : false;
|
||||
this.mapDevice[device.switch.code]._pictureHide = pictureDevice ? pictureDevice.pictureHide : false;
|
||||
this.computedSwitch(device.switch);
|
||||
this.$painter.updatePicture(this.mapDevice[device.switch.code]);
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ class Painter {
|
||||
updatePicture(device) {
|
||||
if (device) {
|
||||
try {
|
||||
if (device._dispose) {
|
||||
if (device._pictureHide) {
|
||||
this.delete(device);
|
||||
} else {
|
||||
device.instance && this.mapInstanceLevel[device._type].remove(device.instance);
|
||||
|
Loading…
Reference in New Issue
Block a user