--fix bug

This commit is contained in:
yuping
2023-03-20 23:36:19 +08:00
parent 664f9f3dec
commit 4bf43cf4b7
3 changed files with 8 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ const pagination = computed(() => ({
})); }));
const changePagination = (e) => { const changePagination = (e) => {
params.value[props.pageKey] = e; params.value[props.pageKey] = e;
onFetch(); nextTick(onFetch);
}; };
function reset(v = {}) { function reset(v = {}) {

View File

@@ -435,6 +435,10 @@ const props = defineProps({
type: Array, type: Array,
default: () => [], default: () => [],
}, },
params: {
type: Object,
default: () => ({}),
},
}); });
const { loading: stuAsyncLoading, start } = useAsyncStu(props.id, props.type, getStuList); const { loading: stuAsyncLoading, start } = useAsyncStu(props.id, props.type, getStuList);
@@ -559,9 +563,11 @@ const tableParam = ref({
studentDepartName: null, //部门名称 studentDepartName: null, //部门名称
topFlag: null, //是否是优秀学员 topFlag: null, //是否是优秀学员
pageNo: 1, pageNo: 1,
status: 1,
pageSize: 10, pageSize: 10,
type: props.type, type: props.type,
pid: props.id, pid: props.id,
...props.params
}); });
const checkgroupParam = ref({ const checkgroupParam = ref({

View File

@@ -1250,6 +1250,7 @@
<TableStudent <TableStudent
:type="3" :type="3"
:id="offcoursePlanId" :id="offcoursePlanId"
:params="{status:1}"
:columns="stuColumns" :columns="stuColumns"
:visable="sm_hs" :visable="sm_hs"
:permissions="permissions" :permissions="permissions"