From d8743368ffda9bc0fb2c6818f695a9a6b1079e57 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 19 九月 2025 18:22:15 +0800
Subject: [PATCH] laster
---
pages/task/update.vue | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/pages/task/update.vue b/pages/task/update.vue
index dd00fe8..72c2f7f 100644
--- a/pages/task/update.vue
+++ b/pages/task/update.vue
@@ -38,7 +38,7 @@
</a>
</view>
<view class="item" v-if="form.tasktype == 1">
- <view>寰幆娆℃暟锛�/view>
+ <view>閲嶅娆℃暟锛�/view>
<input class="right-input" type="number" :value="form.cycleTime" :maxlength="4"
@input="onInputCycleTime" />
</view>
@@ -95,7 +95,9 @@
<script>
import {
showToast,
- showModal
+ showModal,
+ showError,
+ showInfo
} from "@/comm/utils.js"
import {
Button
@@ -229,7 +231,7 @@
const info = await stations(this.ip)
this.stationList = info.station_list || []
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
async clickSave() {
@@ -243,6 +245,9 @@
showToast("鏈�鎷╀换鍔″睘鎬э紒")
return
}
+ uni.showLoading({
+ title:"浠诲姟鏇存柊涓�
+ })
const task = {
taskGroupID: this.form.taskGroupID,
taskGroupName: name,
@@ -298,7 +303,10 @@
delta: 1, //杩斿洖灞傛暟锛�鍒欎笂涓婇〉
})
} catch (ex) {
- this.showError(ex)
+ showError(ex)
+ }
+ finally {
+ uni.hideLoading()
}
},
clickCancel() {
@@ -334,7 +342,7 @@
if (flag) {
- showModal(`褰撳墠缂栬緫鐨勫唴瀹瑰皢涓嶄細琚繚瀛榒, "纭畾瑕侀�鍑虹紪杈戝悧?").then((res) => {
+ showModal(`褰撳墠缂栬緫鐨勫唴瀹瑰皢涓嶄細琚繚瀛榒, "纭畾瑕侀�鍑虹紪杈戝悧?",true,"纭畾","鍙栨秷").then((res) => {
if (res) {
uni.navigateBack({
delta: 1, //杩斿洖灞傛暟锛�鍒欎笂涓婇〉
@@ -519,7 +527,7 @@
})
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -550,13 +558,7 @@
closeMenu() {
this.$refs.refPopupMenu.close()
},
- showError(ex) {
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.msg == "string" ? ex.msg : exStr
- showModal(tip, "閿欒", false)
- },
+
}
}
--
Gitblit v1.9.1