From 1c510943083c376284d34a9af05a5774fbeb8b6b Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 4 May 2023 16:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jmap/map.js | 9 +- src/store/modules/map.js | 8 +- src/utils/baseUrl.js | 2 +- .../newMap/newMapdraft/mapoperate/index.vue | 2 +- .../newMapdraft/mapoperate/terminals/list.vue | 69 ++++++++++ .../mapoperate/{ => terminals}/terminals.vue | 128 ++++++++++-------- .../publish/publishMap/editSubsystem.vue | 40 +++++- 7 files changed, 197 insertions(+), 61 deletions(-) create mode 100644 src/views/newMap/newMapdraft/mapoperate/terminals/list.vue rename src/views/newMap/newMapdraft/mapoperate/{ => terminals}/terminals.vue (70%) diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js index 8fc96dde9..96d2d73d8 100644 --- a/src/api/jmap/map.js +++ b/src/api/jmap/map.js @@ -182,7 +182,7 @@ export function localImportMap(data) { url: '/api/map/local/import', method: 'post', data: data - }); + }); } /** 根据group获取排序的车站列表(包含车辆段/停车场) */ @@ -307,3 +307,10 @@ export function queryMapListByUser() { method: 'get' }); } +/** 根据mapId获取客户端信息数据 */ +export function getClientDataById(mapId) { + return request({ + url: `/api/map/${mapId}/mapClientMap`, + method: 'get' + }); +} diff --git a/src/store/modules/map.js b/src/store/modules/map.js index fff42df2d..4249097ef 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -846,8 +846,12 @@ const map = { map.conversationGroupMap.EMERGENCY = []; } } - if (!map.mapClientVOList) { - map.mapClientVOList = []; + if (!map.mapClientVOMap) { + map.mapClientVOMap = { METRO: [], RAILWAY: [], EMERGENCY: [] }; + } else { + if (!map.mapClientVOMap.METRO) { map.mapClientVOMap.METRO = []; } + if (!map.mapClientVOMap.RAILWAY) { map.mapClientVOMap.RAILWAY = []; } + if (!map.mapClientVOMap.EMERGENCY) { map.mapClientVOMap.EMERGENCY = []; } } state.map = map; let showConfig = {}; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 6151b9016..88ca6c631 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -31,7 +31,7 @@ export function handlerUrl() { // BASE_API = 'http://192.168.3.94:9000'; // 旭强 // BASE_API = 'http://192.168.3.15:9000'; // 张赛 // BASE_API = 'http://192.168.3.5:9000'; // 夏增彬 - // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 + BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue index 512017338..13804d5ba 100644 --- a/src/views/newMap/newMapdraft/mapoperate/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/index.vue @@ -70,7 +70,7 @@ import FloodGate from './floodGate'; import DirectionRod from './directionRod'; import SignalButton from './signalButton'; import SimulationMember from './simulationMember/index'; -import terminals from './terminals'; +import terminals from './terminals/terminals'; export default { name: 'MapOperate', diff --git a/src/views/newMap/newMapdraft/mapoperate/terminals/list.vue b/src/views/newMap/newMapdraft/mapoperate/terminals/list.vue new file mode 100644 index 000000000..c3452b96e --- /dev/null +++ b/src/views/newMap/newMapdraft/mapoperate/terminals/list.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/newMap/newMapdraft/mapoperate/terminals.vue b/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue similarity index 70% rename from src/views/newMap/newMapdraft/mapoperate/terminals.vue rename to src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue index 59a0acf8a..781aff016 100644 --- a/src/views/newMap/newMapdraft/mapoperate/terminals.vue +++ b/src/views/newMap/newMapdraft/mapoperate/terminals/terminals.vue @@ -1,33 +1,17 @@