|
@@ -187,6 +187,7 @@ export default {
|
|
|
papers: [],
|
|
|
curPaper: {},
|
|
|
curPaperIndex: 0,
|
|
|
+ cacheUpdateLevelInfos: null,
|
|
|
// multiple grading
|
|
|
multiplebtnClicked: false,
|
|
|
multipleGradingList: [],
|
|
@@ -335,7 +336,23 @@ export default {
|
|
|
this.setCurStep(curStep);
|
|
|
}
|
|
|
},
|
|
|
+ checkStepActionIsRepeat(infos) {
|
|
|
+ const nextCacheUpdateLevelInfos = JSON.stringify(infos);
|
|
|
+ const isRepeat = nextCacheUpdateLevelInfos === this.cacheUpdateLevelInfos;
|
|
|
+ if (!isRepeat) this.cacheUpdateLevelInfos = nextCacheUpdateLevelInfos;
|
|
|
+ return isRepeat;
|
|
|
+ },
|
|
|
updateStepLevel(curStep, curLevel, count) {
|
|
|
+ if (
|
|
|
+ this.checkStepActionIsRepeat({
|
|
|
+ curStepType: curStep.type,
|
|
|
+ curStepName: curStep.name,
|
|
|
+ curLevel,
|
|
|
+ count
|
|
|
+ })
|
|
|
+ )
|
|
|
+ return;
|
|
|
+
|
|
|
if (curStep.type === "done") {
|
|
|
const lpos = this.steps.levelStep.findIndex(
|
|
|
item => item.name === curStep.name
|