From 67518f027a8bcf444f5d50123825249d49f999ff Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 12 十月 2022 16:46:02 +0800
Subject: [PATCH] #
---
pages/basics/matSelect.vue | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue
index beef27d..48f24cd 100644
--- a/pages/basics/matSelect.vue
+++ b/pages/basics/matSelect.vue
@@ -94,6 +94,15 @@
var res = result.data
if (res.code === 200 ) {
that.data = res.data
+ } else if (res.code == 403) {
+ uni.showToast({title: res.msg, icon: "none", position: 'top'})
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
}
});
@@ -101,6 +110,7 @@
showTag(parentId) {
let that = this
uni.vibrateShort();
+ uni.showLoading();
uni.request({
// url: "http://localhost:8081/jkwms/tag/list/pda/auth",
url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/tag/list/pda/auth',
@@ -113,6 +123,7 @@
'token':uni.getStorageSync('token'),
},
success(result) {
+
that.tag = null
that.data = null
var res = result.data
@@ -132,6 +143,7 @@
} else {
uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
+ uni.hideLoading();
}
});
},
@@ -156,7 +168,9 @@
var res = result.data
if (res.code === 200) {
if (res.data != null && res.data.length > 0) {
+ uni.showLoading();
that.data = res.data
+ uni.hideLoading();
} else {
// that.tagId = parentId
}
@@ -170,6 +184,7 @@
} else {
uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
+
}
});
},
--
Gitblit v1.9.1