From 1f3c73eb86a5af0b6022a100f7502bafec45f4fd Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 5 Aug 2025 16:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/mork.js | 7 + src/pages/modules/building.vue | 27 ++- src/pages/modules/building2.vue | 355 -------------------------------- src/pages/modules/device.vue | 6 + src/pages/modules/home.vue | 2 +- src/pages/modules/map.vue | 6 +- src/pages/shells/index.vue | 46 +++-- src/style/common.styl | 3 +- src/vuex/modules/data.js | 28 +-- 9 files changed, 69 insertions(+), 411 deletions(-) delete mode 100644 src/pages/modules/building2.vue diff --git a/src/config/mork.js b/src/config/mork.js index d101ebc..b8709ba 100644 --- a/src/config/mork.js +++ b/src/config/mork.js @@ -96,3 +96,10 @@ export const getMapInfoByCode = () => { } return res } +export const startMapping = () => { + let res = { + code: 200, + message: 'ok' + } + return res +} diff --git a/src/pages/modules/building.vue b/src/pages/modules/building.vue index 53d0e12..a64d5a5 100644 --- a/src/pages/modules/building.vue +++ b/src/pages/modules/building.vue @@ -23,9 +23,9 @@ - -
- + +
+

{{ message }}

@@ -35,6 +35,7 @@ - - diff --git a/src/pages/modules/device.vue b/src/pages/modules/device.vue index 51eff99..642d55c 100644 --- a/src/pages/modules/device.vue +++ b/src/pages/modules/device.vue @@ -117,6 +117,7 @@ export default { }, // 站点查询 async _queryStation () { + this.dataList = [] try { let res = await queryStation() if (res && res.data) { @@ -128,6 +129,7 @@ export default { }, // 任务链查询 async _queryTaskChain () { + this.linkData = [] this.chainId = null try { let res = await queryTaskChain() @@ -222,6 +224,8 @@ export default { }, // 点击任务链点位 handleLinkCheck (e) { + this.newData = [] + this.chainId = '' this._queryTaskChainDtl(e.chain_id) }, // 任务链明细 @@ -339,6 +343,8 @@ export default { let res = await deleteTaskChain(this.chainId) if (res) { this.$message(res.message) + this.newData = [] + this.chainId = '' this._queryTaskChain() } this.loading.close() diff --git a/src/pages/modules/home.vue b/src/pages/modules/home.vue index 60ede8f..30ba4a6 100644 --- a/src/pages/modules/home.vue +++ b/src/pages/modules/home.vue @@ -17,7 +17,7 @@ export default { nav: [ {title: '操作', zh_title: '操作', en_title: 'Operation', router: '/index/device'}, {title: '建图', zh_title: '建图', en_title: 'Map building', router: '/index/building'}, - {title: '取消任务', zh_title: '取消任务', en_title: 'Cancel task', router: ''}, + // {title: '取消任务', zh_title: '取消任务', en_title: 'Cancel task', router: ''}, {title: '地图', zh_title: '地图', en_title: 'Map', router: '/index/map'} ], disabled: false diff --git a/src/pages/modules/map.vue b/src/pages/modules/map.vue index 6c61b29..c8a9ca3 100644 --- a/src/pages/modules/map.vue +++ b/src/pages/modules/map.vue @@ -14,11 +14,11 @@ @mouseup="handleMouseUp" @mouseleave="handleMouseUp" > - +