From 31c8e8828fb5fb32e6036a6385907b3c7a8b5883 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Fri, 10 Jul 2020 14:39:47 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=9A=E5=8F=B7=E6=89=93=E5=BC=80?=
=?UTF-8?q?=E4=B8=89=E7=BB=B4=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/newMap/jointTrainingNew/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue
index 97a7368d4..ac609453d 100644
--- a/src/views/newMap/jointTrainingNew/index.vue
+++ b/src/views/newMap/jointTrainingNew/index.vue
@@ -475,7 +475,7 @@ export default {
case 'STATION_SUPERVISOR': this.$store.dispatch('training/setPrdType', '01'); this.$store.dispatch('training/setRoles', 'STATION_SUPERVISOR'); this.hideIbp(); this.drivingShow = false; break;
case 'AUDIENCE': this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'AUDIENCE'); this.hideIbp(); break;
case 'DRIVER': this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'DRIVER'); break;
- case 'MAINTAINER': this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'MAINTAINER'); this.hideIbp(); break;
+ case 'MAINTAINER': this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'MAINTAINER'); this.hideIbp(); this.jl3dmaintainershow = true; break;
}
if (this.isAdmin && this.adminMode) {
this.$store.dispatch('training/setPrdType', swch || '02');
From 54a5a29f26edf10af3f0dfc8ddb882f30c67ea8c Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Fri, 10 Jul 2020 14:46:18 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E9=A2=84=E8=A7=88?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMap/displayNew/demon/addQuest.vue | 34 +++++--
src/views/newMap/displayNew/designIndex.vue | 98 +++++++++----------
src/views/newMap/displayNew/menuDemon.vue | 38 ++-----
src/views/newMap/displayNew/menuSchema.vue | 1 +
4 files changed, 85 insertions(+), 86 deletions(-)
diff --git a/src/views/newMap/displayNew/demon/addQuest.vue b/src/views/newMap/displayNew/demon/addQuest.vue
index acc221118..a5c7e2e2a 100644
--- a/src/views/newMap/displayNew/demon/addQuest.vue
+++ b/src/views/newMap/displayNew/demon/addQuest.vue
@@ -179,16 +179,34 @@ export default {
let newMemberList = [];
if (res.code == 200) {
if (res.data.memberList && res.data.memberList.length > 0) {
- // res.data.memberList
// newMemberList
- const playerList = res.data.memberList.filter(item => item.hasPlay === true);
- playerList.map(each=>{
- if (!each.deviceName && each.deviceCode) {
- const device = this.$store.getters['map/getDeviceByCode'](each.deviceCode);
+ // const playerList = res.data.memberList.filter(item => item.hasPlay === true);
+ // playerList.map(each=>{
+ // if (!each.deviceName && each.deviceCode) {
+ // const device = this.$store.getters['map/getDeviceByCode'](each.deviceCode);
+ // if (device.name) {
+ // each.deviceName = device.name;
+ // } else {
+ // each.deviceName = each.deviceCode;
+ // }
+ // }
+ // });
+ const activeMemberList = [];
+ res.data.actionList.forEach((activeMember)=>{
+ if (!(activeMemberList.length > 0 && activeMemberList.includes(activeMember.memberId))) {
+ activeMemberList.push(activeMember.memberId);
+ }
+ });
+ const playerList = res.data.memberList.filter(member=>{
+ return activeMemberList.includes(member.id);
+ });
+ playerList.map(member=>{
+ if (!member.deviceName && member.deviceCode) {
+ const device = this.$store.getters['map/getDeviceByCode'](member.deviceCode);
if (device.name) {
- each.deviceName = device.name;
+ member.deviceName = device.name;
} else {
- each.deviceName = each.deviceCode;
+ member.deviceName = member.deviceCode;
}
}
});
@@ -199,6 +217,7 @@ export default {
this.mapLocation = res.data.mapLocation;
}
this.memberList = newMemberList || [];
+ debugger;
this.memberList.unshift({ id: '', name: this.$t('display.script.none'), role: 'no' });
}
this.roleShow = true;
@@ -215,7 +234,6 @@ export default {
this.$emit('selectQuest', this.row, this.form.role, this.mapLocation, roleName.role);
this.doClose();
this.roleDoClose();
-
},
roleDoClose() {
diff --git a/src/views/newMap/displayNew/designIndex.vue b/src/views/newMap/displayNew/designIndex.vue
index 37d62b294..0ec35803c 100644
--- a/src/views/newMap/displayNew/designIndex.vue
+++ b/src/views/newMap/displayNew/designIndex.vue
@@ -5,7 +5,7 @@