From b249b117533af295159b5fd770688c92e8db6d97 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 13 Nov 2022 18:57:39 +0800 Subject: [PATCH] =?UTF-8?q?vue3=EF=BC=9A=E6=B5=8B=E8=AF=95=20loginlog=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E5=AF=BC=E5=87=BA=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/views/system/loginlog/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue b/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue index b10e36b43..de6287f6f 100644 --- a/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue @@ -34,6 +34,7 @@ import { ref } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import { useVxeGrid } from '@/hooks/web/useVxeGrid' import { VxeGridInstance } from 'vxe-table' +// 业务相关的 import import { allSchemas } from './loginLog.data' import { getLoginLogPageApi, exportLoginLogApi, LoginLogVO } from '@/api/system/loginLog' import download from '@/utils/download' @@ -50,6 +51,7 @@ const { gridOptions } = useVxeGrid({ const detailRef = ref() // 详情 Ref const dialogVisible = ref(false) // 是否显示弹出层 const dialogTitle = ref(t('action.detail')) // 弹出层标题 +// 详情 const handleDetail = async (row: LoginLogVO) => { // 设置数据 detailRef.value = row @@ -57,10 +59,11 @@ const handleDetail = async (row: LoginLogVO) => { } // 导出操作 +// 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 exportLoginLogApi(queryParams) download.excel(res, '登录列表.xls')