From 8211623a1ad349773871838080cba88d55908c78 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Mon, 10 Nov 2025 09:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/wb/taskcarry.vue | 14 +++++++++----- pages/wb/taskmanage.vue | 17 +++++++++++------ vuex/modules/user.js | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/pages/wb/taskcarry.vue b/pages/wb/taskcarry.vue index 431068f..d463e49 100644 --- a/pages/wb/taskcarry.vue +++ b/pages/wb/taskcarry.vue @@ -17,7 +17,7 @@ 目标区域 - + @@ -25,7 +25,7 @@ 起点点位 - + @@ -33,7 +33,7 @@ 目标点位 - + @@ -74,8 +74,6 @@ created () { this._queryArea () this._queryArea2() - this._queryPointByArea3() - this._queryPointByArea4() }, methods: { async _queryArea () { @@ -128,9 +126,15 @@ }, selectChange (e) { this.index = e + if (e) { + this._queryPointByArea3() + } }, selectChange2 (e) { this.index2 = e + if (e) { + this._queryPointByArea4() + } }, selectChange3 (e) { this.index3 = e diff --git a/pages/wb/taskmanage.vue b/pages/wb/taskmanage.vue index 4bd2204..47b822a 100644 --- a/pages/wb/taskmanage.vue +++ b/pages/wb/taskmanage.vue @@ -59,6 +59,11 @@ this._querytasks() }, methods: { + clearUp () { + this.pkId = '' + this.dataList = [] + this.disabled = false + }, toCheck (e) { this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid }, @@ -78,26 +83,26 @@ this.dataList = [] } }, - async _taskOperation (type) { + async _taskoperation (type) { this.disabled = true if (!this.pkId) { this.disabled = false return } try { - let res = await taskOperation(this.pkId, type) + let res = await taskoperation(this.pkId, type) if (res) { - this._queryTask() uni.showToast({ title: res.message, icon: 'none' }) + this.clearUp() + setTimeout(()=> { + this._querytasks() + }, 2000) } - this.disabled = false - this.pkId = '' } catch (err) { this.disabled = false - this.pkId = '' } } } diff --git a/vuex/modules/user.js b/vuex/modules/user.js index be50da8..172a79d 100644 --- a/vuex/modules/user.js +++ b/vuex/modules/user.js @@ -1,6 +1,6 @@ import * as types from '../types' -const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.18.218:8012' : 'http://192.168.18.218:8012' +const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.10.24:8011' : 'http://192.168.10.24:8011' const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.18.250:8012' : 'http://192.168.18.250:8012' const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.18.4:8000' : 'http://192.168.18.4:8000' const state = {