导出接口调试完成

This commit is contained in:
BianLzhaoMin 2025-10-13 14:21:06 +08:00
parent 9a9b0ca429
commit 4ce724efb9
4 changed files with 52 additions and 7 deletions

View File

@ -68,13 +68,13 @@ export default {
//
onHandleExport(queryParams) {
// this.download(
// '/bmw/workerStatistics/exportWorkerList',
// {
// ...queryParams,
// },
// '.xlsx',
// )
this.download(
'/bmw/workerStatistics/exportWorkerStatisticsTable',
{
// ...queryParams,
},
'人员统计.xlsx',
)
},
},
}

View File

@ -9,6 +9,17 @@
:columnsList="columnsList"
:request-api="getProjectCountListAPI"
>
<template slot="btn" slot-scope="{ queryParams }">
<el-button
plain
size="mini"
type="success"
icon="el-icon-download"
@click="onHandleExport(queryParams)"
>
导出
</el-button>
</template>
<!-- 工程类型 -->
<template slot="proType" slot-scope="{ data }">
<el-tag size="mini" type="primary">
@ -123,6 +134,17 @@ export default {
return 'primary' || ''
},
//
onHandleExport(queryParams) {
// this.download(
// '/bmw/projectStatistics/exportProjectStatisticsTable',
// {
// // ...queryParams,
// },
// '.xlsx',
// )
},
},
}
</script>

View File

@ -9,6 +9,17 @@
:columnsList="columnsList"
:request-api="getSubCountListAPI"
>
<template slot="btn" slot-scope="{ queryParams }">
<el-button
plain
size="mini"
type="success"
icon="el-icon-download"
@click="onHandleExport(queryParams)"
>
导出
</el-button>
</template>
<template slot="handle" slot-scope="{ data }">
<el-button
plain
@ -57,6 +68,17 @@ export default {
},
})
},
//
onHandleExport(queryParams) {
// this.download(
// '/bmw/subStatistics/exportSubStatisticsTable',
// {
// // ...queryParams,
// },
// '.xlsx',
// )
},
},
}
</script>

View File

@ -280,6 +280,7 @@ export default {
return {
deductMoney: item.deductMoney,
actualMoney: item.actualMoney,
monthId: item.monthId,
}
})