| | |
| | | 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', |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | |
| | | that.tag = null |
| | | that.data = null |
| | | var res = result.data |
| | |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | uni.hideLoading(); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | 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 |
| | | } |
| | |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | |
| | | } |
| | | }); |
| | | }, |