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 @@
- +