From d7a5b555a2624d0b1cba3df04ce4a3f891b35600 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 24 Jun 2020 18:40:48 +0800 Subject: [PATCH 01/42] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=99=BB=E5=BD=95?= =?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/store/modules/user.js | 11 ++++++++-- src/utils/baseUrl.js | 4 ++-- src/views/login/index.vue | 13 ++++++++---- src/views/newMap/jointTrainingNew/index.vue | 23 +++++++++++---------- src/views/system/deviceManage/add.vue | 5 ++++- src/views/system/deviceManage/index.vue | 11 +++++++--- 6 files changed, 44 insertions(+), 23 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index d2f399c5d..30a1596f5 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -17,7 +17,8 @@ const user = { admin: false, wxId: '', wxUnionId: '', - account: '' + account: '', + projectDevice: '' }, mutations: { @@ -30,6 +31,9 @@ const user = { SET_NICKNAME: (state, nickname) => { state.nickname = nickname; }, + SET_PROJECTDEVICE: (state, projectDevice) => { + state.projectDevice = projectDevice; + }, SET_ROLES: (state, roles) => { state.roles = roles; }, @@ -111,12 +115,15 @@ const user = { GetInfo({ commit }, token) { return new Promise((resolve, reject) => { getInfo(token).then(response => { - const user = response.data; + const user = response.data.userVO; if (user.roles && user.roles.length > 0) { // 验证返回的roles是否是一个非空数组 commit('SET_ROLES', user.roles); } else { reject('getInfo: roles must be a non-null array !'); } + if (response.data.deviceVO) { + commit('SET_PROJECTDEVICE', response.data.deviceVO.code); + } commit('SET_NAME', user.name); commit('SET_NICKNAME', user.nickname); commit('SET_ID', user.id); diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 778caeb7b..c59924e25 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,9 +2,9 @@ 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.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f85905a94..92740dcd9 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -110,16 +110,17 @@ import { setSessionStorage, removeSessionStorage } from '@/utils/auth'; import Cookies from 'js-cookie'; import md5 from 'js-md5'; import QrcodeVue from 'qrcode.vue'; -import { getLoginWmurl, checkLoginStatus } from '@/api/login'; +import { getLoginWmurl, checkLoginStatus, getInfo } from '@/api/login'; import { LoginParams } from '@/utils/login'; import bgImg from '@/assets/bg1.jpg'; import bgIbpImg from '@/assets/bg_ibp.png'; import { UrlConfig } from '@/scripts/ConstDic'; import { loginInfo, ProjectIcon, GenerateRouteProjectList, VersionBaseNoShow, MainBodyNoShow} from '@/scripts/ProjectConfig'; -import { removeToken } from '@/utils/auth'; +import { removeToken, getToken } from '@/utils/auth'; import LangStorage from '@/utils/lang'; import FloatPart from './floatPart'; import { getIsSignUp } from '@/api/competition'; +import { getSimulationInfoNew } from '@/api/simulation'; export default { name: 'Login', @@ -373,8 +374,12 @@ export default { this.$router.push({ path: this.path, query:{ raceId:this.$route.query.raceId } }); } } else if (this.$route.query.projectDevice) { - const query = { group: '', drawWay: true }; - this.$router.push({ path: `/trainroom`, query: query }); + getInfo(getToken()).then(res => { + getSimulationInfoNew(res.data.group).then(resp => { + const query = { group: res.data.group, drawWay: true, mapId: resp.data.map.id, lineCode:resp.data.map.lineCode }; + this.$router.push({ path: `/jointTrainingNew`, query: query }); + }); + }); } else if (!this.$route.path.includes('jsxt/login') && !this.$route.path.includes('refereeJsxt/login')) { this.$router.push({ path: this.path }); } else { diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 5cc03900f..0a891aaf2 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -377,17 +377,18 @@ export default { } }, async getUserRole() { - const res = await getUserRolesNew(this.group); - const data = res.data || {}; - this.userRole = data.userRole; - this.deviceCode = data.deviceCode; - this.ibpPart = data.ibpPart; - if (this.userRole === 'IBP') { - this.showIbp(this.deviceCode); - } else { - this.hideIbp(); - } - return res; + // const res = await getUserRolesNew(this.group); + // const data = res.data || {}; + // this.userRole = data.userRole; + // this.deviceCode = data.deviceCode; + // this.ibpPart = data.ibpPart; + // if (this.userRole === 'IBP') { + // this.showIbp(this.deviceCode); + // } else { + // this.hideIbp(); + // } + // return res; + return ''; }, // 仿真系统 async initLoadDemonData() { diff --git a/src/views/system/deviceManage/add.vue b/src/views/system/deviceManage/add.vue index 0a4711e85..11c7138f9 100644 --- a/src/views/system/deviceManage/add.vue +++ b/src/views/system/deviceManage/add.vue @@ -34,7 +34,10 @@ export default { {label: '信号机', value:'SIGNAL'}, {label: '屏蔽门', value: 'PSD'}, {label: 'IBP盘', value: 'IBP'}, - {label: '车站', value: 'LW'} + {label: '车站', value: 'LW'}, + {label: '教员机', value: 'IM'}, + {label: '行调工作站', value: 'CW'}, + {label: '综合监控', value: 'ISCS'} ], projectList: [{label:'西铁院', value: 'XTY'}, {label: '贵州装备', value:'GZB'}], gatewayList: [] diff --git a/src/views/system/deviceManage/index.vue b/src/views/system/deviceManage/index.vue index e52c609b0..4bd0cff8d 100644 --- a/src/views/system/deviceManage/index.vue +++ b/src/views/system/deviceManage/index.vue @@ -34,7 +34,10 @@ export default { {label: '信号机', value:'SIGNAL'}, {label: '屏蔽门', value: 'PSD'}, {label: 'IBP盘', value: 'IBP'}, - {label: '车站', value: 'LW'} + {label: '现地工作站', value: 'LW'}, + {label: '教员机', value: 'IM'}, + {label: '行调工作站', value: 'CW'}, + {label: '综合监控', value: 'ISCS'} ], projectList: [{label:'西铁院', value: 'XTY'}, {label: '贵州装备', value:'GZB'}], projectMap: { @@ -113,7 +116,7 @@ export default { { name: '登录路径', handleClick: this.getPath, - showControl: (row) => { return row.type === 'LW' || row.type === 'IBP'; } + showControl: (row) => { return row.type !== 'SWITCH' && row.type !== 'SIGNAL' && row.type !== 'PSD'; } } ] } @@ -184,8 +187,10 @@ export default { editConfig(index, row) { if (row.type === 'LW' || row.type === 'IBP') { this.$refs.editConfig.doShow(row); - } else { + } else if (row.type === 'SWITCH' || row.type === 'SIGNAL' || row.type === 'PSD') { this.$refs.editConfigGateway.doShow(row); + } else { + this.$messageBox('暂无配置内容'); } }, reloadTable() { From 80524d254dc3b2e290e548b59d1d9a89830d2d63 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Sun, 28 Jun 2020 10:33:35 +0800 Subject: [PATCH 02/42] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE?= =?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/scripts/ProjectConfig.js | 8 ++++++-- src/views/login/index.vue | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index a5a3de8fc..6751b66e3 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -54,6 +54,7 @@ export const loginInfo = { // 页面title & 退出登录跳转路径 }, xadt: { title: '城市轨道交通实训平台', + logoWidth: '60px', loginTitle: '调度一部', homeTitle: '调度一部', browserTitle: '西安地铁调度一部城市轨道交通实训平台', @@ -62,6 +63,7 @@ export const loginInfo = { // 页面title & 退出登录跳转路径 }, designxadt: { title: '城市轨道交通设计平台', + logoWidth: '60px', loginTitle: '调度一部', homeTitle: '调度一部', browserTitle: '西安地铁调度一部城市轨道交通设计平台', @@ -81,7 +83,8 @@ export const loginInfo = { // 页面title & 退出登录跳转路径 jyd: { title: '城市轨道交通实训平台', loginPath: '/jyd/login', - loginTitle: 'jyd', + logoWidth: '300px', + loginTitle: '空串', bottomColumn: '', bottomIcon: Bottom_Jyd, linkIcon: Link_Jyd, @@ -89,7 +92,8 @@ export const loginInfo = { // 页面title & 退出登录跳转路径 }, designjyd: { title: '城市轨道交通设计平台', - loginTitle: 'jyd', + loginTitle: '空串', + logoWidth: '300px', loginPath: '/designjyd/login', bottomColumn: '', bottomIcon: Bottom_Jyd, diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 92740dcd9..55c6c6072 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -9,8 +9,8 @@ > 主工作站未登录,点击重新检测
- - {{ loginTitle==='jyd'?'':loginTitle }} + + {{ loginTitle==='空串'?'':loginTitle }}
@@ -183,6 +183,9 @@ export default { title() { return loginInfo[this.$route.path.split('/')[1]].title; }, + logoWidth() { + return loginInfo[this.$route.path.split('/')[1]].logoWidth; + }, isProject() { const projectName = this.$route.path.split('/')[1]; return GenerateRouteProjectList.includes(projectName); @@ -201,9 +204,6 @@ export default { created() { document.querySelector("link[rel*='icon']").href = loginInfo[this.project].linkIcon || ProjectIcon[this.project]; this.computedAttribute(); - if (this.$route.query.projectDevice) { - - } if (Cookies.get(this.cookiesName) && Cookies.get(this.cookiesToken)) { const model = {'username': Cookies.get(this.cookiesName), 'password': Cookies.get(this.cookiesToken), 'project':loginInfo[this.project].loginParam}; model.type = this.modelType; From 4f248c3b19cde332e1729d4139343b7001bd7ef5 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Sun, 28 Jun 2020 14:27:28 +0800 Subject: [PATCH 03/42] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4&=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Title.vue | 19 +- src/scripts/ProjectConfig.js | 56 ++++-- src/views/login/index.vue | 2 +- src/views/newMap/jointTrainingNew/index.vue | 10 +- .../newMap/jointTrainingNew/membersManage.vue | 178 ++++++++++++++++++ .../newMap/jointTrainingNew/menuDemon.vue | 14 +- 6 files changed, 246 insertions(+), 33 deletions(-) create mode 100644 src/views/newMap/jointTrainingNew/membersManage.vue diff --git a/src/layout/components/Title.vue b/src/layout/components/Title.vue index 8dba4fd3b..6a7770338 100644 --- a/src/layout/components/Title.vue +++ b/src/layout/components/Title.vue @@ -1,9 +1,8 @@ + + diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index b8f0cf4ea..498bc7942 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -3,14 +3,14 @@
- {{ $t('joinTraining.connectRealDevices') }} + 成员管理 + {{ $t('joinTraining.connectRealDevices') }} {{ $t('joinTraining.driverPerspective') }} cctv - 返回 - {{ $t('global.back') }} + {{ $t('global.back') }}
@@ -106,11 +106,14 @@ export default { isAdmin() { return this.userRole == 'ADMIN'; }, - isProject() { + hasRealDevice() { return getSessionStorage('project').endsWith('gzb') && this.userRole === 'CI'; }, project() { return getSessionStorage('project'); + }, + projectDevice() { + return this.$route.query.projectDevice; } }, watch: { @@ -359,6 +362,9 @@ export default { }).catch(()=> { this.$message.error('提交试卷失败!'); }); + }, + membersManage() { + this.$emit('showMembers'); } } }; From 103ae24b64072789f4ec65f34b659c49a01ce777 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 29 Jun 2020 09:12:30 +0800 Subject: [PATCH 04/42] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E6=88=90=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMap/jointTrainingNew/membersManage.vue | 100 ++++++++++++++---- 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/src/views/newMap/jointTrainingNew/membersManage.vue b/src/views/newMap/jointTrainingNew/membersManage.vue index 8e13e2a85..1e1cf3048 100644 --- a/src/views/newMap/jointTrainingNew/membersManage.vue +++ b/src/views/newMap/jointTrainingNew/membersManage.vue @@ -19,6 +19,24 @@
+
+ + + {{ node.label }} + + + + + + + +
-
@@ -47,12 +52,10 @@ diff --git a/src/views/newMap/jointTrainingNew/membersManage.vue b/src/views/newMap/jointTrainingNew/membersManage.vue index 1e1cf3048..d99b7e139 100644 --- a/src/views/newMap/jointTrainingNew/membersManage.vue +++ b/src/views/newMap/jointTrainingNew/membersManage.vue @@ -7,24 +7,31 @@ :before-close="doClose" :z-index="2000" :modal="false" + fullscreen :close-on-click-modal="false" + center >
-
-
- {{ $t('trainRoom.comprehensiveDrillRoom') }} -
-
- {{ $t('trainRoom.comprehensiveTrainingManager') + room.creator.nickName }} -
-
- +
+ + + + 添加仿真成员 +
+ {{ node.label }} - - + + diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 498bc7942..0efd84b89 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -3,7 +3,7 @@
- 成员管理 + 成员管理 {{ $t('joinTraining.connectRealDevices') }} {{ $t('joinTraining.driverPerspective') }} cctv @@ -11,6 +11,7 @@ {{ $t('joinTraining.drivingByPlan') }} {{ $t('joinTraining.initialize') }} + 返回 - {{ $t('global.back') }} + {{ $t('global.back') }}
@@ -111,9 +112,6 @@ export default { }, project() { return getSessionStorage('project'); - }, - projectDevice() { - return this.$route.query.projectDevice; } }, watch: { @@ -363,102 +361,102 @@ export default { this.$message.error('提交试卷失败!'); }); }, - membersManage() { - this.$emit('showMembers'); + memberManage() { + this.$emit('handlerMemberManage'); } } }; From 8f4cecec0cdede307e7ec8fc29f227cdfc887220 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 30 Jun 2020 14:27:32 +0800 Subject: [PATCH 06/42] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83?= =?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/api/jointSimulation.js | 39 ++++ src/api/simulation.js | 15 +- src/i18n/langs/zh/global.js | 2 +- src/layout/components/Qcode.vue | 17 +- src/permission.js | 3 + src/views/demonstration/detail/index.vue | 84 ++------- .../newMap/jointTrainingNew/addMember.vue | 25 ++- src/views/newMap/jointTrainingNew/index.vue | 86 +++++---- .../newMap/jointTrainingNew/membersManage.vue | 166 +++++++++++++----- .../newMap/jointTrainingNew/menuDemon.vue | 63 +++++-- .../newMap/jointTrainingNew/menuSchema.vue | 29 +-- src/views/system/deviceManage/editConfig.vue | 43 +++-- src/views/trainRoom/e-members.vue | 8 +- 13 files changed, 348 insertions(+), 232 deletions(-) create mode 100644 src/api/jointSimulation.js diff --git a/src/api/jointSimulation.js b/src/api/jointSimulation.js new file mode 100644 index 000000000..de9d96211 --- /dev/null +++ b/src/api/jointSimulation.js @@ -0,0 +1,39 @@ +import request from '@/utils/request'; + +// 分配(取消)用户角色扮演 +export function assignUsersPlayRoles(data, group) { + return request({ + url: `/api/jointSimulation/${group}/assignRoles`, + method: 'put', + data: data + }); +} +// 添加新仿真成员 +export function addSimulationMember(data, group) { + return request({ + url: `/api/jointSimulation/${group}/member`, + method: 'post', + data: data + }); +} +// 获取权限生成仿真用户 +export function jointSimulationByPermission(group) { + return request({ + url: `/api/jointSimulation/${group}/permission`, + method: 'post' + }); +} +// 生成综合仿真分享二维码 +export function getSimulationQrcode(group) { + return request({ + url: `/api/jointSimulation/${group}/qrCode`, + method: 'get' + }); +} +// 获取所有仿真用户 +export function getAllSimulationUser(group) { + return request({ + url: `/api/jointSimulation/${group}/simulationUsers`, + method: 'get' + }); +} diff --git a/src/api/simulation.js b/src/api/simulation.js index be1d41e60..6eea90ff7 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -718,4 +718,17 @@ export function getMemberInfo(group, memberId) { method: 'get' }); } - +/** 获取新版综合仿真仿真成员列表 */ +export function getSimulationMemberList(group) { + return request({ + url: `/simulation/${group}/members`, + method: 'get' + }); +} +/** 获取仿真用户信息 */ +export function getSimulationUserInfo(group) { + return request({ + url: `/simulation/${group}/simulationUser`, + method: 'get' + }); +} diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js index cef890583..50aec8584 100644 --- a/src/i18n/langs/zh/global.js +++ b/src/i18n/langs/zh/global.js @@ -206,5 +206,5 @@ export default { permissionAllNum:'权限总数', set: '设 置', joinNewRoom: '加入新房间', - roomId: '房间号:' + roomId: '仿真号:' }; diff --git a/src/layout/components/Qcode.vue b/src/layout/components/Qcode.vue index 392ae707d..6f468e95a 100644 --- a/src/layout/components/Qcode.vue +++ b/src/layout/components/Qcode.vue @@ -1,7 +1,6 @@ diff --git a/src/views/demonstration/deomonTopic/index.vue b/src/views/demonstration/deomonTopic/index.vue index a73851405..8ce9e03e5 100644 --- a/src/views/demonstration/deomonTopic/index.vue +++ b/src/views/demonstration/deomonTopic/index.vue @@ -18,12 +18,7 @@ + diff --git a/src/views/newMap/jointTrainingNew/memberManage/e-members.vue b/src/views/newMap/jointTrainingNew/memberManage/e-members.vue new file mode 100644 index 000000000..cd338fe4b --- /dev/null +++ b/src/views/newMap/jointTrainingNew/memberManage/e-members.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/src/views/newMap/jointTrainingNew/membersManage.vue b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue similarity index 58% rename from src/views/newMap/jointTrainingNew/membersManage.vue rename to src/views/newMap/jointTrainingNew/memberManage/membersManage.vue index c454aab58..0aa3aec45 100644 --- a/src/views/newMap/jointTrainingNew/membersManage.vue +++ b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue @@ -31,12 +31,12 @@ @node-click="handleNodeClick" > - {{ node.label }} - - + {{ data.label }} + + @@ -48,7 +48,7 @@ + diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatSetting.vue b/src/views/newMap/jointTrainingNew/newChatView/chatSetting.vue new file mode 100644 index 000000000..26e59ac5b --- /dev/null +++ b/src/views/newMap/jointTrainingNew/newChatView/chatSetting.vue @@ -0,0 +1,126 @@ + + + + diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue b/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue new file mode 100644 index 000000000..5ccc19fc7 --- /dev/null +++ b/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue @@ -0,0 +1,110 @@ + + + From 75244ca9590003129ffab12c67c5b817ccf2fad6 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 6 Jul 2020 13:31:49 +0800 Subject: [PATCH 13/42] =?UTF-8?q?=E4=BB=BB=E4=BD=95=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=80=85=20=20=E5=88=9B=E5=BB=BA=E8=AF=95=E5=8D=B7=20=20?= =?UTF-8?q?=E6=9C=89=E8=AF=95=E7=94=A8=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/ningbo_01/menus/index.vue | 1 - src/views/publish/examRule/draft/examFrom.vue | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jmapNew/theme/ningbo_01/menus/index.vue b/src/jmapNew/theme/ningbo_01/menus/index.vue index d025dcf85..db1f223ef 100644 --- a/src/jmapNew/theme/ningbo_01/menus/index.vue +++ b/src/jmapNew/theme/ningbo_01/menus/index.vue @@ -7,7 +7,6 @@ - diff --git a/src/views/publish/examRule/draft/examFrom.vue b/src/views/publish/examRule/draft/examFrom.vue index 5528e74b7..8f3224e8c 100644 --- a/src/views/publish/examRule/draft/examFrom.vue +++ b/src/views/publish/examRule/draft/examFrom.vue @@ -48,7 +48,8 @@ - + + {{ $t('publish.trialNo') }} {{ $t('publish.trialYes') }} @@ -130,7 +131,7 @@ export default { passMark: '' }, trial: '1', - trialShow: false, + // trialShow: false, form: this.$store.state.exam.courseDetail, options: [], selectDisable: false, @@ -181,9 +182,9 @@ export default { this.refresh(); }, mounted() { - const user = this.$store.state.user; - const roles = user.roles; - this.trialShow = roles.indexOf('04') != -1; + // const user = this.$store.state.user; + // const roles = user.roles; + // this.trialShow = roles.indexOf('04') != -1; this.init(); }, methods: { From 5cf1fdab5d2786ee5a1ac427dd0aaee8373c3d3f Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 6 Jul 2020 15:40:59 +0800 Subject: [PATCH 14/42] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/beijing_01/menus/index.vue | 3 - .../theme/beijing_01/menus/menuSection.vue | 13 +--- .../beijing_01/menus/menuStationControl.vue | 69 ------------------- .../chengdu_03/menus/dialog/sectionDetail.vue | 3 - .../theme/chengdu_03/menus/menuSection.vue | 3 - 5 files changed, 2 insertions(+), 89 deletions(-) delete mode 100644 src/jmapNew/theme/beijing_01/menus/menuStationControl.vue diff --git a/src/jmapNew/theme/beijing_01/menus/index.vue b/src/jmapNew/theme/beijing_01/menus/index.vue index 6b234ebdc..01a075fa4 100644 --- a/src/jmapNew/theme/beijing_01/menus/index.vue +++ b/src/jmapNew/theme/beijing_01/menus/index.vue @@ -3,7 +3,6 @@ - @@ -22,7 +21,6 @@ import { mapGetters } from 'vuex'; import MenuCancel from './menuCancel'; import MenuSignal from './menuSignal'; import MenuButton from './menuButton'; -import MenuStationControl from './menuStationControl'; import MenuStationStand from './menuStationStand'; import MenuSwitch from './menuSwitch'; import MenuSection from './menuSection'; @@ -43,7 +41,6 @@ export default { MenuSignal, MenuSwitch, MenuSection, - MenuStationControl, MenuStationStand, MenuStation, MenuTrain, diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index 5d2977505..d72b543b0 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -170,19 +170,10 @@ export default { } } }, - // 添加计划车 + // 添加计划车(开发专用) addPlanTrain() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.createPlanTrain.menu.operation, - param: { - sectionCode: this.selected.code - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.trainAddPlan.doShow(operate); } }); diff --git a/src/jmapNew/theme/beijing_01/menus/menuStationControl.vue b/src/jmapNew/theme/beijing_01/menus/menuStationControl.vue deleted file mode 100644 index 6e394cecd..000000000 --- a/src/jmapNew/theme/beijing_01/menus/menuStationControl.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/sectionDetail.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/sectionDetail.vue index ebbdd8c4c..fd3803d05 100644 --- a/src/jmapNew/theme/chengdu_03/menus/dialog/sectionDetail.vue +++ b/src/jmapNew/theme/chengdu_03/menus/dialog/sectionDetail.vue @@ -59,9 +59,6 @@ export default { }; }, computed: { - ...mapGetters('map', [ - 'signalList' - ]), show() { return this.dialogShow && !this.$store.state.menuOperation.break; }, diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue index 9029a62ec..fc999e07c 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue @@ -2,7 +2,6 @@
- @@ -16,7 +15,6 @@ import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionContr import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan'; import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; import SectionDetail from './dialog/sectionDetail'; -import TrainCreate from './dialog/trainCreate'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; @@ -31,7 +29,6 @@ export default { PopMenu, SectionControl, SectionDetail, - TrainCreate, NoticeInfo, TrainAddPlan, SetFault From 2c5c30216fc0df124dcf29ae05f61aff56f57157 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Mon, 6 Jul 2020 17:02:13 +0800 Subject: [PATCH 15/42] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=B5=81=E7=A8=8B=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=88=86=E5=B1=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 57 +++-- src/jmapNew/painter.js | 6 + src/jmapNew/shape/Signal/ESigLamp.js | 6 +- src/jmapNew/theme/haerbin_01/model.js | 1 + src/jmapNew/theme/ningbo_01/model.js | 1 + src/jmapNew/transformHandleScreen.js | 48 +++- src/jmapNew/utils/parser.js | 7 + src/router/index_Common.js | 6 + src/store/modules/map.js | 6 +- src/views/designPlatform/bigScreen.vue | 34 +-- src/views/designPlatform/bigSplitScreen.vue | 236 ++++++++++++++++++ src/views/designPlatform/demonList.vue | 12 + src/views/newMap/jlmapNew/index.vue | 6 +- src/views/newMap/jointTrainingNew/index.vue | 2 - .../newMap/newMapdraft/mapoperate/index.vue | 4 +- .../newMapdraft/mapoperate/splitScreen.vue | 82 ++++-- 16 files changed, 455 insertions(+), 59 deletions(-) create mode 100644 src/views/designPlatform/bigSplitScreen.vue diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 659c4e500..b33d1af11 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -11,7 +11,7 @@ import { selectLineCode } from './config/deviceStyle'; import { deviceFactory, createBoundingRect, calculateDCenter } from './utils/parser'; import { deepAssign } from '@/utils/index'; import store from '@/store/index_APP_TARGET'; -import { loadPropConvert } from './theme/factory'; +import Vue from 'vue'; const renderer = 'canvas'; const devicePixelRatio = 1; @@ -27,6 +27,9 @@ class Jlmap { // 线路参数 this.lineCode = ''; + // 大屏判断 + this.screenFlag = false; + // 皮肤风格 this.style = {}; @@ -135,8 +138,12 @@ class Jlmap { setOptions(opts) { const options = this.pullBack(opts); - this.$options.update(options); - this.$painter.updateTransform(this.$options); + if (this.screenFlag) { + this.$painter.updateScreen(options); + } else { + this.$options.update(options); + this.$painter.updateTransform(this.$options); + } if (this.$options.disabled == true) { this.$mouseController.disable(); } else { @@ -148,6 +155,18 @@ class Jlmap { if (this.methods.optionsUpdate instanceof Function) { this.methods.optionsUpdate(this.$options); } } + switchScreen(data, num, sum) { + const sumHalf = sum / 2; + const dx = data.width / sumHalf; + const dy = data.height / sumHalf; + const row = num <= sumHalf ? 0 : 1; + const opts = { + dx: dx * (row == 0 ? num - 1 : num - sumHalf - 1), + dy: dy * row + }; + this.$painter.updateScreenNum(opts); + } + setCenter(deviceCode) { const device = this.mapDevice[deviceCode]; if (device && device.instance) { @@ -157,20 +176,23 @@ class Jlmap { } } setRevoverBigScreen() { + this.screenFlag = false; this.$painter.updateTransform({ scaleRate: this.$options.scaleRate, offsetX: this.$options.offsetX, offsetY: this.$options.offsetY }); } setRecover(opts) { + this.screenFlag = false; this.$painter.updateTransform({ scaleRate: opts.scaleRate, offsetX: opts.offsetX, offsetY: opts.offsetY }); } setUpdateScreen(opts) { this.setRecover({ scaleRate: 1, offsetX: 0, offsetY: 0 }); - const arr = []; + this.screenFlag = true; + const screenList = []; const rectList = []; let rect = ''; for (const i in this.mapDevice) { const element = this.mapDevice[i]; - if (element.instance && element._type == 'Section') { + if (element.instance && (element._type == 'Section' || element._type == 'Station' || element._type == 'StationStand')) { if (!rect) { rect = element.instance.getBoundingRect().clone(); } else { @@ -178,18 +200,23 @@ class Jlmap { } } } - const screenSplit = opts.list.length ? opts.list : loadPropConvert(this.lineCode).screenSplit; + if (!opts.offsetList) { + opts.offsetList = []; + } + const screenSplit = opts.list.length ? opts.list : Vue.prototype.$theme.loadPropConvert(this.lineCode).screenSplit; + const screenDifference = Vue.prototype.$theme.loadPropConvert(this.lineCode).screenDifference || 160; const splitList = JSON.parse(JSON.stringify(screenSplit)); const num = screenSplit.length + 1; const offsetY = (opts.height - 100) / num; // 高度差 const maxWidth = rect.width; splitList.push(maxWidth); - const scaleWidth = Math.floor((((opts.width - 200) * num) / rect.width) * 100) / 100; - const scaleHeight = Math.floor(((opts.height - 100) / (rect.height * num)) * 100) / 100; - const scale = Math.min(scaleWidth, scaleHeight); + const scaleX = Math.floor((((opts.width - 200) * num) / rect.width) * 100) / 100; + const scaleY = Math.floor(((opts.height - 100) / (rect.height * num)) * 100) / 100; + const scale = Math.min(scaleX, scaleY); + // console.log('scaleX', scaleX, 'scaleY', scaleY, 'scale', scale, offsetY, rect.height * scale); - // const offsetHeight = (offsetY - (rect.height * scale)) + Math.abs(rect.x * scale); // 高度差 - // console.log(offsetHeight, opts.height, screenSplit, offsetY, rect, '缩放对比>', scaleWidth, scaleHeight); + // const offsetHeight = (offsetY - (rect.height * scale)) / 2; // 高度差 + // console.log(offsetHeight, opts.height, screenSplit, offsetY, rect, '缩放对比>', scaleX, scaleY); for (let i = 0; i < splitList.length; i++) { let offsetX = ''; @@ -199,13 +226,13 @@ class Jlmap { const dx = (opts.width - (splitList[i] - splitList[i - 1]) * scale) / 2; // 居中计算偏移值 offsetX = splitList[i - 1] * scale - dx; } - // const param = { scaleRate: scale, offsetX: offsetX, offsetY: -(offsetY * i) - offsetHeight}; - const param = { scaleRate: scale, offsetX: offsetX, offsetY: -160 - (offsetY * i) }; - arr.push(param); + const offset = opts.offsetList[i] || 0; + const param = { scaleRateX: scale, scaleRateY: scale, offsetX: offsetX, offsetY: -screenDifference - (offsetY * i) - offset }; + screenList.push(param); const rect = {x: 0, y: 0, width: Number(splitList[i]) + 5, height: opts.height}; rectList.push(rect); } - this.$painter.updateTransform1(arr, rectList); + this.$painter.updateTransform1(screenList, rectList); } setLevelVisible(list) { diff --git a/src/jmapNew/painter.js b/src/jmapNew/painter.js index 6e9c41a15..f88631836 100644 --- a/src/jmapNew/painter.js +++ b/src/jmapNew/painter.js @@ -199,6 +199,12 @@ class Painter { this.$transformHandle.updateTransform(opt); } + updateScreen(opt) { + this.$transformHandleScreen.updataOffset(opt); + } + updateScreenNum(opts) { + this.$transformHandleScreen.updataOffsetNum(opts); + } updateTransform1(list, opts) { this.screenFlag = true; this.$transformHandleScreen.updateTransform(list, opts); diff --git a/src/jmapNew/shape/Signal/ESigLamp.js b/src/jmapNew/shape/Signal/ESigLamp.js index 88a4dddc9..910688131 100644 --- a/src/jmapNew/shape/Signal/ESigLamp.js +++ b/src/jmapNew/shape/Signal/ESigLamp.js @@ -1,7 +1,7 @@ import Line from 'zrender/src/graphic/shape/Line'; import Arc from 'zrender/src/graphic/shape/Arc'; import Group from 'zrender/src/container/Group'; -import Path from 'zrender/src/graphic/Path'; +// import Path from 'zrender/src/graphic/Path'; import {ESigFault} from './ESigFault'; class ESigLamp extends Group { @@ -103,11 +103,11 @@ class ESigLamp extends Group { } faultShow() { - this.lampFault.show(); + this.lampFault && this.lampFault.show(); } faultHide() { - this.lampFault.hide(); + this.lampFault && this.lampFault.hide(); } setColor(color) { diff --git a/src/jmapNew/theme/haerbin_01/model.js b/src/jmapNew/theme/haerbin_01/model.js index c7d80a99e..53a250e7f 100644 --- a/src/jmapNew/theme/haerbin_01/model.js +++ b/src/jmapNew/theme/haerbin_01/model.js @@ -3,6 +3,7 @@ import deviceType from '../../constant/deviceType'; class Model { constructor() { this.screenLine = 3; + this.screenDifference = 50; // 公共字段部分默认初始值 this['public'] = {}; this['public'][deviceType.Signal] = { diff --git a/src/jmapNew/theme/ningbo_01/model.js b/src/jmapNew/theme/ningbo_01/model.js index 89c5550cf..c00fd4260 100644 --- a/src/jmapNew/theme/ningbo_01/model.js +++ b/src/jmapNew/theme/ningbo_01/model.js @@ -4,6 +4,7 @@ class Model { constructor() { this.screenLine = 3; this.screenSplit = ['5165', '10303']; + this.screenDifference = 180; // 公共字段部分默认初始值 this['public'] = {}; this['public'][deviceType.Signal] = { diff --git a/src/jmapNew/transformHandleScreen.js b/src/jmapNew/transformHandleScreen.js index 07f17fc9f..0e3a9e549 100644 --- a/src/jmapNew/transformHandleScreen.js +++ b/src/jmapNew/transformHandleScreen.js @@ -1,6 +1,5 @@ -import {createTransform, createBoundingRect} from './utils/parser'; - +import {createTransform1, createBoundingRect} from './utils/parser'; class TransformHandle { constructor(painter) { this.$painter = painter; @@ -9,7 +8,13 @@ class TransformHandle { this.rect = { x: 0, y: 0, width: 0, height: 0 }; this.rectList = []; - this.transform = [createTransform({ scaleRate: 1, offsetX: 0, offsetY: 0 })]; + this.transformInit = []; + this.transform = [createTransform1({ scaleRateX: 1, scaleRateY: 1, offsetX: 0, offsetY: 0 })]; + } + + revisibleView(view) { + view.show(); + view.dirty(); } checkVisible(view, rect) { @@ -31,6 +36,7 @@ class TransformHandle { const rect = this.rectList[i]; if (this.checkVisible(view, rect)) { view.transform = this.transform[i]; + view.transformIndex = i; view.decomposeTransform(); // 修改 transform 后同步位置 if (view.screenShow) { view.screenShow(); @@ -44,6 +50,24 @@ class TransformHandle { } } + // 视图进行缩放/平移 + transformView1(view) { + if (view) { + view.transform = this.transform[view.transformIndex]; + view.decomposeTransform(); + if (view.screenShow) { + view.screenShow(); + } else { + view.show(); + } + view.dirty(); + } + } + // 处理所有视图缩放/平移 + transformAll1() { + this.traverse(this.transformView1, this); + } + // 处理所有视图缩放/平移 transformAll() { this.traverse(this.transformView, this); @@ -59,10 +83,26 @@ class TransformHandle { this.rectList = rectList; this.transform = []; list.forEach(item => { - this.transform.push(createTransform(item)); + this.transform.push(createTransform1(item)); }); + this.transformInit = JSON.parse(JSON.stringify(this.transform)); this.transformAll(); } + updataOffset(opt) { + this.transform.forEach(item => { + item[4] = item[4] + opt.dx; + item[5] = item[5] + opt.dy; + }); + this.transformAll1(); + } + updataOffsetNum(opts) { + this.transform = JSON.parse(JSON.stringify(this.transformInit)); + this.transform.forEach(item => { + item[4] = item[4] - opts.dx; + item[5] = item[5] - opts.dy; + }); + this.transformAll1(); + } // 更新画布尺寸 updateZrSize(opts) { diff --git a/src/jmapNew/utils/parser.js b/src/jmapNew/utils/parser.js index c803229e2..150f053ca 100644 --- a/src/jmapNew/utils/parser.js +++ b/src/jmapNew/utils/parser.js @@ -12,6 +12,13 @@ export function createTransform(opts) { return transform; } +export function createTransform1(opts) { + let transform = matrix.create(); + transform = matrix.scale(matrix.create(), transform, [opts.scaleRateX, opts.scaleRateY]); + transform = matrix.translate(matrix.create(), transform, [-opts.offsetX, -opts.offsetY]); + return transform; +} + export function createBoundingRect(view) { const rect = view.getBoundingRect().clone(); const scale = view.scale[0]; diff --git a/src/router/index_Common.js b/src/router/index_Common.js index 50056025c..42a9fae76 100644 --- a/src/router/index_Common.js +++ b/src/router/index_Common.js @@ -89,6 +89,7 @@ const DesignPlatform = () => import('@/views/designPlatform/index'); const MapPreview = () => import('@/views/designPlatform/mapPreview'); const MapPreviewNew = () => import('@/views/designPlatform/mapPreviewNew'); const BigScreen = () => import('@/views/designPlatform/bigScreen'); +const BigSplitScreen = () => import('@/views/designPlatform/bigSplitScreen'); // const DesignPlatformUser = () => import('@/views/designUser/index'); @@ -451,6 +452,11 @@ export const asyncRouter = [ component: BigScreen, hidden: true }, + { + path: 'bigSplitScreen/:mapId', + component: BigSplitScreen, + hidden: true + }, { // ibp列表 path: 'ibp/home/:mapId', component: IbpHome, diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 2218183c2..86abc5e2a 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -416,11 +416,11 @@ const map = { return []; } }, - bigScreenSplitConfig: (state) => { + bigScreenConfig: (state) => { if (state.map) { - return state.map.bigScreenSplitConfig || []; + return state.map.bigScreenConfig || {}; } else { - return []; + return {}; } }, indicatorLightList: (state) => { diff --git a/src/views/designPlatform/bigScreen.vue b/src/views/designPlatform/bigScreen.vue index 4856cf80c..831eb74dd 100644 --- a/src/views/designPlatform/bigScreen.vue +++ b/src/views/designPlatform/bigScreen.vue @@ -31,10 +31,10 @@ export default { }, data() { return { - size: { - width: document.documentElement.clientWidth - 400, - height: document.documentElement.clientHeight - 80 - }, + // size: { + // width: document.documentElement.clientWidth - 400, + // height: document.documentElement.clientHeight - 80 + // }, maskOpen: false, maskWidth: '100%', disPlay: false @@ -45,10 +45,10 @@ export default { return this.$route.params.mapId; }, height() { - return this.$store.state.app.height - 50 - 30; + return this.$store.state.app.height - 50 - 40; }, ...mapGetters('map', [ - 'bigScreenSplitConfig' + 'bigScreenConfig' ]), ...mapGetters('config', [ 'canvasId' @@ -69,7 +69,7 @@ export default { '$store.state.map.mapViewLoadedCount':function() { this.$store.dispatch('map/setTrainWindowShow', false); this.$jlmap.off('zoom'); - this.$jlmap.off('pan'); + // this.$jlmap.off('pan'); this.handleUpdateScreen(); if (this.$route.query.group) { this.subscribe(); @@ -135,19 +135,24 @@ export default { }, handleUpdateScreen() { this.maskOpen = false; - if (this.bigScreenSplitConfig.length) { + if (this.bigScreenConfig.bigScreenSplitConfig && this.bigScreenConfig.bigScreenSplitConfig.length) { + const offsetList = this.bigScreenConfig.offsetList; + const width = this.bigScreenConfig.width; + const height = this.bigScreenConfig.height; if (this.widthLeft) { const size = { - width: this.$store.state.app.width - (this.widthLeft || 450) - 2, - height: this.height, - list: this.bigScreenSplitConfig.map(ele => ele.position) + width: (this.$store.state.app.width - (this.widthLeft || 450) - 2) * width, + height: this.height * height, + list: this.bigScreenConfig.bigScreenSplitConfig.map(ele => ele.position), + offsetList: offsetList }; this.$jlmap.setUpdateScreen(size); } else { const size = { - width: this.$store.state.app.width - 2, - height: this.$store.state.app.height, - list: this.bigScreenSplitConfig.map(ele => ele.position) + width: (this.$store.state.app.width - 2) * width, + height: this.$store.state.app.height * height, + list: this.bigScreenConfig.bigScreenSplitConfig.map(ele => ele.position), + offsetList: offsetList }; this.$jlmap.setUpdateScreen(size); } @@ -185,6 +190,7 @@ export default { .map-view { float: left; width: auto; + overflow: hidden; } .mask{ opacity: 1; diff --git a/src/views/designPlatform/bigSplitScreen.vue b/src/views/designPlatform/bigSplitScreen.vue new file mode 100644 index 000000000..3a11678c4 --- /dev/null +++ b/src/views/designPlatform/bigSplitScreen.vue @@ -0,0 +1,236 @@ + + + diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue index e48ed9465..d2ded51eb 100644 --- a/src/views/designPlatform/demonList.vue +++ b/src/views/designPlatform/demonList.vue @@ -127,6 +127,10 @@ export default { this.$router.push({ path: `/design/bigScreen/${obj.mapId}` }); break; } + case 'bigSplitScreen': { + this.$router.push({ path: `/design/bigSplitScreen/${obj.mapId}` }); + break; + } } }, async refresh(filterSelect) { @@ -193,6 +197,14 @@ export default { lineCode: elem.lineCode, cityCode: elem.cityCode }); + elem.children.push({ + id: '7', + name: '大屏分屏预览', + type: 'bigSplitScreen', + mapId: elem.id, + lineCode: elem.lineCode, + cityCode: elem.cityCode + }); }); this.treeData = res.data; this.treeList = this.filterText diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index 02108cd3c..5de995dc7 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -1,5 +1,5 @@ @@ -20,6 +21,7 @@ import { OperateMode } from '@/scripts/ConstDic'; import { OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; +import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; export default { name: 'StationMenu', @@ -27,6 +29,7 @@ export default { PopMenu, StationCmdControl, StationHumanControlAll, + SetFault, StationSetRouteControlAll, NoticeInfo }, @@ -85,12 +88,12 @@ export default { menuForce: [ { label: '设置ZC故障', - handler: this.undeveloped, + handler: this.setStoppage, cmdType: CMD.Station.CMD_STATION_ADD_FAULT }, { label: '取消ZC故障', - handler: this.undeveloped, + handler: this.cancelStoppage, cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT } ] @@ -142,42 +145,18 @@ export default { }, // 设置故障 setStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.stoppage.menu.operation - }; - - mouseCancelState(this.selected); - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(); + this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(); }); }, // 取消故障 cancelStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.cancelStoppage.menu.operation - }; - - mouseCancelState(this.selected); - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(); + this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(); }); }, // 全站设置联锁自动触发 diff --git a/src/jmapNew/theme/xian_01/menus/menuStation.vue b/src/jmapNew/theme/xian_01/menus/menuStation.vue index 47f1bcd8b..876168d2d 100644 --- a/src/jmapNew/theme/xian_01/menus/menuStation.vue +++ b/src/jmapNew/theme/xian_01/menus/menuStation.vue @@ -5,6 +5,7 @@ +
@@ -17,7 +18,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo' import { mapGetters } from 'vuex'; import { OperateMode } from '@/scripts/ConstDic'; import { DeviceMenu } from '@/scripts/ConstDic'; -import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; +import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; @@ -28,6 +29,7 @@ export default { PopMenu, StationCmdControl, StationHumanControlAll, + SetFault, StationSetRouteControlAll, NoticeInfo }, @@ -95,13 +97,13 @@ export default { }, menuForce: [ { - label: '设置故障', - handler: this.undeveloped, + label: '设置ZC故障', + handler: this.setStoppage, cmdType: CMD.Station.CMD_STATION_ADD_FAULT }, { - label: '取消故障', - handler: this.undeveloped, + label: '取消ZC故障', + handler: this.cancelStoppage, cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT } ] @@ -157,40 +159,18 @@ export default { }, // 设置故障 setStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.stoppage.menu.operation - }; - - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(); + this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(); }); }, // 取消故障 cancelStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.cancelStoppage.menu.operation - }; - - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(); + this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(); }); }, // 全站设置联锁自动触发 diff --git a/src/jmapNew/theme/xian_02/menus/menuStation.vue b/src/jmapNew/theme/xian_02/menus/menuStation.vue index 9f196748b..cdabc0a41 100644 --- a/src/jmapNew/theme/xian_02/menus/menuStation.vue +++ b/src/jmapNew/theme/xian_02/menus/menuStation.vue @@ -3,6 +3,7 @@ +
@@ -11,9 +12,10 @@ import PopMenu from '@/components/PopMenu/index'; import StationCmdControl from './dialog/stationCmdControl'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; - +import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; // import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; +import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; @@ -22,6 +24,7 @@ export default { components: { PopMenu, StationCmdControl, + SetFault, NoticeInfo }, props: { @@ -142,12 +145,12 @@ export default { }, menuForce: [ { - label: '设置故障', - handler: this.undeveloped + label: '设置ZC故障', + handler: this.setStoppage }, { - label: '取消故障', - handler: this.undeveloped + label: '取消ZC故障', + handler: this.cancelStoppage } ] }; @@ -198,39 +201,18 @@ export default { }, // 设置故障 setStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.stoppage.menu.operation - }; - - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(operate); }); }, // 取消故障 cancelStoppage() { - const operate = { - start: true, - send: true, - code: this.selected.code, - operation: OperationEvent.Station.cancelStoppage.menu.operation - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } else { - this.$refs.noticeInfo.doShow(operate); + this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); } - }).catch(() => { - this.$refs.noticeInfo.doShow(operate); }); }, // 所有进路自排关 diff --git a/src/scripts/cmdPlugin/Config.js b/src/scripts/cmdPlugin/Config.js index 9f0d7f242..273e606ee 100644 --- a/src/scripts/cmdPlugin/Config.js +++ b/src/scripts/cmdPlugin/Config.js @@ -40,6 +40,9 @@ export const deviceFaultType = { ], StationStand: [ {label: '屏蔽门故障打开', value: 'FAULT_PSD_OPEN'} + ], + ZcControl:[ + {label: 'zc故障', value: 'FAULT'} ] }; /** 设备类型 */ @@ -49,5 +52,6 @@ export const deviceType = { Switch: '道岔', Station: '车站', StationStand: '站台', - Train: '列车' + Train: '列车', + ZcControl:'ZC' }; From 9883d0ed3c9eca27b4cd0f808cf5f4edb9c5f96e Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 6 Jul 2020 18:00:44 +0800 Subject: [PATCH 17/42] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E5=AE=A4=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/chat.js | 45 ++- src/store/modules/socket.js | 51 ++-- src/store/modules/training.js | 17 +- src/views/newMap/jointTrainingNew/index.vue | 2 +- .../memberManage/membersManage.vue | 2 +- .../newMap/jointTrainingNew/menuDemon.vue | 2 +- .../jointTrainingNew/newChatView/chatBox.vue | 196 ++++++++++--- .../newChatView/chatContent.vue | 258 ++++++++++++++++++ .../newChatView/chatMemberList.vue | 136 +++++++++ .../newChatView/chatTooltip.vue | 39 ++- 10 files changed, 641 insertions(+), 107 deletions(-) create mode 100644 src/views/newMap/jointTrainingNew/newChatView/chatContent.vue create mode 100644 src/views/newMap/jointTrainingNew/newChatView/chatMemberList.vue diff --git a/src/api/chat.js b/src/api/chat.js index 70eda4983..bb7e643a5 100644 --- a/src/api/chat.js +++ b/src/api/chat.js @@ -360,4 +360,47 @@ export function quitCoversition(group, conversationId) { method: 'delete' }); } - +/** 发起会话 */ +export function startConversition(group, data) { + return request({ + url: `/api/simulation/${group}/conversation`, + method: 'post', + data: data + }); +} +/** 根据会话id获取仿真会话 */ +export function getSimulationConversition(group, conversationId) { + return request({ + url: `/api/simulation/${group}/conversation/${conversationId}`, + method: 'get' + }); +} +/** 发送会话消息 */ +export function sendSimulationConversition(group, conversationId, file) { + return request({ + url: `/api/simulation/${group}/conversation/${conversationId}/chat`, + method: 'post', + data: file + }); +} +/** 成员接收仿真会话邀请 */ +export function acceptConversitionInvite(group, conversationId) { + return request({ + url: `/api/simulation/${group}/conversation/${conversationId}/connect`, + method: 'post' + }); +} +/** 结束仿真会话 */ +export function overSimulationConversition(group, conversationId) { + return request({ + url: `/api/simulation/${group}/conversation/${conversationId}/over`, + method: 'put' + }); +} +/** 获取所有会话 */ +export function getAllConversition(group) { + return request({ + url: `/api/simulation/${group}/conversation/listAll`, + method: 'get' + }); +} diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 9a73bb495..c8a787544 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -70,9 +70,8 @@ function handle(state, data) { state.simulationReset = 'reset'; break; case 'Simulation_Conversation': // 仿真-用户交互消息(聊天/命令) - { handleSimulationInfo(state, msg); - state.simuConversitionCount++; - break; } + handleSimulationInfo(state, msg); + break; case 'Simulation_PlayBack_Conversation': // 回放-用户交互消息 handleSimulationInfo(state, msg); break; @@ -158,28 +157,20 @@ function handleRecordList(state, data) { } // 仿真内部聊天 function handleSimulationInfo(state, data) { - const userId = store.state.user.id; - let isSelf = false; - if (data.member.userId == userId) { - isSelf = true; + switch (data.messageType) { + case 'INVITE': + state.inviteSimulationConversition = data; + break; + case 'CONNECT': + state.acceptConversionInvite = data; + break; + case 'OVER': + state.overConversition = data; + break; + default: + state.simulationText = data; + break; } - const myDate = new Date(); - const myDate1 = myDate.toLocaleDateString().replace(/\//g, '-'); - const chatTime = /\d{2}:\d{2}:\d{2}/.exec(data.chatTime)[0] || data.chatTime; - const params = { - id:data.conversationId, - self: isSelf, - message: data.message, - voice: data.isAudio, - src: data.isAudio ? `/audio/${data.audioPath}` : '', - member:data.member, - memberOnline:data.member.online, - chatTime: data.chatTime, - targetUser:data.targetMember ? data.targetMember : 'All', - all: data.all, - date: +new Date(`${myDate1} ${chatTime}`) - }; - state.simulationText = params; } // 剧本提示 @@ -232,7 +223,9 @@ const socket = { acceptInviteChat:{}, // 综合演练仿真-聊天界面用户接受聊天邀请, quitCoversition:{}, // 综合演练仿真-聊天界面用户退出群聊推送消息, // coversitionList:{}, // 历史仿真-用户消息列表 - + inviteSimulationConversition: {}, // 仿真会话邀请消息 + acceptConversionInvite:{}, // 仿真会话成员接收邀请 + overConversition: {}, // 仿真会话结束 message: {}, // 仿真聊天 msgQueue: [], // 命令请求列表 msgHead: null, // 消息头 @@ -284,10 +277,6 @@ const socket = { state.simulationReset = simulationReset; }, - setSimulationTextList: (state, simulationText) => { - state.simulationText = simulationText; - }, - setPayOrder: (state, payOrder) => { state.payOrder = payOrder; }, @@ -344,10 +333,6 @@ const socket = { commit('setSimulationReset', ''); }, - setSimulationTextList: ({ commit }) => { - commit('setSimulationTextList', {}); - }, - setSimulationInvite: ({ commit }) => { commit('setSimulationInvite', {}); }, diff --git a/src/store/modules/training.js b/src/store/modules/training.js index 85f021393..ea47849ba 100644 --- a/src/store/modules/training.js +++ b/src/store/modules/training.js @@ -225,20 +225,21 @@ const training = { setCenterStationCode:(state, centerStationCode) => { state.centerStationCode = centerStationCode; }, - setMemberList: (state, memberList) => { + setMemberList: (state, {memberList, userId}) => { state.memberList = memberList; state.memberData = {}; if (memberList && memberList.length) { memberList.forEach(item => { state.memberData[item.id] = deepAssign({userId: ''}, item); + state.memberData[item.id].disabled = userId == item.userId; }); } }, setSimulationUserList: (state, simulationUserList) => { state.simulationUserList = simulationUserList; }, - updateMemberAndUser: (state, data) => { - data.forEach(item => { + updateMemberAndUser: (state, {simulationUserList, userId}) => { + simulationUserList.forEach(item => { let memberIndex = -1; let memberId = ''; state.simulationUserList.forEach((user, index) =>{ @@ -253,9 +254,11 @@ const training = { try { if (state.memberData && memberId !== item.memberId && memberId && state.memberData[memberId]) { state.memberData[memberId].userId = ''; + state.memberData[memberId].disabled = false; } if (state.memberData && memberId !== item.memberId && item.memberId && state.memberData[item.memberId]) { state.memberData[item.memberId].userId = item.userId; + state.memberData[item.memberId].disabled = item.userId == userId; } if (item.messageType === 'ENTER' && memberIndex < 0) { delete item.messageType; @@ -671,16 +674,16 @@ const training = { commit('setCenterStationCode', centerStationCode); }, /** 设置综合演练仿真成员列表 */ - setMemberList: ({ commit }, memberList) => { - commit('setMemberList', memberList); + setMemberList: ({ commit }, data) => { + commit('setMemberList', data); }, /** 设置综合演练仿真用户列表 */ setSimulationUserList: ({ commit }, simulationUserList) => { commit('setSimulationUserList', simulationUserList); }, /** 更新综合演练仿真成员和用户列表 */ - updateMemberAndUser: ({ commit }, simulationUserList) => { - commit('updateMemberAndUser', simulationUserList); + updateMemberAndUser: ({ commit }, data) => { + commit('updateMemberAndUser', data); } } }; diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 80ac2c21e..ae4cfe2d3 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -355,7 +355,7 @@ export default { }, initMemberUserInfo() { getSimulationMemberList(this.$route.query.group).then(resp => { - this.$store.dispatch('training/setMemberList', resp.data); + this.$store.dispatch('training/setMemberList', {memberList:resp.data, userId: this.$store.state.user.id}); }).catch(() => { this.$messageBox('获取仿真成员列表失败!'); }); diff --git a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue index 0aa3aec45..a26c29a39 100644 --- a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue +++ b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue @@ -280,7 +280,7 @@ export default { return (data.label.indexOf(value) !== -1 || flag) && driverNoShow; }, handlerMemberOnOff(data) { - this.$store.dispatch('training/updateMemberAndUser', data); + this.$store.dispatch('training/updateMemberAndUser', {simulationUserList:data, userId: this.userId}); } } }; diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index e6bb75a4a..8da8fba5e 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -29,7 +29,7 @@ + diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatMemberList.vue b/src/views/newMap/jointTrainingNew/newChatView/chatMemberList.vue new file mode 100644 index 000000000..b4087b477 --- /dev/null +++ b/src/views/newMap/jointTrainingNew/newChatView/chatMemberList.vue @@ -0,0 +1,136 @@ + + + diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue b/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue index 5ccc19fc7..b1dca85e3 100644 --- a/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue +++ b/src/views/newMap/jointTrainingNew/newChatView/chatTooltip.vue @@ -15,15 +15,17 @@ - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue deleted file mode 100644 index 7405bdf0d..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatCoversitionList.vue b/src/views/newMap/jointTrainingNew/chatView/chatCoversitionList.vue deleted file mode 100644 index 9ac8b5273..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatCoversitionList.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue b/src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue deleted file mode 100644 index 5f16484b8..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue +++ /dev/null @@ -1,234 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue b/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue deleted file mode 100644 index 284a5f1a1..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatSetting.vue b/src/views/newMap/jointTrainingNew/chatView/chatSetting.vue deleted file mode 100644 index 26e59ac5b..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatSetting.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - - diff --git a/src/views/newMap/jointTrainingNew/chatView/chatTooltip.vue b/src/views/newMap/jointTrainingNew/chatView/chatTooltip.vue deleted file mode 100644 index 5ccc19fc7..000000000 --- a/src/views/newMap/jointTrainingNew/chatView/chatTooltip.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue index 2e050a6cd..071e9c0b1 100644 --- a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue @@ -498,14 +498,27 @@ export default { } }); }, + sortByMessageTime(message1, message2) { + const time1 = new Date(message1.time).valueOf(); + const time2 = new Date(message2.time).valueOf(); + return time1 - time2; + }, isAudienceInitData() { getAllConversition(this.group).then(resp => { if (resp.data && resp.data.length) { - let messageList = []; + const messageList = []; resp.data.forEach(conversation => { - messageList = [...messageList, ...conversation.messageList]; + (conversation.messageList || []).forEach(message => { + const member = this.memberData[message.memberId]; + message.src = `/audio/${message.audioPath}`; + message.members = conversation.memberList; + if (member) { + message.self = this.$store.state.userId == member.userId; + } + messageList.push(message); + }); }); - this.messageList = messageList; + this.messageList = messageList.sort(this.sortByMessageTime); } }); this.conversitionMemberList = []; @@ -514,7 +527,7 @@ export default { }); }, changeMessageList(data) { - this.messageList.push(data); + this.messageList.push(data); } } }; From f83a60bd88a339b9dc2d8cb1f41490d363a515bd Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 7 Jul 2020 14:58:10 +0800 Subject: [PATCH 27/42] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E5=AE=A4=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jointTrainingNew/newChatView/chatBox.vue | 39 ++++++++++++++----- src/views/studentManage/index.vue | 22 +++++------ 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue index 071e9c0b1..2e057aee7 100644 --- a/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/newChatView/chatBox.vue @@ -277,7 +277,7 @@ export default { this.$refs.chatSetting.doClose(); } else { this.firstClick && this.$nextTick(() => { - this.userRole == 'AUDIENCE' && this.isAudienceInitData(); + this.isAudienceInitData(); if (this.$refs.tree) { this.$refs.tree.filter(this.queryMember); } @@ -508,15 +508,34 @@ export default { if (resp.data && resp.data.length) { const messageList = []; resp.data.forEach(conversation => { - (conversation.messageList || []).forEach(message => { - const member = this.memberData[message.memberId]; - message.src = `/audio/${message.audioPath}`; - message.members = conversation.memberList; - if (member) { - message.self = this.$store.state.userId == member.userId; - } - messageList.push(message); - }); + if (this.userRole == 'AUDIENCE') { + (conversation.messageList || []).forEach(message => { + const member = this.memberData[message.memberId]; + message.src = `/audio/${message.audioPath}`; + message.members = conversation.memberList; + if (member) { + message.self = this.$store.state.userId == member.userId; + } + messageList.push(message); + }); + } else { + const user = this.simulationUsers[this.$store.state.user.id]; + !conversation.over && conversation.memberList.forEach(member =>{ + if (member.memberId == user.memberId) { + this.conversitionMemberList = conversation.memberList; + this.conversitionId = conversation.id; + this.messageList = []; + conversation.messageList.forEach(message => { + const member = this.memberData[message.memberId]; + message.src = `/audio/${message.audioPath}`; + if (member) { + message.self = this.$store.state.userId == member.userId; + } + this.messageList.push(message); + }); + } + }); + } }); this.messageList = messageList.sort(this.sortByMessageTime); } diff --git a/src/views/studentManage/index.vue b/src/views/studentManage/index.vue index 90ea21845..67ae2fad0 100644 --- a/src/views/studentManage/index.vue +++ b/src/views/studentManage/index.vue @@ -331,30 +331,30 @@ export default { item.scores.forEach(elem => { if (elem.prdType === '01') { this.showLocal = true; - localExamSocreRadio = elem.examSocreRadio * 100 * 60 / 100 / item.scores.length; - localLessonPassRate = elem.lessonPassRate * 100 * 30 / 100 / item.scores.length; + localExamSocreRadio = elem.examSocreRadio * 60 / item.scores.length; + localLessonPassRate = elem.lessonPassRate * 30 / item.scores.length; totolScore += localExamSocreRadio * 100; totolScore += localLessonPassRate * 100; } else if (elem.prdType === '02') { this.showCenter = true; - centerExamSocreRadio = elem.examSocreRadio * 100 * 60 / 100 / item.scores.length; - centerLessonPassRate = elem.lessonPassRate * 100 * 30 / 100 / item.scores.length; + centerExamSocreRadio = elem.examSocreRadio * 60 / item.scores.length; + centerLessonPassRate = elem.lessonPassRate * 30 / item.scores.length; totolScore += centerExamSocreRadio * 100; totolScore += centerLessonPassRate * 100; } }); - totolScore += item.attendance * 100 * 10 / 100 * 100; + totolScore += item.attendance * 100 * 10; this.tableData.push( { index: index + 1, name: item.name, studentID: item.studentID, - attendance: item.attendance * 100 * 10 / 100, - localExamSocreRadio:localExamSocreRadio, - localLessonPassRate: localLessonPassRate, - centerExamSocreRadio: centerExamSocreRadio, - centerLessonPassRate: centerLessonPassRate, - totolScore: totolScore / 100 + attendance: Math.round(item.attendance * 10) / 10, + localExamSocreRadio: Math.round(localExamSocreRadio * 10) / 10, + localLessonPassRate: Math.round(localLessonPassRate * 10) / 10, + centerExamSocreRadio: Math.round(centerExamSocreRadio * 10) / 10, + centerLessonPassRate: Math.round(centerLessonPassRate * 10) / 10, + totolScore: Math.round(totolScore) / 100 }); }); }).catch(() =>{ From c345a60997be66bc6064b890bb65943f19b97813 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 7 Jul 2020 15:42:56 +0800 Subject: [PATCH 28/42] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=99=BB=E9=99=86?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=B0=83=E6=95=B4=EF=BC=88=E5=8F=98=E6=88=90?= =?UTF-8?q?=20design/login=3Fproject=3Dxxx=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 +- src/router/index_HYD.js | 3 +- src/scripts/ProjectConfig.js | 106 +++-- src/views/login/hydLogin.vue | 499 ------------------------ src/views/login/index.vue | 37 +- src/views/system/deviceManage/index.vue | 9 +- 6 files changed, 100 insertions(+), 558 deletions(-) delete mode 100644 src/views/login/hydLogin.vue diff --git a/src/permission.js b/src/permission.js index 99f6fb9ce..fc4551aba 100644 --- a/src/permission.js +++ b/src/permission.js @@ -51,9 +51,9 @@ function getRouteInfo(to) { const whitePage = PermissionParam[current_session] ? PermissionParam[current_session].whitePage : ''; loginPath = whitePage || loginPage; if (to.query.projectDevice && to.query.ibpDevice) { - loginPath = `${loginPath}?projectDevice=${to.query.projectDevice}&ibpDevice=${to.query.ibpDevice}`; + loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}&ibpDevice=${to.query.ibpDevice}`; } else if (to.query.projectDevice) { - loginPath = `${loginPath}?projectDevice=${to.query.projectDevice}`; + loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}`; } if (current_session && current_session.startsWith('jsxt') || current_session && current_session.startsWith('refereeJsxt')) { const raceId = getSessionStorage('raceId'); // 登陆时候保存 竞赛id diff --git a/src/router/index_HYD.js b/src/router/index_HYD.js index d8ef8743a..085a0a969 100644 --- a/src/router/index_HYD.js +++ b/src/router/index_HYD.js @@ -6,7 +6,8 @@ Vue.use(VueRouter); /* Layout */ const Layout = () => import('@/layout'); -const Login = () => import('@/views/login/hydLogin'); +// const Login = () => import('@/views/login/hydLogin'); +const Login = () => import('@/views/login/index'); const Jlmap3dedit = () => import('@/views/jlmap3d/edit/jlmap3dedit'); const Jlmap3d = () => import('@/views/jlmap3d/drive/jl3ddrive'); diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index d219d0029..1d82632df 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -15,7 +15,8 @@ import { LoginParams } from '@/utils/login'; export const loginInfo = { xty: { title: '西安铁路职业技术学院城市轨道交通实训平台', - loginPath: '/xty/login', + // loginPath: '/xty/login', + loginPath:'/login?pro=xty', loginParam: 'XTY', navigationLogoWidth: '40px', navigationMarginLeft: '60px' @@ -36,28 +37,33 @@ export const loginInfo = { }, designxty: { title: '西安铁路职业技术学院城市轨道交通设计平台', - loginPath: '/designxty/login', + // loginPath: '/designxty/login', + loginPath:'/design/login?project=xty', loginParam: 'XTY', navigationLogoWidth: '40px', navigationMarginLeft: '60px' }, gzb: { title: '贵州装备制造职业学院城市轨道交通实训平台', - loginPath: '/gzb/login', + // loginPath: '/gzb/login', + loginPath:'/login?project=gzb', loginParam: 'GZB', navigationLogoWidth: '40px', navigationMarginLeft: '60px' }, designgzb: { title: '贵州装备制造职业学院城市轨道交通设计平台', - loginPath: '/designgzb/login', + // loginPath: '/designgzb/login', + loginPath:'/design/login?project=gzb', loginParam: 'GZB', navigationLogoWidth: '40px', navigationMarginLeft: '60px' }, hyd: { title: '城市轨道交通综合行车模拟仿真系统V1.0', - loginPath: '/login', + loginTitle: '城市轨道交通综合行车模拟仿真系统V1.0', + logoWidth: '140px', + loginPath: '/login?project=hyd', bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273', loginParam: 'DEFAULT', navigationLogoWidth: '120px', @@ -65,7 +71,9 @@ export const loginInfo = { }, designhyd: { title: '城市轨道交通设计平台V1.0', - loginPath: '/design/login', + loginTitle: '城市轨道交通设计平台V1.0', + logoWidth: '140px', + loginPath: '/design/login?project=hyd', bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273', loginParam: 'DEFAULT', navigationLogoWidth: '120px', @@ -77,7 +85,8 @@ export const loginInfo = { loginTitle: '调度一部', homeTitle: '调度一部', browserTitle: '西安地铁调度一部城市轨道交通实训平台', - loginPath: '/xadt/login', + loginPath:'/login?project=xadt', + // loginPath: '/xadt/login', loginParam: 'DEFAULT', navigationLogoWidth: '40px', navigationMarginLeft: '60px' @@ -88,7 +97,8 @@ export const loginInfo = { loginTitle: '调度一部', homeTitle: '调度一部', browserTitle: '西安地铁调度一部城市轨道交通设计平台', - loginPath: '/designxadt/login', + // loginPath: '/designxadt/login', + loginPath:'/design/login?project=xadt', loginParam: 'DEFAULT', navigationLogoWidth: '40px', navigationMarginLeft: '60px' @@ -109,7 +119,8 @@ export const loginInfo = { }, jyd: { title: '城市轨道交通实训平台', - loginPath: '/jyd/login', + // loginPath: '/jyd/login', + loginPath:'/login?project=jyd', logoWidth: '300px', navigationLogoWidth: '120px', navigationMarginLeft: '140px', @@ -125,7 +136,8 @@ export const loginInfo = { logoWidth: '300px', navigationLogoWidth: '120px', navigationMarginLeft: '140px', - loginPath: '/designjyd/login', + // loginPath: '/designjyd/login', + loginPath:'/design/login?project=jyd', bottomColumn: '', bottomIcon: Bottom_Jyd, linkIcon: Link_Jyd, @@ -133,19 +145,25 @@ export const loginInfo = { }, tky: { title: '城市轨道交通实训平台', - loginPath: '/tky/login', - loginTitle: 'jyd', + // loginPath: '/tky/login', + loginPath:'/login?project=tky', + loginTitle: '空串', bottomColumn: '', bottomIcon: FaviconTky, - loginParam: 'DEFAULT' + loginParam: 'DEFAULT', + navigationLogoWidth: '75px', + navigationMarginLeft: '90px' }, designtky: { title: '城市轨道交通设计平台', - loginPath: '/designtky/login', - loginTitle: 'jyd', + // loginPath: '/designtky/login', + loginPath:'/design/login?project=tky', + loginTitle: '空串', bottomIcon: FaviconTky, bottomColumn: '', - loginParam: 'DEFAULT' + loginParam: 'DEFAULT', + navigationLogoWidth: '75px', + navigationMarginLeft: '90px' } }; @@ -191,25 +209,33 @@ export const GenerateRouteProjectList = ['xty', 'designxty', 'gzb', 'designgzb', export const goOtherPlatformMenu = { // 导航栏快速切换平台 login: '/design/login', design: '/login', - xty: '/designxty/login', - designxty: '/xty/login', - gzb: '/designgzb/login', - designgzb: '/gzb/login', - hyd: '/design/login', - designhyd: '/login', - xadt: '/designxadt/login', - designxadt: '/xadt/login', - jyd: '/designjyd/login', - designjyd: '/jyd/login', - tky: '/designtky/login', - designtky: '/tky/login' + xty: '/design/login?project=xty', + designxty: '/login?project=xty', + gzb: '/design/login?project=gzb', + designgzb: '/login?project=gzb', + hyd: '/design/login?project=hyd', + designhyd: '/login?project=hyd', + xadt: '/design/login?project=xadt', + designxadt: '/login?project=xadt', + jyd: '/design/login?project=jyd', + designjyd: '/login?project=jyd', + tky: '/design/login?project=tky', + designtky: '/login?project=tky' }; export const PermissionParam = { // 路径权限处理所需参数配置(跳转白名单&路径正则匹配&clientId) hyd: { - systemType: '011' + // systemType: '011' + whitePage: '/login?project=hyd', + reg: /^\/hyd/, + systemType: '011', + clientId: null }, designhyd: { - systemType: '011' + // systemType: '011' + whitePage: '/design/login?project=hyd', + reg: /^\/designhyd/, + systemType: '011', + clientId: LoginParams.Design.clientId }, login: { systemType: '011' @@ -218,61 +244,61 @@ export const PermissionParam = { // 路径权限处理所需参数配置(跳 systemType: '011' }, designxty: { - whitePage: '/designxty/login', + whitePage: '/design/login?project=xty', reg: /^\/designxty/, systemType: '013', clientId: LoginParams.Design.clientId }, designgzb: { - whitePage: '/designgzb/login', + whitePage: '/design/login?project=gzb', reg: /^\/designgzb/, systemType: '014', clientId: LoginParams.Design.clientId }, designxadt: { - whitePage: '/designxadt/login', + whitePage: '/design/login?project=xadt', reg: /^\/designxadt/, systemType: '012', clientId: LoginParams.Design.clientId }, designjyd: { - whitePage: '/designjyd/login', + whitePage: '/design/login?project=jyd', reg: /^\/designjyd/, systemType: '017', clientId: LoginParams.Design.clientId }, designtky: { - whitePage: '/designtky/login', + whitePage: '/design/login?project=tky', reg: /^\/designtky/, systemType: '018', clientId: LoginParams.Design.clientId }, xty: { - whitePage: '/xty/login', + whitePage: '/login?project=xty', reg: /^\/xty/, systemType: '013', clientId: null }, gzb: { - whitePage: '/gzb/login', + whitePage: '/login?project=gzb', reg: /^\/gzb/, systemType: '014', clientId: null }, xadt: { - whitePage: '/xadt/login', + whitePage: '/login?project=xadt', reg: /^\/xadt/, systemType: '012', clientId: null }, jyd: { - whitePage: '/jyd/login', + whitePage: '/login?project=jyd', reg: /^\/jyd/, systemType: '017', clientId: null }, tky: { - whitePage: '/tky/login', + whitePage: '/login?project=tky', reg: /^\/tky/, systemType: '018', clientId: null diff --git a/src/views/login/hydLogin.vue b/src/views/login/hydLogin.vue deleted file mode 100644 index f990608c0..000000000 --- a/src/views/login/hydLogin.vue +++ /dev/null @@ -1,499 +0,0 @@ - - - - - - - - diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 570d2e2b7..50e15513e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -8,7 +8,7 @@ element-loading-background="rgba(0, 0, 0, 0)" > 主工作站未登录,点击重新检测 -
+
{{ loginTitle==='空串'?'':loginTitle }}
@@ -21,8 +21,8 @@ {{ language }}
-
-
+
+
+ + {{ $t('global.confirm') }} @@ -72,7 +74,7 @@ export default { lwList: [], formIbp: { part: '', - lwCode: '' + deviceCode: '' }, formLw: { mapId: '', @@ -82,7 +84,7 @@ export default { part: [ { required: true, message: '请选择显示位置', trigger: 'change' } ], - lwCode: [ + deviceCode: [ { required: true, message: '请选择归属车站', trigger: 'change'} ] }, From bb500d4c29502f6a1f34ab64d564ead8e3908512 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 7 Jul 2020 16:17:29 +0800 Subject: [PATCH 31/42] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B5=E5=B7=9E?= =?UTF-8?q?=E8=A3=85=E5=A4=87=E8=AF=95=E5=8D=B7=E5=85=B3=E7=B3=BB=EF=BC=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/exam.js | 25 +++++++ src/views/exam/detail/courseDetail.vue | 65 ++++++++++++------- src/views/publish/examRule/draft/examFrom.vue | 55 ++++++++++++++-- src/views/publish/examRule/draft/index.vue | 62 +++++++++++++++++- src/views/publish/examRule/draft/rule.vue | 24 +++++-- 5 files changed, 193 insertions(+), 38 deletions(-) diff --git a/src/api/management/exam.js b/src/api/management/exam.js index b9cce0170..085d43727 100644 --- a/src/api/management/exam.js +++ b/src/api/management/exam.js @@ -8,6 +8,14 @@ export function setCourseList(data) { data: data }); } +/** 贵州装备 创建对应课程考题 */ +export function setCourseListGzb(data) { + return request({ + url: `/api/exam/project/GZB`, + method: 'post', + data: data + }); +} /** 获取对应课程下类型 */ export function getCourseTypeList(data) { @@ -86,6 +94,15 @@ export function updateExamRules(data) { }); } +/** 贵州装备 更新考试规则*/ +export function updateExamRulesGzb(data) { + return request({ + url: `/api/exam/${data.id}/project/GZB`, + method: 'put', + data: data + }); +} + /** 根据课程ID获取试卷 */ export function getExamParperList(lessonId) { return request({ @@ -93,3 +110,11 @@ export function getExamParperList(lessonId) { method: 'get' }); } + +/** 根据课程ID获取班级 */ +export function getExamClassList(lessonId) { + return request({ + url: `/api/lesson/${lessonId}/classes`, + method: 'get' + }); +} diff --git a/src/views/exam/detail/courseDetail.vue b/src/views/exam/detail/courseDetail.vue index 69607c330..f218feb83 100644 --- a/src/views/exam/detail/courseDetail.vue +++ b/src/views/exam/detail/courseDetail.vue @@ -8,7 +8,7 @@
-  {{ node.label }} - + --> + + + + + + + + + + + + +
@@ -55,7 +74,7 @@ import { getCourseLessonDetail } from '@/api/management/exam'; import { PermissionType } from '@/scripts/ConstDic'; import { UrlConfig } from '@/scripts/ConstDic'; import LimitList from '@/views/components/limits/index'; -import { getSessionStorage, setSessionStorage } from '@/utils/auth'; +import { getSessionStorage } from '@/utils/auth'; import localStore from 'storejs'; export default { @@ -77,10 +96,10 @@ export default { }, EffectiveTypeList: [], activeName: 'first', - defaultProps: { - children: 'children', - label: 'name' - }, + // defaultProps: { + // children: 'children', + // label: 'name' + // }, expandList: [], valid: false }; @@ -184,7 +203,7 @@ export default { this.$router.push({ path: `${UrlConfig.trainingPlatform.examHome}/${this.$route.params.subSystem}`}); }, 100); }, - clickEvent(obj, node, data) { + clickEvent(obj) { if (this.valid || obj.trial) { this.$router.push({ path: `${UrlConfig.trainingPlatform.examDetail}/${obj.id}`, query: { subSystem: this.$route.params.subSystem, mapId: this.courseModel.mapId }}); } else { @@ -199,21 +218,21 @@ export default { this.buy(); }).catch(() => { }); }, - filterNode(value, data) { - if (!value) return true; - return data.name.indexOf(value) !== -1; - }, - nodeExpand(obj, node, ele) { - const key = obj.id; - this.expandList = this.expandList.filter(item => item !== key); - this.expandList.push(key); - setSessionStorage('trainingExamExpandList' + this.courseModel.id, this.expandList); - }, - nodeCollapse(obj, node, ele) { - const key = obj.id; - this.expandList = this.expandList.filter(item => item !== key); - setSessionStorage('trainingExamExpandList' + this.courseModel.id, this.expandList); - }, + // filterNode(value, data) { + // if (!value) return true; + // return data.name.indexOf(value) !== -1; + // }, + // nodeExpand(obj, node, ele) { + // const key = obj.id; + // this.expandList = this.expandList.filter(item => item !== key); + // this.expandList.push(key); + // setSessionStorage('trainingExamExpandList' + this.courseModel.id, this.expandList); + // }, + // nodeCollapse(obj, node, ele) { + // const key = obj.id; + // this.expandList = this.expandList.filter(item => item !== key); + // setSessionStorage('trainingExamExpandList' + this.courseModel.id, this.expandList); + // }, getExpandList(id) { let expand = getSessionStorage('trainingExamExpandList' + id); expand = expand ? (expand + '').split(',') : ''; diff --git a/src/views/publish/examRule/draft/examFrom.vue b/src/views/publish/examRule/draft/examFrom.vue index 8f3224e8c..750679739 100644 --- a/src/views/publish/examRule/draft/examFrom.vue +++ b/src/views/publish/examRule/draft/examFrom.vue @@ -42,6 +42,11 @@ + + + + + @@ -68,7 +73,8 @@ diff --git a/src/views/system/deviceManage/index.vue b/src/views/system/deviceManage/index.vue index 5677ec490..b80dc2ad4 100644 --- a/src/views/system/deviceManage/index.vue +++ b/src/views/system/deviceManage/index.vue @@ -4,6 +4,7 @@ +
@@ -13,6 +14,7 @@ import { getProjectDeviceList, deleteProjectDevice } from '@/api/project'; import DeviceAdd from './add'; import EditConfigGateway from './editConfigGateway'; import EditConfig from './editConfig'; +import EditConfigScreen from './editConfigScreen'; import { getSessionStorage } from '@/utils/auth'; import ConstConfig from '@/scripts/ConstConfig'; export default { @@ -20,7 +22,8 @@ export default { components: { DeviceAdd, EditConfigGateway, - EditConfig + EditConfig, + EditConfigScreen }, data() { return { @@ -176,6 +179,8 @@ export default { this.$refs.editConfig.doShow(row); } else if (row.type === 'SWITCH' || row.type === 'SIGNAL' || row.type === 'PSD') { this.$refs.editConfigGateway.doShow(row); + } else if (row.type == 'LSW' || row.type == 'CCTV') { + this.$refs.editConfigScreen.doShow(row); } else { this.$messageBox('暂无配置内容'); } @@ -187,6 +192,8 @@ export default { let url = ''; if (row.type === 'IBP') { url = `${window.location.protocol}//${window.location.host}/login?project=${this.projectCode.toLowerCase()}&projectDevice=${row.code}&ibpDevice=true`; + } else if (row.type == 'LSW') { + url = `${window.location.protocol}//${window.location.host}/login?project=${this.projectCode.toLowerCase()}&projectDevice=${row.code}&type=${row.type}&ibpDevice=true`; } else { url = `${window.location.protocol}//${window.location.host}/login?project=${this.projectCode.toLowerCase()}&projectDevice=${row.code}`; } From a543aa79d1cc1761f24ec441558e8a1808e39f7e Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 7 Jul 2020 17:45:26 +0800 Subject: [PATCH 35/42] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=99=BB=E5=BD=95?= =?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/api/project.js | 16 +++++++++++ src/utils/baseUrl.js | 4 +-- src/views/iscs/iscsSystem/groupNav.vue | 39 ++++++++++++++++++++++---- 3 files changed, 51 insertions(+), 8 deletions(-) diff --git a/src/api/project.js b/src/api/project.js index 82d0ed706..a0866d6d0 100644 --- a/src/api/project.js +++ b/src/api/project.js @@ -99,3 +99,19 @@ export function getDevicesByType(type) { method: 'get' }); } +/** 添加/修改车站综合监控配置 */ +export function setIscsLwConfig(id, data) { + return request({ + url: `/api/device/${id}/config/iscslw`, + method: 'put', + data: data + }); +} +/** 添加/修改中心综合监控配置 */ +export function setIscsCwConfig(id, data) { + return request({ + url: `/api/device/${id}/config/iscscw`, + method: 'put', + data: data + }); +} diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 778caeb7b..c59924e25 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,9 +2,9 @@ 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.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; diff --git a/src/views/iscs/iscsSystem/groupNav.vue b/src/views/iscs/iscsSystem/groupNav.vue index 4f7fc6d4a..9696b74bf 100644 --- a/src/views/iscs/iscsSystem/groupNav.vue +++ b/src/views/iscs/iscsSystem/groupNav.vue @@ -16,7 +16,7 @@
- +
-
返回主页面
+
{{ projectDevice? '退出': '返回主页面' }}