|
@@ -88,6 +88,20 @@ export class IncidentSubstitutionComponent implements OnInit {
|
88
|
88
|
// 转派
|
89
|
89
|
if(this.incidentData.state.value == 'handler' && this.incidentData.handlingPersonnelUser && this.incidentData.handlingPersonnelUser.id == this.tool.getCurrentUserId() && !this.coopBtns.assign && this.coopBtns.transfer){
|
90
|
90
|
this.tabs.splice(0, 0, {id: 1, name: '转派', value: 'redeploy', num: ''});
|
|
91
|
+ }else if(this.incidentData.state.value == 'pending'){
|
|
92
|
+ let inUser = this.incidentData.currentLog && this.incidentData.currentLog.workerId == this.tool.getCurrentUserId();
|
|
93
|
+ let inGroup = false;
|
|
94
|
+ let groupList = this.tool.getCurrentGroupList();
|
|
95
|
+ groupList.forEach(item => {
|
|
96
|
+ if(this.incidentData.currentLog){
|
|
97
|
+ if (item.id == this.incidentData.currentLog.groupId) {
|
|
98
|
+ inGroup = true;
|
|
99
|
+ }
|
|
100
|
+ }
|
|
101
|
+ })
|
|
102
|
+ if((inUser || inGroup)){
|
|
103
|
+ this.tabs.splice(0, 0, {id: 1, name: '转派', value: 'redeploy', num: ''});
|
|
104
|
+ }
|
91
|
105
|
}
|
92
|
106
|
|
93
|
107
|
// 指派
|