From 1606e1b7fe21ad19eed19e623fbca970ba06eb5f Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Thu, 31 Oct 2024 11:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=E3=80=90?= =?UTF-8?q?=E5=85=B1=E6=80=A7=E9=97=AE=E9=A2=98=E3=80=91=EF=BC=9A=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=AC=AC2=E9=A1=B5=E6=9F=90=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=9B=E8=A1=8C=E4=BB=A5=E4=B8=8A=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=EF=BC=8C=E9=A1=B5=E9=9D=A2=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E5=81=9C=E7=95=99=E5=9C=A8=E7=AC=AC2=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/typings/props.d.ts | 2 +- .../userManage/classManage/components/formClass/index.vue | 2 +- .../classManage/components/formTeacher/index.vue | 2 +- SafeCampus.WEB/src/views/userManage/classManage/index.vue | 3 ++- SafeCampus.WEB/src/views/userManage/clothing/index.vue | 2 +- .../src/views/userManage/department/components/form.vue | 8 ++++---- SafeCampus.WEB/src/views/userManage/department/index.vue | 3 ++- .../views/userManage/dormitory/components/form/index.vue | 2 +- .../dormitory/components/formDormitory/index.vue | 8 ++++---- SafeCampus.WEB/src/views/userManage/dormitory/index.vue | 3 ++- .../userManage/keyPersonnel/components/form/index.vue | 2 +- .../src/views/userManage/keyPersonnel/index.vue | 3 ++- .../src/views/userManage/major/components/form.vue | 6 +++--- SafeCampus.WEB/src/views/userManage/major/index.vue | 3 ++- .../views/userManage/personnel/components/form/index.vue | 2 +- SafeCampus.WEB/src/views/userManage/personnel/index.vue | 4 ++-- 16 files changed, 30 insertions(+), 25 deletions(-) diff --git a/SafeCampus.WEB/src/typings/props.d.ts b/SafeCampus.WEB/src/typings/props.d.ts index 64e1db2..380313c 100644 --- a/SafeCampus.WEB/src/typings/props.d.ts +++ b/SafeCampus.WEB/src/typings/props.d.ts @@ -31,6 +31,6 @@ declare namespace FormProps { treeAllData?: Array; records?: Array; /** 表单布局 */ - successful?: () => void; + successful?: (init?: any) => void; } } diff --git a/SafeCampus.WEB/src/views/userManage/classManage/components/formClass/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/components/formClass/index.vue index 53fe543..ea72ba7 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/components/formClass/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/components/formClass/index.vue @@ -98,7 +98,7 @@ async function handleSubmit() { .add(sysUserProps.record) .then(() => { ElMessage.success("新增成功"); - sysUserProps.successful!(); //调用父组件的successful方法 + sysUserProps.successful!(true); //调用父组件的successful方法 }) .finally(() => { onClose(); diff --git a/SafeCampus.WEB/src/views/userManage/classManage/components/formTeacher/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/components/formTeacher/index.vue index 4e1baff..c2772e5 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/components/formTeacher/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/components/formTeacher/index.vue @@ -96,7 +96,7 @@ async function handleSubmit() { await userManageTeacherApi .add(sysUserProps.record) .then(() => { - sysUserProps.successful!(); //调用父组件的successful方法 + sysUserProps.successful!(true); //调用父组件的successful方法 }) .finally(() => { onClose(); diff --git a/SafeCampus.WEB/src/views/userManage/classManage/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/index.vue index ee866e7..a246713 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/index.vue @@ -144,7 +144,8 @@ const formRefC = ref | null>(null); } // 刷新表格 -const RefreshTable = () => { +const RefreshTable = (init: boolean = false) => { + if(init)proTable.value!.pageable.pageNum = 1 proTable.value?.refresh(); } diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue index 6ee6956..1664063 100644 --- a/SafeCampus.WEB/src/views/userManage/clothing/index.vue +++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue @@ -36,7 +36,7 @@
- +