|
|
@@ -538,6 +538,13 @@ export default {
|
|
538
|
538
|
document: '',
|
|
539
|
539
|
commentTime: undefined
|
|
540
|
540
|
},
|
|
|
541
|
+ {
|
|
|
542
|
+ deptId: 109,
|
|
|
543
|
+ userId: '',
|
|
|
544
|
+ comment: '',
|
|
|
545
|
+ document: '',
|
|
|
546
|
+ commentTime: undefined
|
|
|
547
|
+ },
|
|
541
|
548
|
],
|
|
542
|
549
|
isSelect: false,
|
|
543
|
550
|
formTotal: 0,
|
|
|
@@ -693,11 +700,26 @@ export default {
|
|
693
|
700
|
document: '',
|
|
694
|
701
|
commentTime: undefined
|
|
695
|
702
|
},
|
|
|
703
|
+ {
|
|
|
704
|
+ deptId: 109,
|
|
|
705
|
+ userId: '',
|
|
|
706
|
+ comment: '',
|
|
|
707
|
+ document: '',
|
|
|
708
|
+ commentTime: undefined
|
|
|
709
|
+ },
|
|
696
|
710
|
]
|
|
|
711
|
+ let num=0;
|
|
697
|
712
|
for (let comment of this.commentList) {
|
|
698
|
|
- getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
|
|
699
|
|
- comment.userId = res.data.userId;
|
|
|
713
|
+ num = num + 1;
|
|
|
714
|
+ if(num<=3){
|
|
|
715
|
+ getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
|
|
|
716
|
+ comment.userId = res.data.userId;
|
|
|
717
|
+ })}
|
|
|
718
|
+ else{
|
|
|
719
|
+ getUserByPost({ postName: '专职安全员' }).then(res => {
|
|
|
720
|
+ comment.userId =res.data[0].userId;
|
|
700
|
721
|
})
|
|
|
722
|
+ }
|
|
701
|
723
|
}
|
|
702
|
724
|
}
|
|
703
|
725
|
});
|
|
|
@@ -811,10 +833,18 @@ export default {
|
|
811
|
833
|
else if (val == '2') {
|
|
812
|
834
|
this.commentOpen = true;
|
|
813
|
835
|
this.meetingOpen = false;
|
|
|
836
|
+ let num=0;
|
|
814
|
837
|
for (let comment of this.commentList) {
|
|
815
|
|
- getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
|
|
816
|
|
- comment.userId = res.data.userId;
|
|
|
838
|
+ num = num + 1;
|
|
|
839
|
+ if(num<=3){
|
|
|
840
|
+ getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
|
|
|
841
|
+ comment.userId = res.data.userId;
|
|
|
842
|
+ })}
|
|
|
843
|
+ else{
|
|
|
844
|
+ getUserByPost({ postName: '专职安全员' }).then(res => {
|
|
|
845
|
+ comment.userId =res.data[0].userId;
|
|
817
|
846
|
})
|
|
|
847
|
+ }
|
|
818
|
848
|
}
|
|
819
|
849
|
}
|
|
820
|
850
|
},
|