From 9832fe5992838680d8cb3128603bdd7b8bd89276 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 13 Nov 2022 18:55:31 +0800 Subject: [PATCH] vue3:测试 operatelog 模块,导出需要优化 --- yudao-ui-admin-vue3/src/views/system/operatelog/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/views/system/operatelog/index.vue b/yudao-ui-admin-vue3/src/views/system/operatelog/index.vue index a944367..43ebfc8 100644 --- a/yudao-ui-admin-vue3/src/views/system/operatelog/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/operatelog/index.vue @@ -61,6 +61,7 @@ const { gridOptions } = useVxeGrid({ allSchemas: allSchemas, getListApi: OperateLogApi.getOperateLogPageApi }) + // 弹窗相关的变量 const dialogVisible = ref(false) // 是否显示弹出层 const dialogTitle = ref('edit') // 弹出层标题 @@ -74,10 +75,11 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => { } // 导出操作 +// TODO @星语:导出需要有二次确认哈 const handleExport = async () => { 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) download.excel(res, '岗位列表.xls') -- libgit2 0.21.4