|
|
@@ -298,7 +298,8 @@
|
|
|
updateSecurityExamineIssueRepeal,
|
|
|
deleteSecurityExamineIssue,
|
|
|
querySecurityExamineIssueAdvanced,
|
|
|
- exportMonthlyDeduction,
|
|
|
+ exportEvaluationDeptSort,
|
|
|
+ exportEvaluationTarget,
|
|
|
} from '@/api/evaluationSystem';
|
|
|
import type { QuerySecurityExamineIssueParams, EvaluationSystemItem } from '@/api/evaluationSystem';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
@@ -559,9 +560,10 @@
|
|
|
deductionTitle: tableQuery.queryParam.deductionTitle || undefined,
|
|
|
status: tableQuery.queryParam.status === '' ? '' : Number(tableQuery.queryParam.status),
|
|
|
};
|
|
|
- const response = await exportMonthlyDeduction(exportParams);
|
|
|
+ const response = route.query.operate == 'evaluationSystem-advanced-group' ? await exportEvaluationDeptSort(exportParams) : await exportEvaluationTarget(exportParams);
|
|
|
if (response) {
|
|
|
- const fileName = `考核下发对象_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
|
+ debugger
|
|
|
+ const fileName = `${route.query.operate == 'evaluationSystem-advanced-group' ? '部门考核' : '考核对象'}_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
|
downloadByData(response, fileName);
|
|
|
ElMessage.success('导出成功');
|
|
|
}
|