From d37b5a45dd419f2d5c9f2081a3553bd617ac5ac6 Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 11 Oct 2022 09:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E7=95=8C=E9=9D=A2=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/simulation.js | 8 + src/api/trainingPlatform.js | 32 +- src/jmapNew/theme/fuzhou_01/menus/index.vue | 13 +- .../theme/fuzhou_01/menus/localWorkMenu.vue | 13 + src/store/modules/training.js | 3 +- src/utils/baseUrl.js | 4 +- src/utils/sock.js | 16 +- src/views/newMap/display/index.vue | 7 +- src/views/newMap/display/terminals/index.vue | 28 +- .../newMap/display/terminals/terminalMenu.vue | 64 ++-- src/views/package/index.vue | 82 ++++- src/views/publish/publishMap/index.vue | 13 +- src/views/publish/publishMap/subsystem.vue | 292 ++++++++++++++++++ src/views/trainingPlatform/demonList.vue | 173 +---------- src/views/trainingPlatform/index.vue | 4 +- 15 files changed, 509 insertions(+), 243 deletions(-) create mode 100644 src/jmapNew/theme/fuzhou_01/menus/localWorkMenu.vue create mode 100644 src/views/publish/publishMap/subsystem.vue diff --git a/src/api/simulation.js b/src/api/simulation.js index 9d14b4848..b6d9befbb 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -537,3 +537,11 @@ export function queryPaTimedList(group, params) { params }); } +/** 创建仿真 */ +export function createSimulation(data) { + return request({ + url: `/simulation/new`, + method: 'post', + data + }); +} diff --git a/src/api/trainingPlatform.js b/src/api/trainingPlatform.js index 6a3d9a6b2..bfc43829e 100644 --- a/src/api/trainingPlatform.js +++ b/src/api/trainingPlatform.js @@ -75,4 +75,34 @@ export function getSubSystemByProjectCode() { method: 'get' }); } - +/** 创建地图系统 */ +export function createMapSystem(data) { + return request({ + url: `/api/mapSystem/new`, + method: 'post', + data + }); +} +/** 列表查询地图系统 */ +export function queryMapSystemList(params) { + return request({ + url: `/api/mapSystem/new/list`, + method: 'get', + params + }); +} +/** 更新地图系统 */ +export function updateMapSystem(data) { + return request({ + url: `/api/mapSystem/new/${data.id}`, + method: 'post', + data + }); +} +/** 删除地图系统 */ +export function deleteMapSystem(id) { + return request({ + url: `/api/mapSystem/new/${id}`, + method: 'delete' + }); +} diff --git a/src/jmapNew/theme/fuzhou_01/menus/index.vue b/src/jmapNew/theme/fuzhou_01/menus/index.vue index e1116e3eb..9ad384693 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/index.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/index.vue @@ -1,6 +1,6 @@