From f681b210692b079455a53afd5bd83b4401ef9320 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 10 二月 2023 10:42:23 +0800
Subject: [PATCH] #

---
 pages/basics/matSelect.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue
index 61d265a..48f24cd 100644
--- a/pages/basics/matSelect.vue
+++ b/pages/basics/matSelect.vue
@@ -110,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',
@@ -122,6 +123,7 @@
 						'token':uni.getStorageSync('token'),
 				    },
 					success(result) {
+						
 						that.tag = null
 						that.data = null
 						var res = result.data
@@ -141,6 +143,7 @@
 						} else {
 							uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
+						uni.hideLoading();
 					}
 				});
 			},
@@ -165,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
 							}
@@ -179,6 +184,7 @@
 						} else {
 							uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
+						
 					}
 				});
 			},

--
Gitblit v1.9.1