删除逻辑对应车次窗

This commit is contained in:
zyy 2020-06-11 17:39:33 +08:00
parent e9713fc471
commit 9c0d69e81e

View File

@ -74,6 +74,9 @@ export default {
this.editModel.logicSectionCodeList.forEach(logicCode => {
const section = this.$store.getters['map/getDeviceByCode'](logicCode);
models.push(deepAssign(section, {_dispose: true}));
const trainWindowModel = this.$store.getters['map/getDeviceByCode'](section.trainWindowCode);
models.push(deepAssign(trainWindowModel, {_dispose: true}));
});
if (this.logicNum === 0) {
logicSectionCodeList = [];