zhaobao 1 год назад
Родитель
Сommit
95e0e31711

+ 2 - 2
pages/app_views/checkList/index/index.vue

@@ -97,9 +97,9 @@
 				*/
 				getchecklistRecord(checklistId,recordId).then((res)=>{
 					this.itemList=res.data.itemList
-					 let wxId=uni.getStorageSync('wxId')
+					 let userId=uni.getStorageSync('userId')
 					 this.status=res.data.status
-					this.handleVisiable=(res.data.status===0||res.data.status===1)&&(res.data.accountId===wxId)
+					this.handleVisiable=(res.data.status===0||res.data.status===1)&&(res.data.accountId===userId)
 				})
 			},
 			check(point){		

+ 2 - 2
pages/app_views/hazard/index/index.vue

@@ -79,8 +79,8 @@
 				/* status 0-未初始化;1-初始化完成 2-完成 -1-巡检完成【异常】*/
 				getChecklistHazardRecordViewById(recordId,checklistId).then((res)=>{
 					this.itemList=res.data.hazardList
-					 let wxId=uni.getStorageSync('wxId')
-					this.handleVisiable=(res.data.status===0||res.data.status===1)&&(res.data.accountId===wxId)
+					 let userId=uni.getStorageSync('userId')
+					this.handleVisiable=(res.data.status===0||res.data.status===1)&&(res.data.accountId===userId)
 				})
 			},
 			check(measure){

+ 2 - 2
pages/app_views/problem_feedback/record/record.vue

@@ -48,7 +48,7 @@
 			  }
 			},
 			submitName(viewData){
-				if(!viewData.wxId){
+				if(!viewData.userId){
 					return `${ viewData.submitGroupName } - ${ viewData.submitAccountName }( ${ viewData.submitPositionName } )`
 				}
 				return  viewData.wxName
@@ -68,7 +68,7 @@
 			getSnapshotById(){
 				getSnapshotById(this.snapshotId).then((res)=>{
 					this.viewData=res.data
-					this.handVisable=uni.getStorageSync('wxId')===(res.data.wxId||res.data.handleAccountId)
+					this.handVisable=uni.getStorageSync('userId')===(res.data.userId||res.data.handleAccountId)
 				})
 			},
 			showImg(current,attachList){

+ 1 - 1
pages/app_views/satisfaction_evaluation/satisfaction_evaluation.vue

@@ -116,7 +116,7 @@
 				let recordList=JSON.parse(JSON.stringify(this.pointList))
 					this.$refs.form.validate().then(res=>{
 						batchSatisfactionChecklist({
-							wxId:this.unionid,
+							userId:this.unionid,
 							wxCode:this.unionid,
 							wxName:"微信用户",
 							phoneNumber:this.formData.phoneNumber,

+ 1 - 1
pages/authorizedLogin/index.vue

@@ -94,7 +94,7 @@
 												uni.setStorageSync('isLogin',true)
 												uni.setStorageSync('phone-info',resp.data)
 												uni.setStorageSync('isAccount',data.isAccount)
-												uni.setStorageSync('wxId',data.wxId)
+												uni.setStorageSync('userId',data.userId)
 												uni.setStorageSync('wxName',data.wxName)
 												uni.reLaunch({
 													url: '/pages/index/index'

+ 2 - 2
pages/history/detail/detail.vue

@@ -90,12 +90,12 @@
 		},
 		onLoad() {
 			let info=uni.getStorageSync('detail-info')
-			let wxId=uni.getStorageSync('wxId')
+			let userId=uni.getStorageSync('userId')
 			let accountInfo=uni.getStorageSync('accountInfo')
 			this.baseInfo=info
 			this.getWorkflowRecord()			
 			this.user=accountInfo
-			this.visable=(wxId===info.curAccountId)&&(info.status===1||info.status===2||info.status===3);
+			this.visable=(userId===info.curAccountId)&&(info.status===1||info.status===2||info.status===3);
 		},
 		methods:{
 			getWorkflowRecord(){

+ 2 - 1
pages/index/index.vue

@@ -82,7 +82,8 @@
 						targetTitle:res.data.targetTitle,
 						ocId,
 						code
-					})				
+					})	
+				    uni.setStorageSync('userId',res.data.accountId)								
 					let desc="";
 					if(type===1){desc=res.data.target.riskPointDesc}
 					if(type===2){