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 | 61 | allSchemas: allSchemas, |
| 62 | 62 | getListApi: OperateLogApi.getOperateLogPageApi |
| 63 | 63 | }) |
| 64 | + | |
| 64 | 65 | // 弹窗相关的变量 |
| 65 | 66 | const dialogVisible = ref(false) // 是否显示弹出层 |
| 66 | 67 | const dialogTitle = ref('edit') // 弹出层标题 |
| ... | ... | @@ -74,10 +75,11 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => { |
| 74 | 75 | } |
| 75 | 76 | |
| 76 | 77 | // 导出操作 |
| 78 | +// TODO @星语:导出需要有二次确认哈 | |
| 77 | 79 | const handleExport = async () => { |
| 78 | 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 | 84 | const res = await OperateLogApi.exportOperateLogApi(queryParams) |
| 83 | 85 | download.excel(res, '岗位列表.xls') | ... | ... |