diff --git a/src/views/reportProcess/launch.vue b/src/views/reportProcess/launch.vue index 16ed70c..5c65f3f 100644 --- a/src/views/reportProcess/launch.vue +++ b/src/views/reportProcess/launch.vue @@ -138,7 +138,7 @@ export default { this.$refs.assignFormRef.clearValidate() }) }) - // this.getLearder() + this.getLearder() } else if (this.$route.query.taskDefinitionKey == 'reEdit' ) { this.taskId = this.$store.getters.handleProcess.taskId @@ -153,7 +153,7 @@ export default { this.processForm=JSON.parse(this.processOld.dataJson) this.$set(this.assignForm,'oneApprove',submitJson.oneApprove) this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName) - // this.getLearder() + this.getLearder() } else if (this.$route.query.type == 'yiban') { @@ -181,7 +181,7 @@ export default { this.isShowSave = false this.isLevel=false }else{ - // this.getLearder() + this.getLearder() this.isLevel = true this.isShowSave = true } @@ -212,15 +212,16 @@ export default { this.$api.reportProcess.getLeader({ userId:this.userId }).then(res=>{ - debugger + if(res.data){ + this.$set(this.assignForm,'oneApprove',res.data[0].usid) + this.$set(this.assignForm,'oneApproveName',res.data[0].usname) + + this.checkBtn=true + }else{ + this.checkBtn=false + } }) - // if(res.data){ - // this.assignForm.oneApprove=res.userId - // this.assignForm.oneApproveName=res.userName - // this.checkBtn=true - // }else{ - // this.checkBtn=false - // } + }, // 查询文件名称 getFileName(){