lilei 2 vuotta sitten
vanhempi
commit
27859c4914
2 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 2 2
      App.vue
  2. 8 1
      pages/storeManage/editAdminAuth.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			// baseUrl: 'http://192.168.0.215:9110/saas/clz/', // 本地
-			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			baseUrl: 'http://192.168.0.103:9110/saas/clz/', // 本地
+			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 8 - 1
pages/storeManage/editAdminAuth.vue

@@ -80,6 +80,7 @@
 				let _this = this
 				this.status = "loading"
 				 getPowerRoleList(Object.assign({pageNo: this.pageNo, pageSize: this.pageSize}, this.queryParam)).then(res => {
+				   uni.hideLoading()
 				   if (res.code == 200 || res.status == 204 || res.status == 200) {
 				     if(_this.pageNo>1){
 				   	  _this.roleList = _this.roleList.concat(res.data.list || [])
@@ -99,11 +100,17 @@
 				 })
 			},
 			getCurrUserInfo(){
+				uni.showLoading({
+					mask:true,
+					title: '正在加载...'
+				})
 				getCurrUserInfo().then(res => {
 					if(res.data){
-						this.formData = Object.assign({},this.formData,res.data)
+						this.formData = Object.assign({},this.formData,{id:res.data.id})
 						this.pageNo = 1
 						this.getRoleList()
+					}else{
+						uni.hideLoading()
 					}
 				})
 			},