From c006c26b3fd791a122b2f59758eca35795945563 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 13 六月 2024 10:39:07 +0800
Subject: [PATCH] #
---
pages/phyz/checkLocDetl/locMove.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/pages/phyz/checkLocDetl/locMove.vue b/pages/phyz/checkLocDetl/locMove.vue
index 465b154..e103691 100644
--- a/pages/phyz/checkLocDetl/locMove.vue
+++ b/pages/phyz/checkLocDetl/locMove.vue
@@ -52,7 +52,7 @@
</view>
<view class="btn">
<view class="btn-left" @click="checkClose">鍙栨秷</view>
- <view class="btn-right" @click="checkConfirm()">纭</view>
+ <view class="btn-right" @click="checkConfirm()" :disabled="checkDis">纭</view>
</view>
</view>
</uni-popup>
@@ -77,7 +77,8 @@
item: '',
floorList: ['1F','2F','3F'],
floor: '',
- locMast: null
+ locMast: null,
+ checkDis: false
}
},
onShow() {
@@ -193,6 +194,7 @@
},
checkConfirm() {
let _this = this
+ _this.checkDis = true
uni.request({
url: `${_this.baseUrl}/agvMobile/hand/control/locMove`,
header: {'token': uni.getStorageSync('token'),
@@ -203,6 +205,7 @@
}),
method: 'POST',
success(res) {
+ _this.checkDis = false
res = res.data
if (res.code === 200) {
uni.showToast({ title: res.msg, icon: "error", position: 'top' })
@@ -214,7 +217,11 @@
} else {
uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
+ },
+ fail(res) {
+ _this.checkDis = false
}
+
})
}
@@ -262,6 +269,9 @@
.locSts-P {
background-color: #ffaa00;
}
+ .locSts-Q {
+ background-color: #47a301;
+ }
.locSts-X {
background-color: #767676;
}
--
Gitblit v1.9.1