diff --git a/src/api/jmap/mapdraft.js b/src/api/jmap/mapdraft.js index fb2dc783b..b98648520 100644 --- a/src/api/jmap/mapdraft.js +++ b/src/api/jmap/mapdraft.js @@ -51,6 +51,14 @@ export function deleteMap(data) { }); } +/** 删除所有草稿地图 */ +export function deleteAllMap() { + return request({ + url: `/api/mapBuild/delete/all`, + method: 'delete' + }) +} + /** 保存草稿地图*/ export function saveMap(data) { return request({ diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js index 4f297efd3..05c627061 100644 --- a/src/i18n/langs/en/map.js +++ b/src/i18n/langs/en/map.js @@ -5,6 +5,7 @@ export default { pleaseEnter: 'please input', sketchMap: 'Draft map list', newConstruction: 'Create', + deleteAllMap: 'Delete All', importMap: 'Import the map', createNewMap: 'A new map', normalCreate: 'The normal to create', diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index 2c50fd2f9..d303bc6a8 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -5,6 +5,7 @@ export default { pleaseEnter: '请输入', sketchMap: '草稿地图列表', newConstruction: '新建', + deleteAllMap: '清空', bothCreate: '批量生成', importMap: '导入', createNewMap: '新建地图', diff --git a/src/views/newMap/newDesignUser/demonList.vue b/src/views/newMap/newDesignUser/demonList.vue index a094adb5d..494d9be17 100644 --- a/src/views/newMap/newDesignUser/demonList.vue +++ b/src/views/newMap/newDesignUser/demonList.vue @@ -6,18 +6,30 @@