From 7fdcacf8af82acc9811d693eaba6a12fbe50266a Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 13 Mar 2025 11:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=BD=E5=B1=89=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConfigSuppliersInfoList.vue | 36 +++-- .../components/ConfigSuppliersInfoModal.vue | 153 ++++++++++-------- 2 files changed, 103 insertions(+), 86 deletions(-) diff --git a/src/views/config/configSuppliersInfo/ConfigSuppliersInfoList.vue b/src/views/config/configSuppliersInfo/ConfigSuppliersInfoList.vue index 55fb341..1bd3d60 100644 --- a/src/views/config/configSuppliersInfo/ConfigSuppliersInfoList.vue +++ b/src/views/config/configSuppliersInfo/ConfigSuppliersInfoList.vue @@ -32,7 +32,7 @@ - + @@ -46,11 +46,14 @@ import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './ConfigSuppliersInfo.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import { useUserStore } from '/@/store/modules/user'; + import { useDrawer } from '/@/components/Drawer'; const queryParam = reactive({}); const checkedKeys = ref>([]); const userStore = useUserStore(); //注册model const [registerModal, {openModal}] = useModal(); + //注册drawer + const [registerDrawer, { openDrawer }] = useDrawer(); //注册table数据 const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({ tableProps:{ @@ -105,30 +108,33 @@ * 新增事件 */ function handleAdd() { - openModal(true, { - isUpdate: false, - showFooter: true, - }); + openDrawer(true, { + isUpdate: false, + showFooter: true, + tenantSaas: false, + }); } /** * 编辑事件 */ function handleEdit(record: Recordable) { - openModal(true, { - record, - isUpdate: true, - showFooter: true, - }); + openDrawer(true, { + record, + isUpdate: true, + showFooter: true, + tenantSaas: false, + }); } /** * 详情 */ function handleDetail(record: Recordable) { - openModal(true, { - record, - isUpdate: true, - showFooter: false, - }); + openDrawer(true, { + record, + isUpdate: true, + showFooter: false, + tenantSaas: false, + }); } /** * 删除事件 diff --git a/src/views/config/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue b/src/views/config/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue index 72f9be3..f841b8f 100644 --- a/src/views/config/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue +++ b/src/views/config/configSuppliersInfo/components/ConfigSuppliersInfoModal.vue @@ -1,76 +1,87 @@ - - - \ No newline at end of file