From 6b53bc55d6763d7ff45e91df91eef4d7caa6d15e Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Mon, 7 Dec 2020 16:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=A0=E9=99=A4=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5=E5=85=B3=E8=81=94=E8=BD=A6=E6=AC=A1=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Station/index.js | 6 +++--- .../mapoperate/section/batchSettings.vue | 2 -- .../newMapdraft/mapoperate/section/index.vue | 8 ++++++++ .../newMapdraft/mapoperate/splitScreen.vue | 20 ++++++++++--------- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/jmapNew/shape/Station/index.js b/src/jmapNew/shape/Station/index.js index 13ca73a0d..53dc65d24 100644 --- a/src/jmapNew/shape/Station/index.js +++ b/src/jmapNew/shape/Station/index.js @@ -13,7 +13,7 @@ import Text from 'zrender/src/graphic/Text'; import store from '@/store/index_APP_TARGET'; import EStationText from './EStationText'; -import {traverseLineElements, traverseStatusElements} from '../utils/ShapeStatusCovert'; +import { traverseLineElements } from '../utils/ShapeStatusCovert'; import Vue from 'vue'; @@ -39,9 +39,9 @@ export default class Station extends Group { const model = this.model; const style = this.style; - // // 站台所有的绘图元素 + // 站台所有的绘图元素 const elementTypeList = { - 'stationText':EStationText // 车站名称 (普通站台样式) + 'stationText': EStationText // 车站名称 (普通站台样式) }; // 遍历当前线路下的绘图元素 组合模式 diff --git a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue index e6f8716f5..f08e1a06a 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue @@ -361,7 +361,6 @@ export default { const pointX = section.points[index].x; const map = this.$store.state.map.map; const models = []; - console.log(this.$store.state.map.map); map.sectionList.forEach(item => { if (item.type == '04') { const flag = this.fromModel.right ? item.namePosition.x >= pointX : item.namePosition.x < pointX; @@ -437,7 +436,6 @@ export default { } models.push(deepAssign(section, { _type: 'Section' })); this.$emit('updateMapModel', models); - console.log(models, '批量删除'); } } }; diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue index 78ae6f1c2..1c48a5d8a 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue @@ -680,7 +680,15 @@ export default { const trainWindowModel = this.$store.getters['map/getDeviceByCode'](selected.trainWindowCode); trainWindowModel && models.push(deepAssign(trainWindowModel, { _dispose: true })); const deleteObjAssociatedSection = this.handleDeleteSectionAssociatedSection(selected); + if (selected.type == '01') { + selected.logicSectionCodeList && selected.logicSectionCodeList.forEach(code => { + const selectedLocl = this.$store.getters['map/getDeviceByCode'](code); + const trainWindowModel = this.$store.getters['map/getDeviceByCode'](selectedLocl.trainWindowCode); + trainWindowModel && models.push(deepAssign(trainWindowModel, { _dispose: true })); + }); + } models = [...models, ...deleteObjAssociatedSection]; + // console.log(models, '====='); this.$emit('updateMapModel', models); this.clear(); }).catch(error => { diff --git a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue index 31e0b80d7..ceb38b4c3 100644 --- a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue +++ b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue @@ -161,13 +161,15 @@ export default { if (data.bigScreenSplitConfig) { data.bigScreenSplitConfig.forEach(item => { const section = this.$store.getters['map/getDeviceByCode'](item.sectionCode); - const param = { - position: String(section.points[section.points.length - 1].x), - name: `${section.name}(${section.code})`, - offsetTop: 0, - sectionCode: section.code - }; - this.tableData.push(param); + if (section) { + const param = { + position: String(section.points[section.points.length - 1].x), + name: `${section.name}(${section.code})`, + offsetTop: 0, + sectionCode: section.code + }; + this.tableData.push(param); + } }); this.tableData.sort((a, b) => Number(a.position) - Number(b.position)); // 数组排序 @@ -270,8 +272,8 @@ export default { clear() { this.$refs.hostileForm.resetFields(); this.addModel.sectionCode = ''; - this.index = ''; - this.field = ''; + this.index = ''; + this.field = ''; }, generateOverlab() { // 生成 if (!this.addModel.sectionCode) {