From ac1ef8e5a847ff8d2c4ac950a09c9f9eed3e8b01 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 23 May 2023 15:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=E6=95=B0=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E7=94=9F=E6=88=90=E5=AE=9E=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jmap/map.js | 8 ++++++++ src/views/publish/publishMap/index.vue | 24 +++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js index 96d2d73d8..3f2f65321 100644 --- a/src/api/jmap/map.js +++ b/src/api/jmap/map.js @@ -314,3 +314,11 @@ export function getClientDataById(mapId) { method: 'get' }); } +/** 发布地图根据id生成实训 */ +export function generateTrainingData(data) { + return request({ + url: `/api/v2/training/rule/generate/mapId`, + method: 'post', + data: data + }); +} diff --git a/src/views/publish/publishMap/index.vue b/src/views/publish/publishMap/index.vue index f17c6f5a3..9c720b859 100644 --- a/src/views/publish/publishMap/index.vue +++ b/src/views/publish/publishMap/index.vue @@ -27,7 +27,7 @@