diff --git a/src/components/common/BaseTable.vue b/src/components/common/BaseTable.vue index 5cc1f2b2..8bff27dc 100644 --- a/src/components/common/BaseTable.vue +++ b/src/components/common/BaseTable.vue @@ -99,7 +99,7 @@ const pagination = computed(() => ({ })); const changePagination = (e) => { params.value[props.pageKey] = e; - onFetch(); + nextTick(onFetch); }; function reset(v = {}) { diff --git a/src/components/student/TableStudent.vue b/src/components/student/TableStudent.vue index c66686db..8a3bd172 100644 --- a/src/components/student/TableStudent.vue +++ b/src/components/student/TableStudent.vue @@ -435,6 +435,10 @@ const props = defineProps({ type: Array, default: () => [], }, + params: { + type: Object, + default: () => ({}), + }, }); const { loading: stuAsyncLoading, start } = useAsyncStu(props.id, props.type, getStuList); @@ -559,9 +563,11 @@ const tableParam = ref({ studentDepartName: null, //部门名称 topFlag: null, //是否是优秀学员 pageNo: 1, + status: 1, pageSize: 10, type: props.type, pid: props.id, + ...props.params }); const checkgroupParam = ref({ diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index b1367040..1f8a7b53 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -1250,6 +1250,7 @@