Commit 41f6fcc1 by zhaopanyu

zpy 修改选课查看

parent c8e1b51c
......@@ -176,8 +176,11 @@ export default {
//任务名称和人数数据联动
calculateStats() {
const selectedTask = this.taskNameList.find(item => item.curriculaId === this.queryParams.curriculaName);
this.taskStats.total = selectedTask.zrs;
this.taskStats.selected = selectedTask.yxrs;
if (selectedTask && selectedTask.zrs) {
this.taskStats.total = selectedTask.zrs;
} else {
this.taskStats.total = 0;
}
},
//班级下拉框
getClassList(grades) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment