This commit is contained in:
@fawn-nine
2024-09-02 17:15:29 +08:00
parent b3bb29b36a
commit 9f265afa4a
8 changed files with 671 additions and 349 deletions

View File

@@ -459,7 +459,8 @@
},
onShow() {
this.getClassInfo()
this.getScore()
this.getScore()
},
computed: {
...mapState(["userInfo"]),
@@ -478,6 +479,32 @@
}
return _roleName
},
// 查询考试成绩
getPaperScore(){
console.log('获取卷面成绩');
// $http.request({
// url: "common/class/getUserRole",
// method: "POST",
// data: {
// "classId": this.classId
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// })
// .then((res) => {
// uni.hideLoading()
// console.log('res获取身份信息',res);
// this.roleCode = res.result
// }).catch(e => {
// uni.hideLoading()
// this.roleCode = []
// uni.showToast({
// title: '获取身份信息失败',
// icon: 'error'
// })
// });
},
tabList() {
var list = []
if (this.thisClass.state == 0) {
@@ -1050,6 +1077,9 @@
this.getList()
}
var dd = this.getBlankNumber
if(this.thisClass.state == '2'){ // 结班状态下再查询卷面成绩
this.getPaperScore()
}
}
uni.hideLoading()
}).catch(e => {