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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ ruleForm.trainingName? ruleForm.trainingName: '-' }} + 选择 + + + + + + + + 取 消 + 确 定 + + + + + + + + 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 @@ - - 新增 - - - - - {{ simTypeMap[scope.row.simType] }} - - - - - {{ simUsageMap[scope.row.simUsage] }} - - - - - - 更新 - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - + + + + - - 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 @@ - - {{ $t('global.mapList') }} - - - - - - - - - {{ node.data.name }} - - + + {{ $t('global.mapList') }} + + + + + + {{ cityMap.get(cityCode) }} + + + {{ map.name }} + + + +