|
@@ -104,7 +104,7 @@
|
|
<span style="color: #2db7f5">{{ getTotalScore(row.data) }}</span>
|
|
<span style="color: #2db7f5">{{ getTotalScore(row.data) }}</span>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row }" slot="name">
|
|
<template slot-scope="{ row }" slot="name">
|
|
- <span @click="showStuReport(row)" style="color: #2db7f5; cursor: pointer" :title="row.id">{{ row.name }}</span>
|
|
|
|
|
|
+ <span @click="showStuReport(row)" style="float: left; color: #2db7f5; cursor: pointer; font-size: large; font-weight: 600;" :title="row.id">{{ row.no }}. {{ row.name }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 1: 未作答 2:未评分 3:已评分 4:缺考 5:补考中 -->
|
|
<!-- 1: 未作答 2:未评分 3:已评分 4:缺考 5:补考中 -->
|
|
<template slot-scope="{ row, index }" slot="status">
|
|
<template slot-scope="{ row, index }" slot="status">
|
|
@@ -755,8 +755,8 @@
|
|
if(course){
|
|
if(course){
|
|
course.groupLists.forEach(item =>{
|
|
course.groupLists.forEach(item =>{
|
|
this.groupSelectData.push({name: item.name, id: item.id});
|
|
this.groupSelectData.push({name: item.name, id: item.id});
|
|
- })
|
|
|
|
- this.examIdForMark = course.examId;
|
|
|
|
|
|
+ })
|
|
|
|
+ this.examIdForMark = course.examId === null ? course.examId : "";
|
|
this.subjectIdForMark = course.subjectId;
|
|
this.subjectIdForMark = course.subjectId;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -768,7 +768,7 @@
|
|
this.chooseTarget.push(this.groupSelectValue);
|
|
this.chooseTarget.push(this.groupSelectValue);
|
|
this.targetChange(this.chooseTarget);
|
|
this.targetChange(this.chooseTarget);
|
|
},
|
|
},
|
|
- showStuReport(data) {
|
|
|
|
|
|
+ showStuReport(data) {
|
|
console.log(data);
|
|
console.log(data);
|
|
// 学生未作答,不能查看
|
|
// 学生未作答,不能查看
|
|
if (data.status === 1) {
|
|
if (data.status === 1) {
|
|
@@ -942,32 +942,40 @@
|
|
*/
|
|
*/
|
|
checkScoreSave(fn) {
|
|
checkScoreSave(fn) {
|
|
if (this.$refs["byStuMark"]?.isUpd || this.$refs["byQuMark"]?.isUpd) {
|
|
if (this.$refs["byStuMark"]?.isUpd || this.$refs["byQuMark"]?.isUpd) {
|
|
- this.$Modal.confirm({
|
|
|
|
- title: this.$t("learnActivity.score.saveScoreTitle"),
|
|
|
|
- content: this.$t("learnActivity.score.saveScoreContent"),
|
|
|
|
- okText: this.$t("learnActivity.mark.yes"),
|
|
|
|
- cancelText: this.$t("learnActivity.mark.no"),
|
|
|
|
- onOk: () => {
|
|
|
|
- if (this.$refs["byStuMark"].isUpd) {
|
|
|
|
- this.$refs["byStuMark"].saveScore();
|
|
|
|
- this.$refs["byStuMark"].isComplete = false;
|
|
|
|
- if (fn) fn();
|
|
|
|
- } else {
|
|
|
|
- this.$refs["byQuMark"].saveScore();
|
|
|
|
- if (fn) fn();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- onCancel: () => {
|
|
|
|
- if (this.$refs["byStuMark"].isUpd) {
|
|
|
|
- this.$refs["byStuMark"].isUpd = false;
|
|
|
|
- this.$refs["byStuMark"].isComplete = false;
|
|
|
|
- if (fn) fn();
|
|
|
|
- } else {
|
|
|
|
- this.$refs["byQuMark"].preSaveList = {};
|
|
|
|
- if (fn) fn();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ // this.$Modal.confirm({
|
|
|
|
+ // title: this.$t("learnActivity.score.saveScoreTitle"),
|
|
|
|
+ // content: this.$t("learnActivity.score.saveScoreContent"),
|
|
|
|
+ // okText: this.$t("learnActivity.mark.yes"),
|
|
|
|
+ // cancelText: this.$t("learnActivity.mark.no"),
|
|
|
|
+ // onOk: () => {
|
|
|
|
+ // if (this.$refs["byStuMark"].isUpd) {
|
|
|
|
+ // this.$refs["byStuMark"].saveScore();
|
|
|
|
+ // this.$refs["byStuMark"].isComplete = false;
|
|
|
|
+ // if (fn) fn();
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$refs["byQuMark"].saveScore();
|
|
|
|
+ // if (fn) fn();
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // onCancel: () => {
|
|
|
|
+ // if (this.$refs["byStuMark"].isUpd) {
|
|
|
|
+ // this.$refs["byStuMark"].isUpd = false;
|
|
|
|
+ // this.$refs["byStuMark"].isComplete = false;
|
|
|
|
+ // if (fn) fn();
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$refs["byQuMark"].preSaveList = {};
|
|
|
|
+ // if (fn) fn();
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ if (this.$refs["byStuMark"] && this.$refs["byStuMark"].isUpd) {
|
|
|
|
+ this.$refs["byStuMark"].saveScore();
|
|
|
|
+ this.$refs["byStuMark"].isComplete = false;
|
|
|
|
+ if (fn) fn();
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs["byQuMark"].saveScore();
|
|
|
|
+ if (fn) fn();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (this.$refs["byStuMark"]) this.$refs["byStuMark"].isComplete = false;
|
|
if (this.$refs["byStuMark"]) this.$refs["byStuMark"].isComplete = false;
|
|
this.$refs["byQuMark"] && (this.$refs["byQuMark"].preSaveList = {});
|
|
this.$refs["byQuMark"] && (this.$refs["byQuMark"].preSaveList = {});
|
|
@@ -976,8 +984,13 @@
|
|
},
|
|
},
|
|
toggleScoreStatus() {
|
|
toggleScoreStatus() {
|
|
this.checkScoreSave(this.handleScoreStatus);
|
|
this.checkScoreSave(this.handleScoreStatus);
|
|
- // 批閱儲存之後刷新資料
|
|
|
|
- this.getStudentAnswer();
|
|
|
|
|
|
+ //批閱儲存之後刷新資料 延遲等待儲存完成
|
|
|
|
+ this.tableLoading = true;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.getStudentAnswer();
|
|
|
|
+ },500)
|
|
|
|
+ //this.getStudentAnswer();
|
|
|
|
+
|
|
},
|
|
},
|
|
handleScoreStatus() {
|
|
handleScoreStatus() {
|
|
this.isMarkView = !this.isMarkView;
|
|
this.isMarkView = !this.isMarkView;
|
|
@@ -1305,6 +1318,7 @@
|
|
minWidth: 80
|
|
minWidth: 80
|
|
};
|
|
};
|
|
this.tableColumn.push(data);
|
|
this.tableColumn.push(data);
|
|
|
|
+ //debugger
|
|
defSocre.push(-1);
|
|
defSocre.push(-1);
|
|
}
|
|
}
|
|
let students = classStu.students;
|
|
let students = classStu.students;
|
|
@@ -1317,7 +1331,7 @@
|
|
let { status, statusText, statusColor } = this.getStatusInfo([], -1);
|
|
let { status, statusText, statusColor } = this.getStatusInfo([], -1);
|
|
score.status = status;
|
|
score.status = status;
|
|
score.statusText = statusText;
|
|
score.statusText = statusText;
|
|
- score.statusColor = statusColor;
|
|
|
|
|
|
+ score.statusColor = statusColor;
|
|
this.studentScore.push(score);
|
|
this.studentScore.push(score);
|
|
}
|
|
}
|
|
this.pageChange(1);
|
|
this.pageChange(1);
|
|
@@ -1448,7 +1462,7 @@
|
|
h(
|
|
h(
|
|
"p",
|
|
"p",
|
|
{
|
|
{
|
|
- class: "table-qu-no"
|
|
|
|
|
|
+ class: this.quNoList[i].disabled === true ? "" : "table-qu-no"
|
|
},
|
|
},
|
|
this.quNoList[i] ? this.quNoList[i].label : ""
|
|
this.quNoList[i] ? this.quNoList[i].label : ""
|
|
),
|
|
),
|
|
@@ -1469,6 +1483,7 @@
|
|
minWidth: 70
|
|
minWidth: 70
|
|
};
|
|
};
|
|
this.tableColumn.push(data);
|
|
this.tableColumn.push(data);
|
|
|
|
+ //debugger
|
|
}
|
|
}
|
|
let ans = [];
|
|
let ans = [];
|
|
for (let i = 0; i < studentAns.studentIds.length; i++) {
|
|
for (let i = 0; i < studentAns.studentIds.length; i++) {
|
|
@@ -1476,6 +1491,7 @@
|
|
let score = {};
|
|
let score = {};
|
|
if (studentAns.studentIds[i] == studentData.students[k].id) {
|
|
if (studentAns.studentIds[i] == studentData.students[k].id) {
|
|
score.name = studentData.students[k].name;
|
|
score.name = studentData.students[k].name;
|
|
|
|
+ score.no = studentData.students[k].no;
|
|
score.type = studentData.students[k].type;
|
|
score.type = studentData.students[k].type;
|
|
score.id = studentAns.studentIds[i];
|
|
score.id = studentAns.studentIds[i];
|
|
score.data = studentAns.studentScores[i];
|
|
score.data = studentAns.studentScores[i];
|
|
@@ -1495,7 +1511,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
score.statusText = statusText;
|
|
score.statusText = statusText;
|
|
- score.statusColor = statusColor;
|
|
|
|
|
|
+ score.statusColor = statusColor;
|
|
this.studentScore.push(score);
|
|
this.studentScore.push(score);
|
|
}
|
|
}
|
|
}
|
|
}
|