From 8461e49e594ba3f8af2883a694fff857dc239a31 Mon Sep 17 00:00:00 2001 From: fan Date: Wed, 12 Oct 2022 15:31:15 +0800 Subject: [PATCH] =?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/api/trainingPlatform.js | 8 + src/i18n/langs/en/newRouter.js | 3 +- src/i18n/langs/zh/newRouter.js | 3 +- src/permission.js | 2 +- src/router/index.js | 17 +- src/scripts/cmdPlugin/MenuContextHandler.js | 2 +- src/views/demonstration/detail/index.vue | 1 - .../publish/publishMap/chooseTraining.vue | 258 ++++++++++++ .../publish/publishMap/editSubsystem.vue | 257 ++++++++++++ src/views/publish/publishMap/index.vue | 7 +- src/views/publish/publishMap/subsystem.vue | 373 ++++++------------ src/views/trainingPlatform/demonList.vue | 109 ++--- src/views/trainingPlatform/index.vue | 2 +- .../selectRole/list.vue | 0 .../simulation.vue} | 2 +- 15 files changed, 718 insertions(+), 326 deletions(-) create mode 100644 src/views/publish/publishMap/chooseTraining.vue create mode 100644 src/views/publish/publishMap/editSubsystem.vue rename src/views/{package => trainingPlatform}/selectRole/list.vue (100%) rename src/views/{package/index.vue => trainingPlatform/simulation.vue} (99%) diff --git a/src/api/trainingPlatform.js b/src/api/trainingPlatform.js index bfc43829e..a28cf188b 100644 --- a/src/api/trainingPlatform.js +++ b/src/api/trainingPlatform.js @@ -106,3 +106,11 @@ export function deleteMapSystem(id) { method: 'delete' }); } +/** 分页查询地图系统 */ +export function queryMapSystemPaged(params) { + return request({ + url: `/api/mapSystem/new/paged`, + method: 'get', + params + }); +} diff --git a/src/i18n/langs/en/newRouter.js b/src/i18n/langs/en/newRouter.js index bb9041b40..6fe7b9b96 100644 --- a/src/i18n/langs/en/newRouter.js +++ b/src/i18n/langs/en/newRouter.js @@ -40,5 +40,6 @@ export default { userRulesManage: 'User Rights Statistics', fileManage: 'File Manage', frontResourceManage: 'Front-end Resource Management', - iscsPrerecordManage: 'ISCS Advance record management' + iscsPrerecordManage: 'ISCS Advance record management', + subsystemManage: 'Subsystem Manage' }; diff --git a/src/i18n/langs/zh/newRouter.js b/src/i18n/langs/zh/newRouter.js index 4f4eddb14..a8930040b 100644 --- a/src/i18n/langs/zh/newRouter.js +++ b/src/i18n/langs/zh/newRouter.js @@ -40,5 +40,6 @@ export default { userRulesManage: '用户权限管理', fileManage: '文件管理', frontResourceManage: '前端资源管理', - iscsPrerecordManage: 'ISCS预录管理' + iscsPrerecordManage: 'ISCS预录管理', + subsystemManage: '子系统管理' }; diff --git a/src/permission.js b/src/permission.js index 81ec6c11a..972ac5a5c 100644 --- a/src/permission.js +++ b/src/permission.js @@ -63,7 +63,7 @@ function handleRoute(to, next, loginPath) { // 除没有动态改变权限的需求可直接next() 删下方权限判断 if (to.path === '/404' && to.redirectedFrom === '/') { const project = getSessionStorage('project'); - console.log(localStore.get('trainingPlatformRoute' + store.getters.id + project, '-------------')); + console.log(localStore.get('trainingPlatformRoute' + store.getters.id + project, '-------------')); next(localStore.get('trainingPlatformRoute' + store.getters.id + project) || '/trainingPlatform'); } else { next(); diff --git a/src/router/index.js b/src/router/index.js index 95414f6b1..3c3556417 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -132,9 +132,10 @@ const MapPreviewNew = () => import('@/views/designPlatform/mapPreviewNew'); const BigScreen = () => import('@/views/designPlatform/bigScreen'); const BigSplitScreen = () => import('@/views/designPlatform/bigSplitScreen'); -const Package = () => import('@/views/package/index'); +const SimulationPlatform = () => import('@/views/trainingPlatform/simulation'); const PublishMap = () => import('@/views/publish/publishMap/index'); +const SubsystemManage = () => import('@/views/publish/publishMap/subsystem'); const PublishMapDetail = () => import('@/views/publish/publishMap/list'); // 发布历史 const PublishLesson = () => import('@/views/publish/publishLesson/index'); const RunPlanTemplate = () => import('@/views/publish/runPlanTemplate/index'); @@ -919,9 +920,9 @@ export const asyncRouter = [ component: ExamResult, hidden: true }, - { // 线路权限列表 - path: 'permission/:mapId', - component: Package, + { + path: 'simulation/:mapId', + component: SimulationPlatform, hidden: true }, { // 二级home页面 @@ -1775,6 +1776,14 @@ export const asyncRouter = [ meta: { i18n: 'newRouter.linePacketManage' } + }, + { + path: 'subsystem', + component: SubsystemManage, + hidden: true, + meta: { + i18n: 'newRouter.subsystemManage' + } } ] }, diff --git a/src/scripts/cmdPlugin/MenuContextHandler.js b/src/scripts/cmdPlugin/MenuContextHandler.js index a44f1de51..136344858 100644 --- a/src/scripts/cmdPlugin/MenuContextHandler.js +++ b/src/scripts/cmdPlugin/MenuContextHandler.js @@ -129,7 +129,7 @@ class MenuContextHandler { } covertList(list) { - const menu = [...list]; + let menu = [...list]; const selected = this.getCurrentStateObject(); const control = this.getStationControl(selected); if (control && !store.state.scriptRecord.audioPlay) { diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue index 56c2c35a0..7fc1970b3 100644 --- a/src/views/demonstration/detail/index.vue +++ b/src/views/demonstration/detail/index.vue @@ -101,7 +101,6 @@ export default { try { let res; try { - debugger; res = await getPublishMapInfo(this.mapId); } catch (error) { if (error.code == 30001 || error.code == 10007) { diff --git a/src/views/publish/publishMap/chooseTraining.vue b/src/views/publish/publishMap/chooseTraining.vue new file mode 100644 index 000000000..f2f434c26 --- /dev/null +++ b/src/views/publish/publishMap/chooseTraining.vue @@ -0,0 +1,258 @@ + + + + diff --git a/src/views/publish/publishMap/editSubsystem.vue b/src/views/publish/publishMap/editSubsystem.vue new file mode 100644 index 000000000..f1b87ab94 --- /dev/null +++ b/src/views/publish/publishMap/editSubsystem.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/src/views/publish/publishMap/index.vue b/src/views/publish/publishMap/index.vue index cf39304e7..a33954de7 100644 --- a/src/views/publish/publishMap/index.vue +++ b/src/views/publish/publishMap/index.vue @@ -7,7 +7,6 @@ - { diff --git a/src/views/publish/publishMap/subsystem.vue b/src/views/publish/publishMap/subsystem.vue index 45b77ddd4..2e0a422f4 100644 --- a/src/views/publish/publishMap/subsystem.vue +++ b/src/views/publish/publishMap/subsystem.vue @@ -1,201 +1,120 @@ - - diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index d1cfca726..30aea6487 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -1,52 +1,49 @@