学员查看成绩没有操作权限的问题修复

This commit is contained in:
2026-09-23 16:41:55 +08:00
parent ad92f4afc9
commit 07ec44e9d4
5 changed files with 38 additions and 5 deletions
@@ -17,6 +17,14 @@ export function listPeriodOptions() {
})
}
// 课程科目下拉选项(kbh 课编号、kmc 课名称),不带教研室权限要求
export function listKbOptions() {
return request({
url: '/student-records/kb-options',
method: 'get'
})
}
// 查询学员信息详情(bh 编号必传)
export function getStudentRecord(bh) {
return request({
+4 -5
View File
@@ -84,9 +84,9 @@ import {
listStudentGrades,
listStudentProcessGrades,
exportStudentGrades,
exportStudentProcessGrades
exportStudentProcessGrades,
listKbOptions
} from "@/api/studentRecords/studentRecords"
import { listKb } from "@/api/teachOffice/kb"
import { listTeam } from "@/api/studentRecords/team"
export default {
@@ -144,9 +144,8 @@ export default {
/** 加载课程名称下拉选项 */
loadKbOptions() {
listKb({ pageNum: 1, pageSize: 1000 }).then(res => {
const data = res.data || {}
this.kbOptions = data.records || []
listKbOptions().then(res => {
this.kbOptions = (res && res.data) || []
}).catch(() => {
this.kbOptions = []
})