From 9246e993b1ca7d41a721982221af3bcfc910b23c Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 15 八月 2022 10:17:05 +0800
Subject: [PATCH] #
---
pages/basics/matSelect.vue | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue
index 61d265a..906007d 100644
--- a/pages/basics/matSelect.vue
+++ b/pages/basics/matSelect.vue
@@ -48,7 +48,7 @@
baseHttp:'http://',
baseIP:'',
basePORT:'',
- baseUrl:'/jkwms'
+ baseUrl:'/lywms'
}
},
onLoad() {
@@ -109,18 +109,19 @@
},
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',
+ header: {
+ 'token':uni.getStorageSync('token'),
+ },
data: {
limit: 100000,
parentId: parentId
},
- method:"GET",
- header: {
+ header: {
'token':uni.getStorageSync('token'),
- },
+ },
success(result) {
that.tag = null
that.data = null
@@ -141,6 +142,7 @@
} else {
uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
+ uni.hideLoading();
}
});
},
@@ -165,7 +167,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 +183,7 @@
} else {
uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
+
}
});
},
--
Gitblit v1.9.1