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