From 3c6ec2b9e9beb613a4b743df7d75c9603072b8c6 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 24 Feb 2023 20:44:09 +0800 Subject: [PATCH] -- fix bug --- src/api/ThirdApi.js | 4 +++- src/components/student/CommonStudent.vue | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/ThirdApi.js b/src/api/ThirdApi.js index ea5bdc95..788346fc 100644 --- a/src/api/ThirdApi.js +++ b/src/api/ThirdApi.js @@ -1,4 +1,6 @@ -// export const USER_LIST = '/userbasic/user/list post' +//学员列表带分页 +export const USER_LIST_PAGE = '/userbasic/user/list post' +//学员列表 没有分页数据 只能通过名称检索 速度较快 export const USER_LIST = '/userbasic/user/searchList post' export const ORG_LIST = '/userbasic/org/list post' export const ORG_CHILD_LIST = '/userbasic/org/info post' diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 44f51d85..fb10da02 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -295,7 +295,7 @@ import { AUDIENCE_LIST, ORG_CHILD_LIST, ORG_LIST, - USER_LIST, + USER_LIST, USER_LIST_PAGE, } from "@/api/ThirdApi"; import { saveStu, @@ -463,7 +463,7 @@ const { loading: stuLoading, total: stuTotal, reset: stuReset, -} = useBoeApiPage(USER_LIST, nameSearch.value, { +} = useBoeApiPage(USER_LIST_PAGE, nameSearch.value, { init: false, result: (res) => res.result.userInfoList, totalPage: (res) => res.result.totalPage,