From 1947f5c3b63f7df5caf00bfdd5a2f33b90fab647 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sat, 5 Oct 2024 21:30:27 +0800 Subject: [PATCH] chore: oss --- apps/web-antd/src/views/system/oss/index.vue | 52 ++++++++++++-------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/apps/web-antd/src/views/system/oss/index.vue b/apps/web-antd/src/views/system/oss/index.vue index 3b024067..5d20aca2 100644 --- a/apps/web-antd/src/views/system/oss/index.vue +++ b/apps/web-antd/src/views/system/oss/index.vue @@ -27,6 +27,9 @@ import { downloadByData } from '#/utils/file/download'; import { columns, querySchema } from './data'; const formOptions: VbenFormProps = { + commonConfig: { + labelWidth: 80, + }, schema: querySchema(), wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4', }; @@ -78,6 +81,7 @@ const gridOptions: VxeGridProps = { rowConfig: { isHover: true, keyField: 'ossId', + height: 65, }, sortConfig: { remote: true, @@ -87,6 +91,7 @@ const gridOptions: VxeGridProps = { showOverflow: true, }; +const checked = ref(false); const [BasicTable, tableApi] = useVbenVxeGrid({ formOptions, gridOptions, @@ -94,6 +99,12 @@ const [BasicTable, tableApi] = useVbenVxeGrid({ sortChange: () => { tableApi.query(); }, + checkboxChange: (e: any) => { + checked.value = e.records.length > 0; + }, + checkboxAll: (e: any) => { + checked.value = e.records.length > 0; + }, }, }); @@ -161,9 +172,10 @@ function isImageFile(ext: string) { 配置管理 {{ $t('pages.common.delete') }} @@ -180,31 +192,29 @@ function isImageFile(ext: string) { {{ row.url }}