From 4778ead7c22d3a497f87ab155929b4a5ba08b6d5 Mon Sep 17 00:00:00 2001
From: dap <15891557205@163.com>
Date: Mon, 9 Dec 2024 09:57:27 +0800
Subject: [PATCH 1/7] =?UTF-8?q?chore:=20gitee=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apps/web-antd/src/layouts/basic.vue | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue
index b574fff0..f8ac1e0c 100644
--- a/apps/web-antd/src/layouts/basic.vue
+++ b/apps/web-antd/src/layouts/basic.vue
@@ -1,5 +1,5 @@
@@ -168,7 +163,7 @@ function handleDownloadExcel() {
{{ $t('pages.common.export') }}
import type { Recordable } from '@vben/types';
-import { ref } from 'vue';
-
import { useAccess } from '@vben/access';
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
@@ -10,8 +8,8 @@ import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
- tableCheckboxEvent,
useVbenVxeGrid,
+ vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -70,14 +68,9 @@ const gridOptions: VxeGridProps = {
id: 'system-client-index',
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
const [ClientDrawer, drawerApi] = useVbenDrawer({
@@ -109,7 +102,6 @@ function handleMultiDelete() {
onOk: async () => {
await clientRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -133,7 +125,7 @@ const { hasAccessByCodes } = useAccess();
{{ $t('pages.common.export') }}
import type { Recordable } from '@vben/types';
-import { ref } from 'vue';
-
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
- tableCheckboxEvent,
useVbenVxeGrid,
+ vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -72,14 +70,9 @@ const gridOptions: VxeGridProps = {
id: 'system-config-index',
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
const [ConfigModal, modalApi] = useVbenModal({
connectedComponent: configModal,
@@ -110,7 +103,6 @@ function handleMultiDelete() {
onOk: async () => {
await configRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -140,7 +132,7 @@ async function handleRefreshCache() {
{{ $t('pages.common.export') }}
{
await dictDataRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -142,7 +136,7 @@ emitter.on('rowClick', async (value) => {
{{ $t('pages.common.export') }}
{
await dictTypeRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -152,7 +148,7 @@ function handleDownloadExcel() {
{{ $t('pages.common.export') }}
import type { Recordable } from '@vben/types';
-import { ref } from 'vue';
-
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
- tableCheckboxEvent,
useVbenVxeGrid,
+ vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import { noticeList, noticeRemove } from '#/api/system/notice';
@@ -60,14 +58,9 @@ const gridOptions: VxeGridProps = {
id: 'system-notice-index',
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
const [NoticeModal, modalApi] = useVbenModal({
@@ -99,7 +92,6 @@ function handleMultiDelete() {
onOk: async () => {
await noticeRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -111,7 +103,7 @@ function handleMultiDelete() {
import type { Recordable } from '@vben/types';
-import { ref } from 'vue';
-
import { useAccess } from '@vben/access';
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
@@ -10,8 +8,8 @@ import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
- tableCheckboxEvent,
useVbenVxeGrid,
+ vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -66,14 +64,9 @@ const gridOptions: VxeGridProps = {
id: 'system-oss-config-index',
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
const [OssConfigDrawer, drawerApi] = useVbenDrawer({
@@ -105,7 +98,6 @@ function handleMultiDelete() {
onOk: async () => {
await ossConfigRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -119,7 +111,7 @@ const { hasAccessByCodes } = useAccess();
{
tableApi.query();
},
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
},
});
@@ -172,7 +169,7 @@ const [FileUploadModal, fileUploadApi] = useVbenModal({
配置管理
{
await postRemove(ids);
await tableApi.query();
- checked.value = false;
},
});
}
@@ -146,7 +140,7 @@ function handleDownloadExcel() {
{{ $t('pages.common.export') }}
import type { Recordable } from '@vben/types';
-import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
@@ -10,8 +9,8 @@ import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
- tableCheckboxEvent,
useVbenVxeGrid,
+ vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -69,14 +68,9 @@ const gridOptions: VxeGridProps = {
id: 'system-role-assign-index',
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
const [RoleAssignDrawer, drawerApi] = useVbenDrawer({
@@ -109,7 +103,6 @@ function handleMultipleAuthCancel() {
onOk: async () => {
await roleAuthCancelAll(roleId, ids);
await tableApi.query();
- checked.value = false;
tableApi.grid.clearCheckboxRow();
},
});
@@ -122,7 +115,7 @@ function handleMultipleAuthCancel() {
-import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
-import {
- tableCheckboxEvent,
- useVbenVxeGrid,
- type VxeGridProps,
-} from '#/adapter/vxe-table';
+import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import { roleSelectAll, roleUnallocatedList } from '#/api/system/role';
import { columns, querySchema } from './data';
@@ -62,14 +57,9 @@ const gridOptions: VxeGridProps = {
},
};
-const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
- gridEvents: {
- checkboxChange: tableCheckboxEvent(checked),
- checkboxAll: tableCheckboxEvent(checked),
- },
});
async function handleSubmit() {
diff --git a/apps/web-antd/src/views/system/role/index.vue b/apps/web-antd/src/views/system/role/index.vue
index f7818cc9..3b280a64 100644
--- a/apps/web-antd/src/views/system/role/index.vue
+++ b/apps/web-antd/src/views/system/role/index.vue
@@ -1,7 +1,7 @@
@@ -163,7 +162,7 @@ function isChecked() {
{{ $t('pages.common.export') }}
Date: Wed, 11 Dec 2024 11:35:16 +0800
Subject: [PATCH 7/7] chore: version
---
apps/web-antd/package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json
index 4490d136..d303cf5e 100644
--- a/apps/web-antd/package.json
+++ b/apps/web-antd/package.json
@@ -1,6 +1,6 @@
{
"name": "@vben/web-antd",
- "version": "1.1.2",
+ "version": "1.1.3",
"homepage": "https://vben.pro",
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
"repository": {