1. 将 BasePage 重命名为 PageParam

2. 增加代码注释
3. 调整 menu 重置表单的逻辑,避免写 2 遍 null 的数据
This commit is contained in:
YunaiV 2022-11-13 18:39:19 +08:00
parent 08c772fede
commit c6a445c487
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ const { gridOptions } = useVxeGrid<LoginLogVO>({
allSchemas: allSchemas, allSchemas: allSchemas,
getListApi: getLoginLogPageApi getListApi: getLoginLogPageApi
}) })
// //
const detailRef = ref() // Ref const detailRef = ref() // Ref
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
@ -54,6 +55,7 @@ const handleDetail = async (row: LoginLogVO) => {
detailRef.value = row detailRef.value = row
dialogVisible.value = true dialogVisible.value = true
} }
// //
const handleExport = async () => { const handleExport = async () => {
const queryParams = Object.assign( const queryParams = Object.assign(

View File

@ -43,6 +43,7 @@ const { gridOptions } = useVxeGrid<TokenApi.OAuth2TokenVO>({
allSchemas: allSchemas, allSchemas: allSchemas,
getListApi: TokenApi.getAccessTokenPageApi getListApi: TokenApi.getAccessTokenPageApi
}) })
// ========== ========== // ========== ==========
const detailRef = ref() // Ref const detailRef = ref() // Ref
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
@ -53,6 +54,7 @@ const handleDetail = async (row: TokenApi.OAuth2TokenVO) => {
detailRef.value = row detailRef.value = row
dialogVisible.value = true dialogVisible.value = true
} }
// 退 // 退
const handleForceLogout = (rowId: number) => { const handleForceLogout = (rowId: number) => {
message message