diff --git a/src/views/systemManagement/accountManagement/index.vue b/src/views/systemManagement/accountManagement/index.vue index 65218ef..64f6f84 100644 --- a/src/views/systemManagement/accountManagement/index.vue +++ b/src/views/systemManagement/accountManagement/index.vue @@ -73,8 +73,8 @@ const getDeptData = async () => { const res: any = await getDeptManageList({ baseName: "", deptCode: "", - pageNum: 1, - pageSize: 20 + pageNum: pagination.currentPage, + pageSize: pagination.pageSize }); if (res.code === 200) { deptOptions.value = res.data.records; @@ -180,6 +180,9 @@ const deptOptions = ref([]); const changeStatus = item => { seachForm.status = item.id; search(); + if (seachForm.status === "1") { + getDeptData(); + } }; const handleView = async (value: any, type: string) => { console.log(value); @@ -220,7 +223,13 @@ function onCurrentChange(page: number) { // console.log("onCurrentChange", page); pagination.currentPage = page; pagination.pageSize = 10; - getUserTableData(); + if (seachForm.status === "1") { + getUserTableData(); + } else if (seachForm.status === "2") { + getDeptData(); + } else { + getRoleTableData(); + } } const submitForm = (formEl: FormInstance | undefined) => { if (!formEl) return;