|
|
|
@ -713,25 +713,31 @@ export class DaMonthlyTaskOverviewComponent implements OnInit {
|
|
|
|
|
look(item) { |
|
|
|
|
console.log(item); |
|
|
|
|
// console.log(JSON.parse(item.resultData));
|
|
|
|
|
let data = JSON.parse(item.resultData); |
|
|
|
|
if (!data) { |
|
|
|
|
this.message.create('warning', '无数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (item.taskType !== '双随机') { |
|
|
|
|
this.message.create('warning', '只能查看双随机'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.modal.create({ |
|
|
|
|
nzTitle: '双随机详情', |
|
|
|
|
nzContent: LookShuangsjComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 800, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: data, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
if (item.taskType == '双随机' || item.taskType == '联络指导') { |
|
|
|
|
let data = JSON.parse(item.resultData); |
|
|
|
|
if (!data) { |
|
|
|
|
this.message.create('warning', '无数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.modal.create({ |
|
|
|
|
nzTitle: '双随机详情', |
|
|
|
|
nzContent: LookShuangsjComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 800, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: data, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} else if (item.taskType == '熟悉演练') { |
|
|
|
|
window.open( |
|
|
|
|
`/statistic/taskdetails?id=${item.id}&company=${ |
|
|
|
|
item.company.companyName |
|
|
|
|
}&organization=${item.organization.name}&legalPersonName=${ |
|
|
|
|
item.company.legalPersonName ? item.company.legalPersonName : '' |
|
|
|
|
}` |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|