Commit 9832fe5992838680d8cb3128603bdd7b8bd89276
1 parent
ceeeec1c
vue3:测试 operatelog 模块,导出需要优化
Showing
1 changed file
with
3 additions
and
1 deletions
yudao-ui-admin-vue3/src/views/system/operatelog/index.vue
| @@ -61,6 +61,7 @@ const { gridOptions } = useVxeGrid<OperateLogApi.OperateLogVO>({ | @@ -61,6 +61,7 @@ const { gridOptions } = useVxeGrid<OperateLogApi.OperateLogVO>({ | ||
| 61 | allSchemas: allSchemas, | 61 | allSchemas: allSchemas, |
| 62 | getListApi: OperateLogApi.getOperateLogPageApi | 62 | getListApi: OperateLogApi.getOperateLogPageApi |
| 63 | }) | 63 | }) |
| 64 | + | ||
| 64 | // 弹窗相关的变量 | 65 | // 弹窗相关的变量 |
| 65 | const dialogVisible = ref(false) // 是否显示弹出层 | 66 | const dialogVisible = ref(false) // 是否显示弹出层 |
| 66 | const dialogTitle = ref('edit') // 弹出层标题 | 67 | const dialogTitle = ref('edit') // 弹出层标题 |
| @@ -74,10 +75,11 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => { | @@ -74,10 +75,11 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => { | ||
| 74 | } | 75 | } |
| 75 | 76 | ||
| 76 | // 导出操作 | 77 | // 导出操作 |
| 78 | +// TODO @星语:导出需要有二次确认哈 | ||
| 77 | const handleExport = async () => { | 79 | const handleExport = async () => { |
| 78 | const queryParams = Object.assign( | 80 | const queryParams = Object.assign( |
| 79 | {}, | 81 | {}, |
| 80 | - JSON.parse(JSON.stringify(xGrid.value?.getRefMaps().refForm.value.data)) | 82 | + JSON.parse(JSON.stringify(xGrid.value?.getRefMaps().refForm.value.data)) // TODO @星语:这个有没办法,封装个 util 获取哈? |
| 81 | ) | 83 | ) |
| 82 | const res = await OperateLogApi.exportOperateLogApi(queryParams) | 84 | const res = await OperateLogApi.exportOperateLogApi(queryParams) |
| 83 | download.excel(res, '岗位列表.xls') | 85 | download.excel(res, '岗位列表.xls') |