|
@@ -238,8 +238,8 @@ export default {
|
|
|
default: false,
|
|
|
},
|
|
|
studentPaperId: {
|
|
|
- type: Number,
|
|
|
- default: 0,
|
|
|
+ type: [String, Number],
|
|
|
+ default: "",
|
|
|
},
|
|
|
markTaskId: {
|
|
|
type: Number,
|
|
@@ -317,7 +317,7 @@ export default {
|
|
|
},
|
|
|
itemClass() {
|
|
|
var itemClass = [];
|
|
|
- for (let resultItem of this.resultItems) {
|
|
|
+ for (let resultItem of this.resultItemsData) {
|
|
|
if (resultItem.score.length == 0) {
|
|
|
itemClass.push(false);
|
|
|
} else {
|
|
@@ -328,7 +328,7 @@ export default {
|
|
|
},
|
|
|
totalScore() {
|
|
|
var totalScore = 0;
|
|
|
- for (let resultItem of this.resultItems) {
|
|
|
+ for (let resultItem of this.resultItemsData) {
|
|
|
if (resultItem.score.length == 0) {
|
|
|
totalScore = this.accAdd(totalScore, 0);
|
|
|
} else {
|
|
@@ -373,6 +373,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ markedResult: {
|
|
|
+ immediate: false,
|
|
|
+ handler(val) {
|
|
|
+ this.markedResultData = JSON.parse(JSON.stringify(val));
|
|
|
+ },
|
|
|
+ },
|
|
|
+ signScores: {
|
|
|
+ immediate: false,
|
|
|
+ handler(val) {
|
|
|
+ this.signScoresData = JSON.parse(JSON.stringify(val));
|
|
|
+ },
|
|
|
+ },
|
|
|
+ signOption: {
|
|
|
+ immediate: false,
|
|
|
+ handler(val) {
|
|
|
+ this.signOptionData = JSON.parse(JSON.stringify(val));
|
|
|
+ },
|
|
|
+ },
|
|
|
signItem(val) {
|
|
|
this.tmpSignItem = val;
|
|
|
},
|
|
@@ -407,13 +425,13 @@ export default {
|
|
|
processTagPaper() {
|
|
|
if (!this.markedResultData.id) {
|
|
|
if (this.unusualType) {
|
|
|
- for (let resultItem of this.resultItems) {
|
|
|
+ for (let resultItem of this.resultItemsData) {
|
|
|
resultItem.score = 0;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (this.markedResultData.tag) {
|
|
|
- for (let resultItem of this.resultItems) {
|
|
|
+ for (let resultItem of this.resultItemsData) {
|
|
|
resultItem.score = 0;
|
|
|
}
|
|
|
}
|
|
@@ -444,7 +462,7 @@ export default {
|
|
|
},
|
|
|
itemClick(id, event, order) {
|
|
|
this.markTypeView = true;
|
|
|
- this.resultItems.find((value, index) => {
|
|
|
+ this.resultItemsData.find((value, index) => {
|
|
|
if (value.markItem.id === id) {
|
|
|
this.maxScore = value.markItem.maxScore;
|
|
|
this.markItemId = value.markItem.id;
|