diff --git a/src/components/common/BaseTable.vue b/src/components/common/BaseTable.vue index 504c73bc..8bff27dc 100644 --- a/src/components/common/BaseTable.vue +++ b/src/components/common/BaseTable.vue @@ -99,7 +99,6 @@ const pagination = computed(() => ({ })); const changePagination = (e) => { params.value[props.pageKey] = e; - emit("update:params", { ...params.value }); nextTick(onFetch); }; diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 01c17440..1128dbff 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -33,7 +33,7 @@
@@ -76,7 +76,7 @@ border: 1px solid #f0f0f0; "> @@ -131,8 +131,8 @@
-
@@ -397,8 +397,6 @@ const stuTreeSelectKeys = ref([]); const stuTreeExpandedKeys = ref([]); const audienceName = ref({ keyword: "", - page: 1, - pageSize: 10, }); const searchOrgName = ref({ keyword: "", @@ -550,7 +548,7 @@ const closeDrawer = () => { }; function searchAudi() { - auditTableRef.value.fetch(); + auditTableRef.value.reset(audienceName.value); } function onLoadData(treeNode) { @@ -579,8 +577,7 @@ const openDrawer = () => { }; function onSearchStu() { - nameSearch.value.page = 1; - stuTableRef.value.fetch(); + stuTableRef.value.reset(nameSearch.value); } function stuStuOrgSelect(e) { @@ -617,7 +614,7 @@ const deleteDepSelect = () => { }; //重置组织 const resetOrg = () => { - searchOrgName.value = { keyword: "", page: 1, pageSize: 10 }; + searchOrgName.value = { keyword: "" }; }; //重置受众 const resetAudienceInfo = () => {