From 9ec5849102d89c64a8aec5009e17a4e19897baab Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Mon, 16 Dec 2024 10:42:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/menu/index.vue | 4 ++-- .../system/menu/{MenuModal.vue => menu-form.vue} | 0 apps/web-antd/src/views/system/post/index.vue | 12 ++---------- .../system/post/{PostModal.vue => post-form.vue} | 0 4 files changed, 4 insertions(+), 12 deletions(-) rename apps/web-antd/src/views/system/menu/{MenuModal.vue => menu-form.vue} (100%) rename apps/web-antd/src/views/system/post/{PostModal.vue => post-form.vue} (100%) diff --git a/apps/web-antd/src/views/system/menu/index.vue b/apps/web-antd/src/views/system/menu/index.vue index 6340b722..3ba969cd 100644 --- a/apps/web-antd/src/views/system/menu/index.vue +++ b/apps/web-antd/src/views/system/menu/index.vue @@ -11,7 +11,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { getMenuList, type MenuVO } from '#/api/system/menu'; import { columns, formSchema } from './menu.data'; -import MenuModal from './MenuModal.vue'; +import MenuForm from './menu-form.vue'; defineOptions({ name: 'SystemMenu' }); @@ -55,7 +55,7 @@ const gridOptions: VxeGridProps = { const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions }); const [FormModal, formModalApi] = useVbenModal({ - connectedComponent: MenuModal, + connectedComponent: MenuForm, }); function handleCreate() { diff --git a/apps/web-antd/src/views/system/menu/MenuModal.vue b/apps/web-antd/src/views/system/menu/menu-form.vue similarity index 100% rename from apps/web-antd/src/views/system/menu/MenuModal.vue rename to apps/web-antd/src/views/system/menu/menu-form.vue diff --git a/apps/web-antd/src/views/system/post/index.vue b/apps/web-antd/src/views/system/post/index.vue index e0e29ab6..371032c9 100644 --- a/apps/web-antd/src/views/system/post/index.vue +++ b/apps/web-antd/src/views/system/post/index.vue @@ -12,7 +12,7 @@ import { exportPost, getPostPage, type PostVO } from '#/api/system/post'; import { ActionButtons, IconEnum } from '#/components/action-buttons'; import { columns, formSchema } from './post.data'; -import PostModal from './PostModal.vue'; +import PostForm from './post-form.vue'; defineOptions({ name: 'SystemPost' }); @@ -51,7 +51,7 @@ const gridOptions: VxeGridProps = { const [Grid, tableApi] = useVbenVxeGrid({ formOptions, gridOptions }); const [FormModal, formModalApi] = useVbenModal({ - connectedComponent: PostModal, + connectedComponent: PostForm, }); function handleCreate() { @@ -93,14 +93,6 @@ async function handleExport() { auth: ['system:post:export'], onClick: handleExport.bind(null), }, - { - label: $t('page.action.delete'), - icon: IconEnum.DELETE, - class: - 'bg-red-500 text-white border-red-400 hover:bg-red-400 hover:!text-white hover:!border-red-400 active:!bg-red-600 active:!text-white active:!border-red-600', - auth: ['system:post:delete'], - onClick: handleDelete.bind(null, 1), - }, ]" /> diff --git a/apps/web-antd/src/views/system/post/PostModal.vue b/apps/web-antd/src/views/system/post/post-form.vue similarity index 100% rename from apps/web-antd/src/views/system/post/PostModal.vue rename to apps/web-antd/src/views/system/post/post-form.vue