From 90a1c03bd43b0f45319b4224d18ec1c85e6a21b1 Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 24 Oct 2022 18:13:43 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=80=83=E8=AF=95=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/exam/examPanel.vue | 44 +++++++++++---------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/views/newMap/display/exam/examPanel.vue b/src/views/newMap/display/exam/examPanel.vue index 64d52cbe8..ad437ab25 100644 --- a/src/views/newMap/display/exam/examPanel.vue +++ b/src/views/newMap/display/exam/examPanel.vue @@ -4,7 +4,7 @@
满分: {{ composition.fullScore }}
考试时间: {{ composition.validDuration }}分钟
-
+
理论题
Date: Mon, 24 Oct 2022 18:20:45 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83?= =?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 --- .../display/memberManage/membersManage.vue | 21 +++++++++++++++++++ .../newMap/display/terminals/terminalMenu.vue | 1 + 2 files changed, 22 insertions(+) diff --git a/src/views/newMap/display/memberManage/membersManage.vue b/src/views/newMap/display/memberManage/membersManage.vue index 3cebea056..eb626bc9a 100644 --- a/src/views/newMap/display/memberManage/membersManage.vue +++ b/src/views/newMap/display/memberManage/membersManage.vue @@ -174,6 +174,7 @@ export default { this.simulationUserList = val; }, '$store.state.training.memberList': function (val) { + debugger; if (val && val.length) { this.memberData = this.$store.state.training.memberData; const dispatcherList = []; @@ -354,6 +355,11 @@ export default { }); } this.$refs.tree && this.$refs.tree.filter(this.queryMember); + }, + '$store.state.socket.simulationRoleList':function(list) { + if (list && list.length) { // 人员变化监控 + this.checkRoleChange(list); + } } }, mounted() { @@ -412,10 +418,25 @@ export default { driverNoShow = false; } return (data.labelName.indexOf(value) !== -1 || flag) && driverNoShow; + }, + checkRoleChange(list) { + list.forEach(each => { + const item = each.body; + if (item.messageType === 'PLAY_CHANGE' && item.userId == this.userId) { + const userRole = item.type || 'AUDIENCE'; + // this.userRole = item.type || 'AUDIENCE'; + this.$store.dispatch('training/setRoleDeviceCode', item.deviceCode); + this.$store.dispatch('training/setUserRole', userRole); + this.$store.dispatch('training/setRoles', userRole); + // this.deviceCode = item.deviceCode; + // this.setSimulationPrdType(this.centralizedStationMap[item.deviceCode]); + } + }); } // handlerMemberOnOff(data) { // this.$store.dispatch('training/updateMemberAndUser', { simulationUserList: data, userId: this.userId }); // } + } }; diff --git a/src/views/newMap/display/terminals/terminalMenu.vue b/src/views/newMap/display/terminals/terminalMenu.vue index eaaa87cd7..3c53f3fb6 100644 --- a/src/views/newMap/display/terminals/terminalMenu.vue +++ b/src/views/newMap/display/terminals/terminalMenu.vue @@ -163,6 +163,7 @@ export default { } else { currentType = 'subway'; } + this.terminalList = []; [...this.commonTerminal, ...this.terminalMap[currentType]].forEach(item => { if (item.roleList.includes(this.roles)) { this.terminalList.push(item); From f4a53f64046f35c79ebde0e1433d5f12515aa6ab Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 25 Oct 2022 11:01:28 +0800 Subject: [PATCH 3/5] =?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 --- .../competitionManage/bankList/index.vue | 10 +++++----- .../competitionManage/bankList/preImport.vue | 2 +- .../bankList/question-form.vue | 4 ++-- static/theoryTemplate/理论试题导入模板.xlsx | Bin 12316 -> 12345 bytes 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/competitionManage/bankList/index.vue b/src/views/competitionManage/bankList/index.vue index ea695eb14..4234e49c0 100644 --- a/src/views/competitionManage/bankList/index.vue +++ b/src/views/competitionManage/bankList/index.vue @@ -49,7 +49,7 @@ export default { }, labels: { type: 'select', - label: '标 签', + label: '分 类', config: { multiple: true, data: [] @@ -68,7 +68,7 @@ export default { type: 'html' }, { - title: '标 签', + title: '分 类', prop: 'tags', type: 'tagMore', width: '200', @@ -274,7 +274,7 @@ export default { const objHeader = { questionTypeIndex: '题型(必填)', topicIndex: '题干(必填)', - tagsIndex: '标签', + tagsIndex: '分类', option1Index: '选项A(必填)', option2Index: '选项B(必填)', option3Index: '选项C', @@ -448,8 +448,8 @@ export default { exportTemplate() { const wb = XLSX.utils.book_new(); const data1 = [{A: '理论试题导入模板', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}]; - const data2 = [{A: '说明:1、本表表头(第一行到第三行)内容不能修改删除;\n 2、支持批量导入的题型:单选题,多选题,判断题,题型不能自定义,只能按照表格提供的进行录入;\n 3、【判断题】在选项A中可填写√ 或正确,选项B中填写× 或错误,答案填写A或B\n 4、【标签】多个标签项使用空格隔开', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}]; - const data3 = [{A: '序号', B: '题干(必填)', C:'题型(必填)', D:'选项A(必填)', E:'选项B(必填)', F: '选项C', G: '选项D', H: '选项E', I: '选项F', J: '正确答案(必填)', K: '标签'}]; + const data2 = [{A: '说明:1、本表表头(第一行到第三行)内容不能修改删除;\n 2、支持批量导入的题型:单选题,多选题,判断题,题型不能自定义,只能按照表格提供的进行录入;\n 3、【判断题】在选项A中可填写√ 或正确,选项B中填写× 或错误,答案填写A或B\n 4、【分类】多个分类项使用空格隔开', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}]; + const data3 = [{A: '序号', B: '题干(必填)', C:'题型(必填)', D:'选项A(必填)', E:'选项B(必填)', F: '选项C', G: '选项D', H: '选项E', I: '选项F', J: '正确答案(必填)', K: '分类'}]; const data = [...data1, ...data2, ...data3]; const mapType = { select: '单选题', diff --git a/src/views/competitionManage/bankList/preImport.vue b/src/views/competitionManage/bankList/preImport.vue index 9fa3e78f0..1a1370b65 100644 --- a/src/views/competitionManage/bankList/preImport.vue +++ b/src/views/competitionManage/bankList/preImport.vue @@ -18,7 +18,7 @@
- + diff --git a/src/views/competitionManage/bankList/question-form.vue b/src/views/competitionManage/bankList/question-form.vue index 31b9e2408..50097e4e3 100644 --- a/src/views/competitionManage/bankList/question-form.vue +++ b/src/views/competitionManage/bankList/question-form.vue @@ -11,8 +11,8 @@ - - + + diff --git a/static/theoryTemplate/理论试题导入模板.xlsx b/static/theoryTemplate/理论试题导入模板.xlsx index 242cf9c627342e6ea37ec6c37cd2e6c5b3ca0f3b..0c7c4c827ecf6d486222e3f7c510bf6b2df295cd 100644 GIT binary patch delta 7283 zcmai3WmHu0x23z0?(US9F6op;MM@En?zkc;4MQ`ufJn+HFf;;EN~c33-5?<_@CMQM z-ui!dZ$8Z2b@$o(>~rqEA7=f)R#2;&cw}Iy@u!wBG7^$B3K9}A5)zWFi;bSUi>rr# zjf=Y-zpt}XT#~+SC*!^F1??+B{C&P*Nzr$9Z?j~eU0qahE@*pV)&*$8uWp{0H%S!{ z%6^eNYg(VT;5#kplWoVG`$0YOCLgcDDYXtpEmN8PTeM&Cp7Gm~&w53uXrC6>pQm~P zT6OgFf!pm5@tHJPX)-)Te{^q9epT3OkJ4j})Lt$*QSJKm%VH-ikkq1`jVXOv{+@<% zNPyKIJ2Q2XhK}0VUN&+*YXk<~G^HRP=k=-T0sEDiASZ`T(Mm^g=GTT&C$_e(z7|4% zVeiK#o)9M0e%-@?t!p<*(W$zHRJ5*3Be)22my!9ZYG|XRE4sGf(!xz@vXU^nOcWNk zX3MlmZPAf*Q;UTFv4FbSTFTE~*4i3k+4mKn@C16sodlv}ef%vKwc5-vSWU^N8}$&0 z!TqLL{00rOgaScE|J9oh3j}4Nu>&qPJ;dQ>$VUuV{I$_4#-e%Ater~gMVL;MeiD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V`=;bH1`p4OfDoRG{C zRmVzE*!=jWnGkD5qjUT_dao~ZzNn2TM|JUi-|dL=B}K88G(Wm^--;nPbvVXR%gteuXiJ#af|Aq^G^yGWQ2X;WxdvIj5oZx+3B#e>E_iN;w zfrLeQrT=_z`X~|=txQlH4WN#*`MT&l52Jc|syyovE0VaA<^{GRmiMd(P6_GvdAnFT zlJCte`7fHOcugrbNS#c*RC?Kg>?0~t9B(6v&KRXvc%L~F9K*_M_?V^p>g3|;~VLW@SnQ4h0~xr|72hcQSUE+1m!?$64X zw?sz0NNJTGW*3j@L- Date: Tue, 25 Oct 2022 15:18:22 +0800 Subject: [PATCH 4/5] =?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 --- src/views/newMap/display/memberManage/membersManage.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/display/memberManage/membersManage.vue b/src/views/newMap/display/memberManage/membersManage.vue index eb626bc9a..ba8ac8a41 100644 --- a/src/views/newMap/display/memberManage/membersManage.vue +++ b/src/views/newMap/display/memberManage/membersManage.vue @@ -174,7 +174,6 @@ export default { this.simulationUserList = val; }, '$store.state.training.memberList': function (val) { - debugger; if (val && val.length) { this.memberData = this.$store.state.training.memberData; const dispatcherList = []; @@ -361,6 +360,11 @@ export default { this.checkRoleChange(list); } } + // '$store.state.socket.simulationRoleList':function(val) { + // if (val && val.length) { + // this.handlerMemberOnOff(val); + // } + // } }, mounted() { }, @@ -430,6 +434,7 @@ export default { this.$store.dispatch('training/setRoles', userRole); // this.deviceCode = item.deviceCode; // this.setSimulationPrdType(this.centralizedStationMap[item.deviceCode]); + this.$store.dispatch('training/updateMemberAndUser', { simulationUserList: [item], userId: this.userId }); } }); } From 7dee28ea8e34b9aea5a76566f503cf34c6cd2571 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Oct 2022 17:23:44 +0800 Subject: [PATCH 5/5] =?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 --- .../StationStand/safeStand/ESolidStand.js | 19 ++++++++++++------- src/jmapNew/shape/graph/Train/EMouse.js | 8 +++++--- src/jmapNew/shape/graph/Train/index.js | 10 ++++++---- src/store/modules/map.js | 7 +++++++ src/views/newMap/display/terminals/index.vue | 1 + src/views/newMap/jlmapNew/index.vue | 7 ++++--- 6 files changed, 35 insertions(+), 17 deletions(-) diff --git a/src/jmapNew/shape/graph/StationStand/safeStand/ESolidStand.js b/src/jmapNew/shape/graph/StationStand/safeStand/ESolidStand.js index 5d5c00eab..a3a46fe53 100644 --- a/src/jmapNew/shape/graph/StationStand/safeStand/ESolidStand.js +++ b/src/jmapNew/shape/graph/StationStand/safeStand/ESolidStand.js @@ -1,3 +1,4 @@ +import store from '@/store/index'; import Group from 'zrender/src/container/Group'; import Rect from 'zrender/src/graphic/shape/Rect'; import Text from 'zrender/src/graphic/Text'; @@ -52,17 +53,19 @@ class ESolidStand extends Group { this.holdTrain.hide(); } - const path = window.location.href; - const search = window.location.search; - if (path.includes('/display/demon') && search.includes('project=bjd')) { + // const path = window.location.href; + // const search = window.location.search; + // if (path.includes('/display/demon') && search.includes('project=bjd')) { + if (store.state.map.picture == 'largePassengerView') { // 文字描述 + const modelNum = model.num ? model.num : 0; this.arrowText = new Text({ zlevel: this.model.zlevel, z: this.model.z + 10, style: { x: computedPosition.x + 35, y: computedPosition.y - 20, - text: `${'站台人数: ' + model.num ? model.num : 0}`, + text: '站台人数: ' + modelNum, textFill: '#000', textAlign: 'left', textFont: 12 + 'px consolas', @@ -70,6 +73,7 @@ class ESolidStand extends Group { textBackgroundColor: style.tipBackgroundColor } }); + console.log('站台人数: ', modelNum); this.add(this.arrowText); this.arrowText.hide(); this.on('mouseover', () => { @@ -124,9 +128,10 @@ class ESolidStand extends Group { setState(model) { const style = this.model.style; - const path = window.location.href; - const search = window.location.search; - if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + // const path = window.location.href; + // const search = window.location.search; + // if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + if (store.state.map.picture != 'largePassengerView') { // 列车跳停 model.assignSkip && this.setColor(style.StationStand.solidStand.designatedJumpStopColor); // 全部跳停 diff --git a/src/jmapNew/shape/graph/Train/EMouse.js b/src/jmapNew/shape/graph/Train/EMouse.js index 8439eef81..a7c52d6a4 100644 --- a/src/jmapNew/shape/graph/Train/EMouse.js +++ b/src/jmapNew/shape/graph/Train/EMouse.js @@ -106,7 +106,8 @@ class EMouse extends Group { const path = window.location.href; const search = window.location.search; const stationNames = new Map(store.state.map.map.stationList.map(s=>[s.code, s.name])); - if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + // if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + if (store.state.map.picture != 'largePassengerView') { if (LangStorage.getLang() == 'en') { text = ` The planned train: ${trainType} \n Table No.: ${this.device.model.serviceNumber} \n Train Trip No.: ${this.device.model.tripNumber}\n Destination: ${this.device.model.destinationCode ? this.device.model.destinationCode : ''}\n Train No.: ${this.device.model.groupNumber}\n Early or late: ${destinationText}\n Direction: ${direction ? 'up' : 'down'}\n Crew No.: \n Start Station: \n Terminal Station: \n Occupied Track: ${this.device.model.sectionModel ? (this.device.model.sectionModel.parentName ? this.device.model.sectionModel.parentName : this.device.model.sectionModel.name) : ''}\n Current Station: \n Train-ground communication: normal \n Operation Speed level: 4 \n Detained: ${this.device.model.hold ? 'Detained' : 'Normal'}\n \n 跳停状态: ${this.device.model.jump ? 'Skip to continue moving' : 'Normal'}Stationary: ${!this.device.model.stop ? 'No' : 'Yes'}\n Blocked: No \n Speed: ${this.device.model.speed || 0} km/h \n Authorized Distance: ${this.device.model.maLen || 0} m`; } else { @@ -117,7 +118,7 @@ class EMouse extends Group { } } } else { - text = `${'车内人数: ' + this.device.model.num}`; + text = `${'车内人数: ' + this.device.model.num || 0}`; } const trainTip = this.device.style.Train.common.trainTip; @@ -138,7 +139,8 @@ class EMouse extends Group { } }); - if (path.includes('/display/demon') && search.includes('project=bjd')) { + // if (path.includes('/display/demon') && search.includes('project=bjd')) { + if (store.state.map.picture == 'largePassengerView') { this.arrowText.setStyle('textFont', 12 + 'px consolas'); this.arrowText.setStyle('y', this.device.model.point.y + 15); this.arrowText.setStyle('x', this.device.model.point.x + 55); diff --git a/src/jmapNew/shape/graph/Train/index.js b/src/jmapNew/shape/graph/Train/index.js index b0a9da366..8559cb3c4 100644 --- a/src/jmapNew/shape/graph/Train/index.js +++ b/src/jmapNew/shape/graph/Train/index.js @@ -389,9 +389,10 @@ export default class Train extends Group { // this.setDriveMode(model.driveMode); // } this.setRunStatus(model.stop, flag); - const path = window.location.href; - const search = window.location.search; - if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + // const path = window.location.href; + // const search = window.location.search; + // if (!(path.includes('/display/demon') && search.includes('project=bjd'))) { + if (store.state.map.picture != 'largePassengerView') { if (this.style.Train.common.trainHeadColorChangeMode) { this.setDriveMode(model.driveMode + model.runLevel); } else { @@ -414,7 +415,8 @@ export default class Train extends Group { if (style.Section.trainPosition.display) { this.updateSection(object); } - if (path.includes('/display/demon') && search.includes('project=bjd')) { + // if (path.includes('/display/demon') && search.includes('project=bjd')) { + if (store.state.map.picture == 'largePassengerView') { this.handlePassagerColor(model.num); } if (style.Train.trainBody.trainBodyFaultFlashColor) { diff --git a/src/store/modules/map.js b/src/store/modules/map.js index f7f820fdc..eb6ffc3a9 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -257,6 +257,7 @@ const map = { clearButtonCount: 0, // 清除操作按钮计数器 stationControlMap: {}, // 站控显示的map { 当前车站:显示车站列表 } pictureDeviceMap: {}, // 画面设备修正map + picture:'', // 当前的客户端 domConfig: null, // 仿真配置 initClient: '' // 仿真初始客户端 }, @@ -1151,6 +1152,9 @@ const map = { }, setPictureDeviceMap: (state, pictureDeviceMap) => { state.pictureDeviceMap = pictureDeviceMap; + }, + setPicture: (state, picture) => { + state.picture = picture; } }, @@ -1430,6 +1434,9 @@ const map = { }, setPictureDeviceMap: ({ commit }, pictureDeviceMap) => { commit('setPictureDeviceMap', pictureDeviceMap); + }, + setPicture: ({ commit }, picture) => { + commit('setPicture', picture); } } }; diff --git a/src/views/newMap/display/terminals/index.vue b/src/views/newMap/display/terminals/index.vue index 095cf0370..03363d2a8 100644 --- a/src/views/newMap/display/terminals/index.vue +++ b/src/views/newMap/display/terminals/index.vue @@ -165,6 +165,7 @@ export default { }, pictureChange(val) { this.picture = val; + this.$store.dispatch('map/setPicture', val); if (val === 'ibp') { this.$nextTick(() => { this.$refs.ibpPlate.show(this.roleDeviceCode, ''); }); } else if (val === 'drivingPlan') { diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index b0aaa48d4..2b00cde1b 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -393,9 +393,10 @@ export default { }, // 点击选择事件 onSelected(em) { - const path = window.location.href; - const search = window.location.search; - if (path.includes('/display/demon') && search.includes('project=bjd')) { + // const path = window.location.href; + // const search = window.location.search; + // if (path.includes('/display/demon') && search.includes('project=bjd')) { + if (this.$store.state.map.picture == 'largePassengerView') { if (em.deviceType == 'StationStand') { runPassenger(this.$route.query.group, em.deviceCode).then(netdata => { if (netdata.data) {