vue3:测试 operatelog 模块,导出需要优化

This commit is contained in:
YunaiV 2022-11-13 18:55:31 +08:00
parent ceeeec1cfd
commit 9832fe5992

View File

@ -61,6 +61,7 @@ const { gridOptions } = useVxeGrid<OperateLogApi.OperateLogVO>({
allSchemas: allSchemas, allSchemas: allSchemas,
getListApi: OperateLogApi.getOperateLogPageApi getListApi: OperateLogApi.getOperateLogPageApi
}) })
// //
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const dialogTitle = ref('edit') // const dialogTitle = ref('edit') //
@ -74,10 +75,11 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => {
} }
// //
// TODO @
const handleExport = async () => { const handleExport = async () => {
const queryParams = Object.assign( const queryParams = Object.assign(
{}, {},
JSON.parse(JSON.stringify(xGrid.value?.getRefMaps().refForm.value.data)) JSON.parse(JSON.stringify(xGrid.value?.getRefMaps().refForm.value.data)) // TODO @ util
) )
const res = await OperateLogApi.exportOperateLogApi(queryParams) const res = await OperateLogApi.exportOperateLogApi(queryParams)
download.excel(res, '岗位列表.xls') download.excel(res, '岗位列表.xls')