新增结果总览一键导出报告
This commit is contained in:
@@ -19,6 +19,16 @@
|
||||
<div class="section-title">风险总览</div>
|
||||
<div class="section-subtitle">集中展示项目风险统计与命中人员总览</div>
|
||||
</div>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
:disabled="!projectId"
|
||||
@click="handleOverviewReportExport"
|
||||
>
|
||||
一键导出
|
||||
</el-button>
|
||||
</div>
|
||||
<overview-stats :summary="currentData.summary" />
|
||||
<risk-people-section
|
||||
@@ -191,6 +201,18 @@ export default {
|
||||
riskTags,
|
||||
};
|
||||
},
|
||||
handleOverviewReportExport() {
|
||||
if (!this.projectId) {
|
||||
return;
|
||||
}
|
||||
this.download(
|
||||
"ccdi/project/overview/report/export",
|
||||
{
|
||||
projectId: this.projectId,
|
||||
},
|
||||
`初核结果报告_${this.projectId}_${new Date().getTime()}.pdf`
|
||||
);
|
||||
},
|
||||
async loadOverviewData() {
|
||||
if (!this.projectId) {
|
||||
this.realData = this.stateDataMap.empty;
|
||||
@@ -294,6 +316,10 @@ export default {
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 18px;
|
||||
padding-left: 12px;
|
||||
border-left: 4px solid var(--ccdi-primary);
|
||||
|
||||
Reference in New Issue
Block a user