|
@@ -337,12 +337,17 @@ export default {
|
|
|
},
|
|
|
updateStepLevel(curStep, { curLevel, manualScore = 0 }, count = 1) {
|
|
|
if (curStep.type === "done") {
|
|
|
- if (!manualScore) return;
|
|
|
-
|
|
|
const spos = this.steps.otherStep.findIndex(
|
|
|
item => item.type === "manualScore"
|
|
|
);
|
|
|
- this.steps.otherStep[spos].count += count;
|
|
|
+ if (this.curPaper.manualScore && !manualScore) {
|
|
|
+ this.steps.otherStep[spos].count -= count;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!this.curPaper.manualScore && manualScore) {
|
|
|
+ this.steps.otherStep[spos].count += count;
|
|
|
+ }
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
|