From db5c5168131723a0cd7b37395891392a10fa02b6 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 8 Jul 2020 13:49:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=88=90=E5=91=98=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/jointTrainingNew/index.vue | 8 ++++---- .../jointTrainingNew/memberManage/addMember.vue | 10 +++++----- .../jointTrainingNew/memberManage/membersManage.vue | 12 ++++++------ .../newMap/jointTrainingNew/newChatView/chatBox.vue | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index addcbdc09..310d1cd59 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -403,7 +403,7 @@ export default { async getUserRole() { const res = await getSimulationUserInfo(this.group); const data = res.data || {}; - this.userRole = data.role || 'AUDIENCE'; + this.userRole = data.type || 'AUDIENCE'; this.deviceCode = data.deviceCode; this.isAdmin = data.admin; @@ -427,7 +427,7 @@ export default { let resp = {data: {}}; if (this.project == 'jsxt' ) { resp = await getRaceUserById(this.$route.query.raceId); - resp.data.userRole = resp.data.role; + resp.data.userRole = resp.data.type; const paperResp = await getTestPaperDatail(this.$route.query.raceId); if (paperResp.data && paperResp.data.practicalQuestions) { this.questionList = []; @@ -453,7 +453,7 @@ export default { resp = await this.getUserRole(); } if (resp && resp.code == 200) { - this.userRole = resp.data.role || 'AUDIENCE'; + this.userRole = resp.data.type || 'AUDIENCE'; this.setSimulationPrdType(); } await this.getTrainDetail(); @@ -658,7 +658,7 @@ export default { this.$messageBox('您已经被请离房间!'); this.$refs.demonMenu.back(); } else if (item.messageType === 'PLAY_CHANGE' && item.userId == this.userId) { - this.userRole = item.role || 'AUDIENCE'; + this.userRole = item.type || 'AUDIENCE'; this.setSimulationPrdType(); } }); diff --git a/src/views/newMap/jointTrainingNew/memberManage/addMember.vue b/src/views/newMap/jointTrainingNew/memberManage/addMember.vue index 7c2d173ed..2314196e3 100644 --- a/src/views/newMap/jointTrainingNew/memberManage/addMember.vue +++ b/src/views/newMap/jointTrainingNew/memberManage/addMember.vue @@ -9,8 +9,8 @@ :close-on-click-modal="false" > - - + + {{ data.label }} - + { const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode); - switch (item.role) { + switch (item.type) { case 'DISPATCHER': this.memberData[item.id].label = '行调' + (dispatcherList.length + 1); dispatcherList.push(this.memberData[item.id]); @@ -274,7 +274,7 @@ export default { flag = this.memberData[data.id].nickName.indexOf(value) !== -1; } let driverNoShow = true; - if (data.role && data.role === 'DRIVER' && !this.activeTrains.includes(data.deviceCode)) { + if (data.role && data.type === 'DRIVER' && !this.activeTrains.includes(data.deviceCode)) { driverNoShow = false; } return (data.label.indexOf(value) !== -1 || flag) && driverNoShow; diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue index 032e6f43b..7629c6e70 100644 --- a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue @@ -218,7 +218,7 @@ export default { const maintainerList = []; val.forEach(item => { const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode); - switch (item.role) { + switch (item.type) { case 'DISPATCHER': this.memberData[item.id].label = '行调' + (dispatcherList.length + 1); dispatcherList.push(this.memberData[item.id]); From 49cd6213c9985e7bf6ecc8d05277789895a66230 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 8 Jul 2020 14:05:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4cctv=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 72276b664..0d90641b1 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -423,7 +423,9 @@ export default { this.$router.push({ path: `/jlmap3d/passengerflow`, query:{ mapid:resp.data.map.id, group:res.data.group, - project: getSessionStorage('project') + project: getSessionStorage('project'), + projectDevice: this.$route.query.projectDevice, + type: this.$route.query.type } }); } else { this.$router.push({ path: `/jointTrainingNew`, query: query });