|
@@ -602,7 +602,7 @@ export default {
|
602
|
602
|
});
|
603
|
603
|
} else {
|
604
|
604
|
getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
|
605
|
|
- let userId = res.data.userId;
|
|
605
|
+ let userId = res.data[0].userId;
|
606
|
606
|
this.$set(this.taskForm.variables, "approval", userId);
|
607
|
607
|
this.$set(this.taskForm.variables, "isProject", this.isProject);
|
608
|
608
|
complete(this.taskForm).then(response => {
|
|
@@ -613,16 +613,16 @@ export default {
|
613
|
613
|
}
|
614
|
614
|
|
615
|
615
|
}
|
616
|
|
- else if (this.taskName == '项目部审核') {
|
617
|
|
- getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
|
618
|
|
- let userId = res.data.userId;
|
619
|
|
- this.$set(this.taskForm.variables, "approval", userId);
|
620
|
|
- complete(this.taskForm).then(response => {
|
621
|
|
- this.$modal.msgSuccess(response.msg);
|
622
|
|
- this.$emit('goBack')
|
623
|
|
- });
|
624
|
|
- });
|
625
|
|
- }
|
|
616
|
+ // else if (this.taskName == '项目部审核') {
|
|
617
|
+ // getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
|
|
618
|
+ // let userId = res.data[0].userId;
|
|
619
|
+ // this.$set(this.taskForm.variables, "approval", userId);
|
|
620
|
+ // complete(this.taskForm).then(response => {
|
|
621
|
+ // this.$modal.msgSuccess(response.msg);
|
|
622
|
+ // this.$emit('goBack')
|
|
623
|
+ // });
|
|
624
|
+ // });
|
|
625
|
+ // }
|
626
|
626
|
else if (this.taskName == '分管审核') {
|
627
|
627
|
getUserByPost({ postName: '总经理' }).then(res => {
|
628
|
628
|
this.$set(this.taskForm.variables, "approval", res.data[0].userId);
|