From 237a32aadb51f4c7f51d4734f6e62663f8acde36 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期六, 08 四月 2023 17:02:18 +0800
Subject: [PATCH] 修复多个bug
---
pages/driver-page/appointment/appointment.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue
index 272b15c..dae7583 100644
--- a/pages/driver-page/appointment/appointment.vue
+++ b/pages/driver-page/appointment/appointment.vue
@@ -13,7 +13,7 @@
<uni-td align="center">{{ (item.startTime || '') + '-' + (item.endTime || '') }}</uni-td>
<uni-td align="center">{{ item.carNum || '' }}</uni-td>
<uni-td align="center">{{ item.carNum1 || '' }}</uni-td>
- <uni-td><u-button text="棰勭害" type="primary" :disabled="item.carNum == item.carNum1" @click="yuYueBtnClick(item)"></u-button></uni-td>
+ <uni-td><u-button text="閫夋嫨" type="primary" :disabled="item.carNum == item.carNum1" @click="yuYueBtnClick(item)"></u-button></uni-td>
</uni-tr>
</uni-table>
</view>
@@ -28,11 +28,13 @@
},
data() {
return {
+ // 棰勭害鍒楄〃璇锋眰鍙傛暟
yuYueListParams: {
filedId: '',
deptId: '',
sendDate: ''
},
+ // 棰勭害璇锋眰鍙傛暟
yuYuePostParams: {
takeCoalId: null,
yuYueId: null
@@ -94,11 +96,13 @@
this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => {
if (res.code == 0) {
this.$u.toast('棰勭害鎴愬姛锛�');
- uni.navigateBack({
- delta: 1
- })
+ let timer = setTimeout(() => {
+ uni.navigateBack({
+ delta: 1
+ });
+ }, 1000);
} else {
- this.$u.toast(res.data ? res.data : '棰勭害澶辫触');
+ this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触');
}
setTimeout(() => {
this.yuYueList();
--
Gitblit v1.9.1