From 8b274754993a0c9207bd1d8575c5789f0cf687f6 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 25 Dec 2019 17:33:57 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E7=AB=99=E5=8F=B0=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E8=BD=A6=E7=AB=99=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E5=90=8C=E6=97=B6=E4=BF=AE=E6=94=B9=E6=89=80=E5=B1=9E=E9=9B=86?=
=?UTF-8?q?=E4=B8=AD=E7=AB=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dataRelation/routeoperate/route.vue | 7 +++++--
.../newMapdraft/mapoperate/stationstand.vue | 15 +++++++++------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
index 9a54e49eb..25ba607f1 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
@@ -512,9 +512,12 @@ export default {
changeSectionSelected(list, flag, type) {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
- if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
+ if (section.logicSectionCodeList && section.logicSectionCodeList.length > 0) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
- this.$store.getters['map/getDeviceByCode'](logicSectionCode).instance.drawBatchSelected(flag, flag ? type : '');
+ const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
+ if (logicSection) {
+ logicSection.instance.drawBatchSelected(flag, flag ? type : '');
+ }
});
} else {
section.instance.drawBatchSelected(flag, flag ? type : '');
diff --git a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue
index c073d1fe3..d0e35ab93 100644
--- a/src/views/newMap/newMapdraft/mapoperate/stationstand.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/stationstand.vue
@@ -129,7 +129,7 @@ export default {
name: this.$t('map.mapData'),
item: [
{ prop: 'deviceStationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.stationList, disabled:true},
- { prop: 'stationCode', label: this.$t('map.belongsStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList }
+ { prop: 'stationCode', label: this.$t('map.belongsStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.changeStation }
]
}
}
@@ -258,6 +258,9 @@ export default {
this.field = field === this.field ? '' : field;
this.$emit('standStationCode', this.field);
},
+ changeStation(station) {
+ this.editModel.deviceStationCode = this.getDeviceStationCode(station);
+ },
deviceSelect(selected) {
if (this.field.toUpperCase() != 'standSelectStationCode'.toUpperCase() && selected && selected._type.toUpperCase() === 'StationStand'.toUpperCase()) {
this.$refs.dataform.resetFields();
@@ -293,7 +296,7 @@ export default {
name: `PF${this.stationStandList.length + 1}`,
width: this.addModel.width,
height: this.addModel.height,
- deviceStationCode: this.getDeviceStationCode(),
+ deviceStationCode: this.getDeviceStationCode(this.addModel.stationCode),
visible: true,
position: {
x: 0,
@@ -343,15 +346,15 @@ export default {
}
});
},
- getDeviceStationCode() {
+ getDeviceStationCode(stationCode) {
// 创建新站台的时候,判断该站台对应的车站是否集中站,如果不是集中站,判断该车站是否被控制
// 被控制的车站数据
let beCentralizedStation = {};
this.stationList.some(data=>{
if (data.centralized) {
- if (data.code == this.addModel.stationCode) {
+ if (data.code == stationCode) {
beCentralizedStation = {};
- beCentralizedStation[this.addModel.stationCode] = data.code;
+ beCentralizedStation[stationCode] = data.code;
return true;
}
data.chargeStationCodeList.forEach(charge=>{
@@ -359,7 +362,7 @@ export default {
});
}
});
- return beCentralizedStation[this.addModel.stationCode] || '';
+ return beCentralizedStation[stationCode] || '';
},
// 修改对象
edit() {
From 74f0b12e3c679bad0446a96300f9195945ce68d2 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 25 Dec 2019 18:45:48 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E8=A1=8C?=
=?UTF-8?q?=E5=9B=BE=E6=98=BE=E7=A4=BA=EF=BC=8C=E8=B0=83=E6=95=B4=E8=BF=9B?=
=?UTF-8?q?=E8=B7=AF=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/ningbo_01/planConvert.js | 3 +-
src/utils/baseUrl.js | 4 +-
.../dataRelation/routeoperate/detail.vue | 67 +++++------
.../dataRelation/routeoperate/related.vue | 105 ++++++++++--------
src/views/planMonitor/editTool/schedule.vue | 27 +++--
5 files changed, 112 insertions(+), 94 deletions(-)
diff --git a/src/jmapNew/theme/ningbo_01/planConvert.js b/src/jmapNew/theme/ningbo_01/planConvert.js
index 4fd6553c6..7bc2be825 100644
--- a/src/jmapNew/theme/ningbo_01/planConvert.js
+++ b/src/jmapNew/theme/ningbo_01/planConvert.js
@@ -26,7 +26,8 @@ export default {
if (dataList && dataList.length) {
if (dataList && dataList.length && dataList[1] && dataList[0]) {
- const tIndex = dataList.findIndex(it => { return it[0]; }); // 设置不用过滤行数
+ // const tIndex = dataList.findIndex(it => { return it[0]; }); // 设置不用过滤行数
+ const tIndex = 9; // 设置不用过滤行数
/** 解析二维数组为json对象*/
const reg3 = /^(\d+:\d+:\d+|)/; // 06:12:00
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 1e9afea51..79d1c6346 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -3,11 +3,11 @@ 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.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
- // BASE_API = 'http://192.168.3.82:9000'; // 杜康
+ BASE_API = 'http://192.168.3.82:9000'; // 杜康
} else {
BASE_API = process.env.VUE_APP_BASE_API;
}
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue
index 5256a4bbb..7da6d4b95 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue
@@ -1,29 +1,34 @@
-
-
-
-
-
-
-
+
diff --git a/src/views/planMonitor/editTool/schedule.vue b/src/views/planMonitor/editTool/schedule.vue
index 48e987d04..64e85b40b 100644
--- a/src/views/planMonitor/editTool/schedule.vue
+++ b/src/views/planMonitor/editTool/schedule.vue
@@ -593,14 +593,25 @@ export default {
const station = this.stations[Math.floor((item.data[1] - this.planConvert.EdgeHeight) / this.planConvert.CoordMultiple)] || { name: '', kmRange: '' };
if (!arr.includes(`${item.data[0]}${item.data[1]}`)) {
arr.push(`${item.data[0]}${item.data[1]}`);
- const list = [
- `${this.$t('planMonitor.stationName')}${station.name}
`,
- `${this.$t('planMonitor.stationKilometerMark')}${station.kmRange} km
`,
- `${this.$t('planMonitor.arriveTime')}${timeFormat(item.data[0] + this.planConvert.TranslationTime)}
`,
- `${this.$t('planMonitor.serverTrainNum')}: ${item.seriesName}${item.data[3]}(${item.data[3][0] == '2' ? '上行' : '下行'})`,
- `
`
- ];
- data += list.join('');
+ if (this.$route.query.lineCode == '06') {
+ const list = [
+ `${this.$t('planMonitor.stationName')}${station.name}
`,
+ `${this.$t('planMonitor.stationKilometerMark')}${station.kmRange} km
`,
+ `${this.$t('planMonitor.arriveTime')}${timeFormat(item.data[0] + this.planConvert.TranslationTime)}
`,
+ `${this.$t('planMonitor.serverTrainNum')}: ${item.seriesName}${item.data[3]}`,
+ `
`
+ ];
+ data += list.join('');
+ } else {
+ const list = [
+ `${this.$t('planMonitor.stationName')}${station.name}
`,
+ `${this.$t('planMonitor.stationKilometerMark')}${station.kmRange} km
`,
+ `${this.$t('planMonitor.arriveTime')}${timeFormat(item.data[0] + this.planConvert.TranslationTime)}
`,
+ `${this.$t('planMonitor.serverTrainNum')}: ${item.seriesName}${item.data[3]}(${item.data[3][0] == '2' ? '上行' : '下行'})`,
+ `
`
+ ];
+ data += list.join('');
+ }
}
});
return data;
From d79d2af32c56c88cff57a9d43922f648f78433cc Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 26 Dec 2019 10:44:08 +0800
Subject: [PATCH 3/7] =?UTF-8?q?=E5=8C=BA=E6=AE=B5=E8=B5=8B=E5=80=BC?=
=?UTF-8?q?=E6=97=B6=E6=B8=85=E9=99=A4=E9=80=BB=E8=BE=91=E5=8C=BA=E6=AE=B5?=
=?UTF-8?q?code=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/newMapdraft/mapoperate/section.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/newMap/newMapdraft/mapoperate/section.vue b/src/views/newMap/newMapdraft/mapoperate/section.vue
index fb7c3ecf3..e13f0e6bc 100644
--- a/src/views/newMap/newMapdraft/mapoperate/section.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/section.vue
@@ -665,6 +665,7 @@ export default {
}
this.$refs.dataform.resetFields();
this.editModel.points = [];
+ this.editModel.logicSectionCodeList = [];
this.activeName = 'first';
this.editModel = deepAssign(this.editModel, selected);
this.editModel.logicSectionNum = selected.type === '01' ? selected.logicSectionNum : [0];
From 6ff30c5b63f8a44a8e3fdb7d79024a85d0ae096c Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 26 Dec 2019 10:47:40 +0800
Subject: [PATCH 4/7] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9D=9E=E7=A9=BA?=
=?UTF-8?q?=E6=A0=A1=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMap/newMapdraft/dataRelation/routeoperate/route.vue | 4 +---
.../newMap/newMapdraft/dataRelation/signaloperate/route.vue | 3 ++-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
index 25ba607f1..711f8d3b9 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
@@ -515,9 +515,7 @@ export default {
if (section.logicSectionCodeList && section.logicSectionCodeList.length > 0) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
- if (logicSection) {
- logicSection.instance.drawBatchSelected(flag, flag ? type : '');
- }
+ logicSection && logicSection.instance.drawBatchSelected(flag, flag ? type : '');
});
} else {
section.instance.drawBatchSelected(flag, flag ? type : '');
diff --git a/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
index 90fa7278e..bb676fe13 100644
--- a/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
@@ -235,7 +235,8 @@ export default {
const section = this.$store.getters['map/getDeviceByCode'](item);
if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
- this.$store.getters['map/getDeviceByCode'](logicSectionCode).instance.drawBatchSelected(flag, flag ? type : '');
+ const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
+ logicSection && logicSection.instance.drawBatchSelected(flag, flag ? type : '');
});
} else {
section.instance.drawBatchSelected(flag, flag ? type : '');
From 6e3424e355186502091ba467aaccf227b6126c54 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Thu, 26 Dec 2019 11:01:54 +0800
Subject: [PATCH 5/7] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=9E=E8=AE=AD?=
=?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=96=B0=E6=97=A7=E5=9C=B0=E5=9B=BE=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/Entry.vue | 17 +-
src/router/index.js | 9 +
src/utils/baseUrl.js | 4 +-
src/views/demonstration/detail/index.vue | 10 +-
src/views/display/index.vue | 30 +-
src/views/display/indexNew.vue | 593 ++++++++++++++++++
.../newMap/mapsystemNew/common/index.vue | 164 +++++
src/views/newMap/mapsystemNew/index.vue | 134 ++++
.../newMap/mapsystemNew/plugin/delayBox.vue | 35 ++
.../newMap/mapsystemNew/plugin/delayInfo.vue | 72 +++
.../newMap/mapsystemNew/plugin/src/poptip.vue | 172 +++++
.../newMap/mapsystemNew/plugin/src/tip.vue | 24 +
.../mapsystemNew/plugin/trainingtip.vue | 181 ++++++
.../mapoperate/section/logicBlock.vue | 4 +-
src/views/trainingPlatform/demonList.vue | 2 +-
15 files changed, 1413 insertions(+), 38 deletions(-)
create mode 100644 src/views/display/indexNew.vue
create mode 100644 src/views/newMap/mapsystemNew/common/index.vue
create mode 100644 src/views/newMap/mapsystemNew/index.vue
create mode 100644 src/views/newMap/mapsystemNew/plugin/delayBox.vue
create mode 100644 src/views/newMap/mapsystemNew/plugin/delayInfo.vue
create mode 100644 src/views/newMap/mapsystemNew/plugin/src/poptip.vue
create mode 100644 src/views/newMap/mapsystemNew/plugin/src/tip.vue
create mode 100644 src/views/newMap/mapsystemNew/plugin/trainingtip.vue
diff --git a/src/layout/components/Entry.vue b/src/layout/components/Entry.vue
index ef4562596..b41f86bcf 100644
--- a/src/layout/components/Entry.vue
+++ b/src/layout/components/Entry.vue
@@ -22,13 +22,6 @@
-
@@ -88,8 +81,7 @@ export default {
],
stomp: null,
header: null,
- lang: 'zh',
- switchNewMap: false
+ lang: 'zh'
};
},
computed: {
@@ -101,9 +93,6 @@ export default {
},
isShown() {
return getSessionStorage('project') == 'login' || getSessionStorage('project') == 'design';
- },
- showMapSwitch() {
- return process.env.NODE_ENV === 'development' && !getSessionStorage('project').startsWith('design');
}
},
watch: {
@@ -113,7 +102,6 @@ export default {
if (nowLang === 'zh') {
this.lang = 'en';
}
- this.switchNewMap = this.$store.state.config.switchMap === 'new';
},
methods: {
quickEntry() {
@@ -163,9 +151,6 @@ export default {
break;
}
return path;
- },
- changeSwitch(value) {
- this.$store.dispatch('config/changeSwitchMap', value ? 'new' : 'old' );
}
}
};
diff --git a/src/router/index.js b/src/router/index.js
index 35e000956..fd2c2c053 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -14,6 +14,7 @@ const Jlmap3dSandbox = () => import('@/views/jlmap3d/simulation/jl3dsimulation')
const Jlmap3dModel = () => import('@/views/jlmap3d/device/jl3ddevice');
const Jlmap3dTrain = () => import('@/views/jlmap3d/devicetrain/jl3ddevicetrain');
const Display = () => import('@/views/display/index');
+const DisplayNew = () => import('@/views/display/indexNew');
const DesignDisplay = () => import('@/views/display/designIndex');
const TrainRoom = () => import('@/views/trainRoom/index');
@@ -149,6 +150,7 @@ export const userTrainingPlatform = '016'; // 实训平台
export const UrlConfig = {
display: '/display',
+ displayNew: '/displayNew',
scriptDisplay: '/scriptDisplay',
examRuleDraft: '/examRule/draft',
examRuleManage: '/examRule/manage',
@@ -453,6 +455,13 @@ export const asyncRouter = [
},
hidden: true
},
+ {
+ path: '/displayNew/:mode',
+ component: DisplayNew,
+ meta: {
+ },
+ hidden: true
+ },
{
path: '/design/display/:mode',
component: DesignDisplay,
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 79d1c6346..1e9afea51 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -3,11 +3,11 @@ 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.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
- BASE_API = 'http://192.168.3.82:9000'; // 杜康
+ // BASE_API = 'http://192.168.3.82:9000'; // 杜康
} else {
BASE_API = process.env.VUE_APP_BASE_API;
}
diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue
index 96e9a6608..0ac655945 100644
--- a/src/views/demonstration/detail/index.vue
+++ b/src/views/demonstration/detail/index.vue
@@ -61,7 +61,8 @@ export default {
},
jointShow: false,
jointGroup: '',
- lineCode:''
+ lineCode:'',
+ drawWay: false // 是否新版地图
};
},
computed: {
@@ -104,6 +105,7 @@ export default {
const resp = await getSubSystemDetail(this.$route.params.subSystem);
this.tryUser = 0;
this.loading = false;
+ this.drawWay = res.data.drawWay;
if (resp.data.mapPrd) {
this.courseModel = {
id: resp.data.mapPrd.id,
@@ -235,7 +237,11 @@ export default {
const data = { mapId: this.courseModel.mapId, mapPrdId: this.currentPrdId };
simulationNotify(data).then(resp => {
const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, code: this.currentPrdId, goodsId: this.goodsId, try: this.tryUser };
- this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
+ if (this.drawWay) { // 新版地图
+ this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
+ } else {
+ this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
+ }
launchFullscreen();
}).catch(error => {
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
diff --git a/src/views/display/index.vue b/src/views/display/index.vue
index cc194724a..00cb89468 100644
--- a/src/views/display/index.vue
+++ b/src/views/display/index.vue
@@ -532,23 +532,23 @@ export default {
this.drivingShow = true;
this.$refs.Jl3dDrive.show(this.mapId, this.group);
} else {
- let routeData = this.$router.resolve({
- path:'/jlmap3d/sandbox',
- query:{
- mapid:this.mapId,
- group:this.group,
- token:getToken(),
- }
- });
- window.open(routeData.href, '_blank','noopener noreferrer');
+ const routeData = this.$router.resolve({
+ path:'/jlmap3d/sandbox',
+ query:{
+ mapid:this.mapId,
+ group:this.group,
+ token:getToken()
+ }
+ });
+ window.open(routeData.href, '_blank', 'noopener noreferrer');
}
},
- devicemodel(){
- if(this.deviceShow == false){
- this.deviceShow = true;
- }else{
- this.deviceShow = false;
- }
+ devicemodel() {
+ if (this.deviceShow == false) {
+ this.deviceShow = true;
+ } else {
+ this.deviceShow = false;
+ }
},
showScheduling() {
diff --git a/src/views/display/indexNew.vue b/src/views/display/indexNew.vue
new file mode 100644
index 000000000..1c3a529ae
--- /dev/null
+++ b/src/views/display/indexNew.vue
@@ -0,0 +1,593 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/common/index.vue b/src/views/newMap/mapsystemNew/common/index.vue
new file mode 100644
index 000000000..b5537db86
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/common/index.vue
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/index.vue b/src/views/newMap/mapsystemNew/index.vue
new file mode 100644
index 000000000..719d4ebb6
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/index.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/plugin/delayBox.vue b/src/views/newMap/mapsystemNew/plugin/delayBox.vue
new file mode 100644
index 000000000..ef36dd91b
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/plugin/delayBox.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/plugin/delayInfo.vue b/src/views/newMap/mapsystemNew/plugin/delayInfo.vue
new file mode 100644
index 000000000..d6a9bdba2
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/plugin/delayInfo.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/plugin/src/poptip.vue b/src/views/newMap/mapsystemNew/plugin/src/poptip.vue
new file mode 100644
index 000000000..0e0ee61ff
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/plugin/src/poptip.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/plugin/src/tip.vue b/src/views/newMap/mapsystemNew/plugin/src/tip.vue
new file mode 100644
index 000000000..d571475c6
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/plugin/src/tip.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
diff --git a/src/views/newMap/mapsystemNew/plugin/trainingtip.vue b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
new file mode 100644
index 000000000..a1235af78
--- /dev/null
+++ b/src/views/newMap/mapsystemNew/plugin/trainingtip.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
diff --git a/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue b/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue
index d94c8b83f..99d4366e7 100644
--- a/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/section/logicBlock.vue
@@ -88,7 +88,7 @@ export default {
logicSectionNumList.push(Number(ele.num));
counts += parseInt(ele.num);
});
- if (counts === 0 || allNotZeros) {
+ if (counts == 0 || allNotZeros) {
let logicSectionCodeList = [];
models.forEach(item=> {
logicSectionCodeList.push(item.code);
@@ -98,7 +98,7 @@ export default {
models.push(deepAssign(section, {_dispose: true}));
}
});
- if (counts === 0) {
+ if (counts == 0) {
logicSectionNumList = [];
logicSectionCodeList = [];
}
diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue
index 0b73c0584..c8469ae2b 100644
--- a/src/views/trainingPlatform/demonList.vue
+++ b/src/views/trainingPlatform/demonList.vue
@@ -120,7 +120,7 @@ export default {
this.mapId = obj.id;
this.$router.push({ path: `${UrlConfig.trainingPlatform.permission}/${this.mapId}`});
} else if ( obj.type === 'MapSystem') {
- getSubSystemInfo(obj.id).then(resp => {
+ getSubSystemInfo(obj.id).then(resp => { // 查询子系统信息
let router = '';
switch (resp.data.type) {
case 'Exam':
From 8431ff8cc411189f30daa2b2bc97be43f75f754b Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 26 Dec 2019 11:04:21 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9D=9E=E7=A9=BA?=
=?UTF-8?q?=E6=A0=A1=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMapdraft/dataRelation/routeoperate/protect.vue | 7 ++++---
.../newMap/newMapdraft/dataRelation/routeoperate/route.vue | 4 ++--
.../newMapdraft/dataRelation/signaloperate/route.vue | 4 ++--
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/protect.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/protect.vue
index 5d0819d4a..b97fc6640 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/protect.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/protect.vue
@@ -388,12 +388,13 @@ export default {
changeSectionSelected(list, flag, type) {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
- if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
+ if (section && section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
- this.$store.getters['map/getDeviceByCode'](logicSectionCode).instance.drawBatchSelected(flag, flag ? type : '');
+ const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
+ logicSection && logicSection.instance.drawBatchSelected(flag, flag ? type : '');
});
} else {
- section.instance.drawBatchSelected(flag, flag ? type : '');
+ section && section.instance.drawBatchSelected(flag, flag ? type : '');
}
});
},
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
index 711f8d3b9..692261451 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
@@ -512,13 +512,13 @@ export default {
changeSectionSelected(list, flag, type) {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
- if (section.logicSectionCodeList && section.logicSectionCodeList.length > 0) {
+ if (section && section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
logicSection && logicSection.instance.drawBatchSelected(flag, flag ? type : '');
});
} else {
- section.instance.drawBatchSelected(flag, flag ? type : '');
+ section && section.instance.drawBatchSelected(flag, flag ? type : '');
}
});
},
diff --git a/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
index bb676fe13..1156ce74e 100644
--- a/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/signaloperate/route.vue
@@ -233,13 +233,13 @@ export default {
changeSectionSelected(list, flag, type) {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
- if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
+ if (section && section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {
const logicSection = this.$store.getters['map/getDeviceByCode'](logicSectionCode);
logicSection && logicSection.instance.drawBatchSelected(flag, flag ? type : '');
});
} else {
- section.instance.drawBatchSelected(flag, flag ? type : '');
+ section && section.instance.drawBatchSelected(flag, flag ? type : '');
}
});
}
From 65475abf6f81dde80bc844c12e379acc872de3ac Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Thu, 26 Dec 2019 14:06:42 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E8=BF=9B=E8=B7=AF=E8=B5=8B=E5=80=BC?=
=?UTF-8?q?=E5=89=8D=E6=B8=85=E9=99=A4=E5=BB=B6=E7=BB=AD=E4=BF=9D=E6=8A=A4?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
index 692261451..391e27966 100644
--- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
+++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue
@@ -333,6 +333,7 @@ export default {
},
routeData(val, old) {
if (val) {
+ this.$refs.protect.clear();
this.addModel = val;
val.overlapCode && this.initProtectData(val);
this.addModel.routeFlankProtectionList.forEach(item => {