导出接口调试完成

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) { onHandleExport(queryParams) {
// this.download( this.download(
// '/bmw/workerStatistics/exportWorkerList', '/bmw/workerStatistics/exportWorkerStatisticsTable',
// { {
// ...queryParams, // ...queryParams,
// }, },
// '.xlsx', '人员统计.xlsx',
// ) )
}, },
}, },
} }

View File

@ -9,6 +9,17 @@
:columnsList="columnsList" :columnsList="columnsList"
:request-api="getProjectCountListAPI" :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 }"> <template slot="proType" slot-scope="{ data }">
<el-tag size="mini" type="primary"> <el-tag size="mini" type="primary">
@ -123,6 +134,17 @@ export default {
return 'primary' || '' return 'primary' || ''
}, },
//
onHandleExport(queryParams) {
// this.download(
// '/bmw/projectStatistics/exportProjectStatisticsTable',
// {
// // ...queryParams,
// },
// '.xlsx',
// )
},
}, },
} }
</script> </script>

View File

@ -9,6 +9,17 @@
:columnsList="columnsList" :columnsList="columnsList"
:request-api="getSubCountListAPI" :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 }"> <template slot="handle" slot-scope="{ data }">
<el-button <el-button
plain plain
@ -57,6 +68,17 @@ export default {
}, },
}) })
}, },
//
onHandleExport(queryParams) {
// this.download(
// '/bmw/subStatistics/exportSubStatisticsTable',
// {
// // ...queryParams,
// },
// '.xlsx',
// )
},
}, },
} }
</script> </script>

View File

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