From 8d5de4cc1a482cf1bd8b62ee51a41a2f145bacfe Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 12 Apr 2021 18:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=88=86=E7=BB=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mapGroup.js | 33 +++++ src/i18n/langs/en/router.js | 3 +- src/i18n/langs/zh/router.js | 3 +- src/router/index.js | 8 ++ src/views/publish/mapGroup/editGroup.vue | 112 +++++++++++++++++ src/views/publish/mapGroup/index.vue | 146 +++++++++++++++++++++++ 6 files changed, 303 insertions(+), 2 deletions(-) create mode 100644 src/api/mapGroup.js create mode 100644 src/views/publish/mapGroup/editGroup.vue create mode 100644 src/views/publish/mapGroup/index.vue diff --git a/src/api/mapGroup.js b/src/api/mapGroup.js new file mode 100644 index 000000000..1cfa51d5e --- /dev/null +++ b/src/api/mapGroup.js @@ -0,0 +1,33 @@ +import request from '@/utils/request'; + +/** 创建分组 */ +export function createMapGroup(data) { + return request({ + url: `/api/mapGroup`, + method: 'post', + data + }); +} +/** 修改分组 */ +export function updateMapGroup(data) { + return request({ + url: `/api/mapGroup/${data.groupId}`, + method: 'put', + data + }); +} +/** 删除分组 */ +export function deleteMapGroup(groupId) { + return request({ + url: `/api/mapGroup/${groupId}`, + method: 'delete' + }); +} +/** 分页查询地图分组 */ +export function queryMapGroupPaging(params) { + return request({ + url: `/api/mapGroup/page`, + method: 'get', + params + }); +} diff --git a/src/i18n/langs/en/router.js b/src/i18n/langs/en/router.js index fffb8a803..1868243a4 100644 --- a/src/i18n/langs/en/router.js +++ b/src/i18n/langs/en/router.js @@ -90,5 +90,6 @@ export default { boardManage: 'Message Board Manage', publishIBPManage:'publish IBP Manage', publishISCSManage:'publish ISCS Manage', - voiceTraining: 'Voice Training' + voiceTraining: 'Voice Training', + mapGroup: 'Map Group' }; diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js index b9eaa40d5..eadca6adb 100644 --- a/src/i18n/langs/zh/router.js +++ b/src/i18n/langs/zh/router.js @@ -95,5 +95,6 @@ export default { boardManage: '留言板管理', publishIBPManage:'发布IBP盘管理', publishISCSManage:'发布ISCS管理', - voiceTraining: '语音训练' + voiceTraining: '语音训练', + mapGroup: '地图分组' }; diff --git a/src/router/index.js b/src/router/index.js index 38b9ab53b..746a6073a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -162,6 +162,7 @@ const InfoLessonDetail = () => import('@/views/organization/lessonManage/lessonD const RunPlanViewWindow = () => import('@/views/newMap/displayNew/demon/runPlanViewWindow'); const SecondaryHome = () => import('@/views/trainingPlatform/secondaryHome'); const Demo = () => import('@/views/demo'); +const MapGroup = () => import('@/views/publish/mapGroup/index'); const DemoTraining = () => import('@/views/newMap/displayNew/demoTraining'); const OrgDetail = () => import('@/views/system/companyManage/orgDetail'); const VoiceTraining = () => import('@/views/system/voiceTraining/index'); @@ -853,6 +854,13 @@ export const asyncRouter = [ meta: { i18n: 'router.publishISCSManage' } + }, + { + path: 'mapGroup', + component: MapGroup, + meta: { + i18n: 'router.mapGroup' + } } ] }, diff --git a/src/views/publish/mapGroup/editGroup.vue b/src/views/publish/mapGroup/editGroup.vue new file mode 100644 index 000000000..302fdcbcd --- /dev/null +++ b/src/views/publish/mapGroup/editGroup.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/publish/mapGroup/index.vue b/src/views/publish/mapGroup/index.vue new file mode 100644 index 000000000..bfaf5aa81 --- /dev/null +++ b/src/views/publish/mapGroup/index.vue @@ -0,0 +1,146 @@ + + + + +