删除关键字查询
This commit is contained in:
parent
d59bfced6b
commit
be09718ec6
|
|
@ -318,10 +318,17 @@ const onDownloadStatistic = () => {
|
||||||
|
|
||||||
// 下载工作量统计表
|
// 下载工作量统计表
|
||||||
const onDownloadWorkloadSummary = () => {
|
const onDownloadWorkloadSummary = () => {
|
||||||
|
|
||||||
|
// 获取查询表单的日期数据
|
||||||
|
const formData = comTableRef.value?.searchFormRef?.getFormData() || {}
|
||||||
|
const startDate = formData.startDate || dayjs().startOf('month').format('YYYY-MM-DD')
|
||||||
|
const endDate = formData.endDate || dayjs().endOf('month').format('YYYY-MM-DD')
|
||||||
proxy.download(
|
proxy.download(
|
||||||
'/monthlyPlan/exportWorkloadSummary',
|
'/dayPlan/exportWorkloadSummary',
|
||||||
{
|
{
|
||||||
dayPlanType: tableType.value,
|
dayPlanType: tableType.value,
|
||||||
|
startDate,
|
||||||
|
endDate,
|
||||||
},
|
},
|
||||||
`${tableType.value === '1' ? '检修' : '项目部'}统计表.xlsx`,
|
`${tableType.value === '1' ? '检修' : '项目部'}统计表.xlsx`,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue