#
whycq
2022-09-28 af59223f6504971f1bbd083ed5bbb6ec93211164
pages/basics/matSelect.vue
@@ -105,7 +105,7 @@
         },
         showTag(parentId) {
            let that = this
            uni.showLoading();
            uni.request({
                url: that.commonUrl + '/tag/list/pda/auth',
               header: {
@@ -119,7 +119,7 @@
                  'token':uni.getStorageSync('token'),
               },
               success(result) {
                  console.log(result)
                  uni.showLoading();
                  that.tag = null
                  that.data = null
                  var res = result.data
@@ -145,6 +145,7 @@
         },
         showMat(tagId) {
            uni.vibrateShort();
            uni.showLoading();
            let that = this
            if (tagId == null || tagId == '' || tagId == undefined) {
               return;
@@ -159,14 +160,13 @@
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  console.log(result)
                  that.tag = null
                  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
                     }
@@ -180,7 +180,7 @@
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
                  uni.hideLoading();
               }
            });
         },