|
@@ -342,13 +342,14 @@ export default {
|
|
if (!isRepeat) this.cacheUpdateLevelInfos = nextCacheUpdateLevelInfos;
|
|
if (!isRepeat) this.cacheUpdateLevelInfos = nextCacheUpdateLevelInfos;
|
|
return isRepeat;
|
|
return isRepeat;
|
|
},
|
|
},
|
|
- updateStepLevel(curStep, curLevel, count) {
|
|
|
|
|
|
+ updateStepLevel(curStep, curLevel, count, paperIds) {
|
|
if (
|
|
if (
|
|
this.checkStepActionIsRepeat({
|
|
this.checkStepActionIsRepeat({
|
|
curStepType: curStep.type,
|
|
curStepType: curStep.type,
|
|
curStepName: curStep.name,
|
|
curStepName: curStep.name,
|
|
curLevel,
|
|
curLevel,
|
|
- count
|
|
|
|
|
|
+ count,
|
|
|
|
+ paperIds
|
|
})
|
|
})
|
|
)
|
|
)
|
|
return;
|
|
return;
|
|
@@ -432,8 +433,9 @@ export default {
|
|
const multipleGradingListCount = this.multipleGradingList.length;
|
|
const multipleGradingListCount = this.multipleGradingList.length;
|
|
|
|
|
|
let result = true;
|
|
let result = true;
|
|
|
|
+ const paperIds = this.multipleGradingList.map(item => item.id).join();
|
|
await paperSelectLevelBatch(
|
|
await paperSelectLevelBatch(
|
|
- this.multipleGradingList.map(item => item.id).join(), // is taskId
|
|
|
|
|
|
+ paperIds, // is taskId
|
|
level.name,
|
|
level.name,
|
|
"LEVEL"
|
|
"LEVEL"
|
|
).catch(() => {
|
|
).catch(() => {
|
|
@@ -445,7 +447,12 @@ export default {
|
|
|
|
|
|
this.multipleGradingList = [];
|
|
this.multipleGradingList = [];
|
|
// this.getStepLevels();
|
|
// this.getStepLevels();
|
|
- this.updateStepLevel(this.curStep, level.name, multipleGradingListCount);
|
|
|
|
|
|
+ this.updateStepLevel(
|
|
|
|
+ this.curStep,
|
|
|
|
+ level.name,
|
|
|
|
+ multipleGradingListCount,
|
|
|
|
+ paperIds
|
|
|
|
+ );
|
|
|
|
|
|
// update paper list
|
|
// update paper list
|
|
if (
|
|
if (
|
|
@@ -532,13 +539,14 @@ export default {
|
|
this.updateStepLevel(
|
|
this.updateStepLevel(
|
|
{ type: "done", name: this.curPaper.level },
|
|
{ type: "done", name: this.curPaper.level },
|
|
level.name,
|
|
level.name,
|
|
- 1
|
|
|
|
|
|
+ 1,
|
|
|
|
+ this.curPaper.id
|
|
);
|
|
);
|
|
|
|
|
|
this.$refs.CarouselPapersPreview.cancel();
|
|
this.$refs.CarouselPapersPreview.cancel();
|
|
this.$refs.MarkerHistory.updatePapers();
|
|
this.$refs.MarkerHistory.updatePapers();
|
|
} else {
|
|
} else {
|
|
- this.updateStepLevel(this.curStep, level.name, 1);
|
|
|
|
|
|
+ this.updateStepLevel(this.curStep, level.name, 1, this.curPaper.id);
|
|
this.toActionNextPaper();
|
|
this.toActionNextPaper();
|
|
}
|
|
}
|
|
},
|
|
},
|