Commit 97a3df82 authored by huyf's avatar huyf

导出

parent 136db343
......@@ -94,3 +94,23 @@ export function exportDeptTargetExcel(query) {
responseType: 'blob'
})
}
// 导出部门业绩目标设置 Excel
export function exportDetailExcel(query) {
return request({
url: '/sale/dept-target/exportDetailExcel',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 导出部门业绩目标设置 Excel
export function exportStatisticsExcel(query) {
return request({
url: '/sale/dept-target/exportStatisticsExcel',
method: 'get',
params: query,
responseType: 'blob'
})
}
......@@ -118,6 +118,8 @@
getDeptTarget,
getDeptTargetPage,
exportDeptTargetExcel,
exportDetailExcel,
exportStatisticsExcel,
getCreateInitData,
getPersonTargetPage,
allAchievementByPage
......@@ -441,7 +443,7 @@
// 执行导出
this.$modal.confirm(this.$t('是否确认导出所有部门业绩数据项?')).then(() => {
this.exportLoading = true;
return exportDeptTargetExcel(params);
return exportDetailExcel(params);
}).then(response => {
this.$download.excel(response, `${this.$t('业绩明细')}.xls`);
......@@ -463,7 +465,7 @@
// 执行导出
this.$modal.confirm(this.$t('是否确认导出所有部门业绩统计?')).then(() => {
this.exportLoading = true;
return exportDeptTargetExcel(params);
return exportStatisticsExcel(params);
}).then(response => {
this.$download.excel(response, `${this.$t('业绩统计')}.xls`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment