From deb60acd14273b91148af942bee6015d5ae51944 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Fri, 31 Jul 2020 15:53:25 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=98=E5=9B=BE=E8=B0=83=E6=95=B4=E5=85=BC?=
=?UTF-8?q?=E5=AE=B9=E6=95=B0=E6=8D=AE&=E7=BB=BC=E5=90=88=E4=BB=BF?=
=?UTF-8?q?=E7=9C=9F=E8=A7=82=E4=BC=97=E5=92=B1=E4=B8=8D=E5=85=B3=E9=97=AD?=
=?UTF-8?q?=E4=B8=89=E7=BB=B4=E9=A9=BE=E9=A9=B6&=E8=AE=BE=E5=A4=87?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=A7=84=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/QueryListPage/DataForm.vue | 37 ++---
src/jmapNew/utils/parser.js | 2 +-
src/views/newMap/jointTrainingNew/index.vue | 4 +-
.../system/deviceManage/editConfigScreen.vue | 132 +++++++-----------
src/views/trainingPlatform/demonList.vue | 6 +-
5 files changed, 80 insertions(+), 101 deletions(-)
diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue
index db7ba1b40..4af6ecec0 100644
--- a/src/components/QueryListPage/DataForm.vue
+++ b/src/components/QueryListPage/DataForm.vue
@@ -152,10 +152,9 @@
>
@@ -171,9 +170,9 @@
>
@@ -187,9 +186,9 @@
>
@@ -204,9 +203,9 @@
>
@@ -217,12 +216,13 @@
filterable
:placeholder="item.placeholder"
:disabled="item.disabled"
+ @change="((val)=>{deviceChange(val, item)})"
>
@@ -386,6 +386,11 @@ export default {
},
clearValidate() {
this.$refs.form.clearValidate();
+ },
+ deviceChange(data, item) {
+ if (item.deviceChange) {
+ item.deviceChange(data);
+ }
}
}
};
diff --git a/src/jmapNew/utils/parser.js b/src/jmapNew/utils/parser.js
index 2fe265082..d8e53c5cd 100644
--- a/src/jmapNew/utils/parser.js
+++ b/src/jmapNew/utils/parser.js
@@ -62,7 +62,7 @@ export function parser(data, skinCode, showConfig) {
zrUtil.each(data.sectionList || [], elem => {
if (elem.type == '02' || elem.type == '03') {
mapDevice[elem.code].parentName = mapDevice[elem.parentCode] ? mapDevice[elem.parentCode].name : '';
- } else if (elem.type == '01' && (elem.standTrack || elem.reentryTrack)) {
+ } else if (elem.type == '01' && (elem.standTrack || elem.reentryTrack) && elem.belongStation) {
mapDevice[elem.belongStation].sectionCode = elem.code;
}
}, this);
diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue
index 57525c191..eb25d58b2 100644
--- a/src/views/newMap/jointTrainingNew/index.vue
+++ b/src/views/newMap/jointTrainingNew/index.vue
@@ -421,8 +421,8 @@ export default {
case 'AUDIENCE':
this.$store.dispatch('training/setPrdType', '');
this.$store.dispatch('training/setRoles', 'AUDIENCE');
- this.jl3dmaintainershow = false;
- this.drivingShow = false;
+ // this.jl3dmaintainershow = false;
+ // this.drivingShow = false;
this.hideIbp();
break;
case 'DRIVER':
diff --git a/src/views/system/deviceManage/editConfigScreen.vue b/src/views/system/deviceManage/editConfigScreen.vue
index e5be944f8..e36b619bb 100644
--- a/src/views/system/deviceManage/editConfigScreen.vue
+++ b/src/views/system/deviceManage/editConfigScreen.vue
@@ -1,73 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+