继续优化了官方凭证的学生选择器:
管理员签发弹窗不再全量加载可见学生。 首屏与每次远程搜索最多返回 30 位匹配学生。 搜索范围仍严格遵循学院/校级数据权限。
This commit is contained in:
@@ -94,9 +94,9 @@ async function loadStudents(keyword = '') {
|
||||
if (!isManager.value) return
|
||||
try {
|
||||
const { data } = await http.get('/official-documents/students/options', {
|
||||
params: { keyword: keyword || undefined },
|
||||
params: { keyword: keyword || undefined, page: 1, pageSize: 30 },
|
||||
})
|
||||
students.value = data
|
||||
students.value = data.items
|
||||
} catch (error) {
|
||||
ElMessage.error(apiErrorMessage(error))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user