|
@@ -50,6 +50,7 @@
|
|
:cur-paper-or-task="curPaper"
|
|
:cur-paper-or-task="curPaper"
|
|
:levels="levels"
|
|
:levels="levels"
|
|
:user-role="curUserRoleType"
|
|
:user-role="curUserRoleType"
|
|
|
|
+ :show-count="showPaperRelateCount"
|
|
@on-leader-level="gradingCurPaper"
|
|
@on-leader-level="gradingCurPaper"
|
|
@on-select-score="scoreCurPaper"
|
|
@on-select-score="scoreCurPaper"
|
|
@on-pass="passCurPaper"
|
|
@on-pass="passCurPaper"
|
|
@@ -93,12 +94,18 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="part-page" v-if="total > size">
|
|
|
|
|
|
+ <div
|
|
|
|
+ :class="[
|
|
|
|
+ 'part-page',
|
|
|
|
+ { 'part-page-simple': !showPaperRelateCount }
|
|
|
|
+ ]"
|
|
|
|
+ v-if="total > size"
|
|
|
|
+ >
|
|
<Page
|
|
<Page
|
|
:current="current"
|
|
:current="current"
|
|
:total="total"
|
|
:total="total"
|
|
:page-size="size"
|
|
:page-size="size"
|
|
- show-total
|
|
|
|
|
|
+ :show-total="showPaperRelateCount"
|
|
show-elevator
|
|
show-elevator
|
|
:page-size-opts="[4, 6, 8]"
|
|
:page-size-opts="[4, 6, 8]"
|
|
@on-page-size-change="pageSizeChange"
|
|
@on-page-size-change="pageSizeChange"
|
|
@@ -213,6 +220,7 @@ export default {
|
|
papers: [],
|
|
papers: [],
|
|
curPaper: {},
|
|
curPaper: {},
|
|
curPaperIndex: 0,
|
|
curPaperIndex: 0,
|
|
|
|
+ paramsSet: {},
|
|
// carousel paper review,
|
|
// carousel paper review,
|
|
carouselPapers: [],
|
|
carouselPapers: [],
|
|
curCarouselPaperIndex: 0,
|
|
curCarouselPaperIndex: 0,
|
|
@@ -225,6 +233,9 @@ export default {
|
|
},
|
|
},
|
|
imageViewClasses() {
|
|
imageViewClasses() {
|
|
return ["image-view-list", `image-view-list-${this.size / 2}`];
|
|
return ["image-view-list", `image-view-list-${this.size / 2}`];
|
|
|
|
+ },
|
|
|
|
+ showPaperRelateCount() {
|
|
|
|
+ return this.paramsSet["showPaperCount"];
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -246,8 +257,8 @@ export default {
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
},
|
|
},
|
|
async getParamsSetInfo() {
|
|
async getParamsSetInfo() {
|
|
- const data = await getParamsSet(this.workId);
|
|
|
|
- this.changeStage = data.changeStage;
|
|
|
|
|
|
+ this.paramsSet = await getParamsSet(this.workId);
|
|
|
|
+ this.changeStage = this.paramsSet.changeStage;
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
const datas = {
|
|
const datas = {
|
|
@@ -385,8 +396,20 @@ export default {
|
|
} else if (index < 0) {
|
|
} else if (index < 0) {
|
|
nindex = 0;
|
|
nindex = 0;
|
|
}
|
|
}
|
|
|
|
+ const lastPaper = { ...this.curPaper };
|
|
this.curPaperIndex = nindex;
|
|
this.curPaperIndex = nindex;
|
|
this.curPaper = this.papers[nindex] ? { ...this.papers[nindex] } : {};
|
|
this.curPaper = this.papers[nindex] ? { ...this.papers[nindex] } : {};
|
|
|
|
+
|
|
|
|
+ // 待评时,检查当前试卷是否已经切换档位
|
|
|
|
+ if (
|
|
|
|
+ this.curStep.type === "undo" &&
|
|
|
|
+ this.curPaper["level"] &&
|
|
|
|
+ this.curPaper["level"] !== lastPaper["level"]
|
|
|
|
+ ) {
|
|
|
|
+ this.$Modal.info({
|
|
|
|
+ content: `即将打分档位:${this.curPaper.level}`
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
async toPrevPaper() {
|
|
async toPrevPaper() {
|
|
if (this.curPaperIndex === 0) {
|
|
if (this.curPaperIndex === 0) {
|
|
@@ -440,11 +463,12 @@ export default {
|
|
this.updateHistory();
|
|
this.updateHistory();
|
|
this.toActionNextPaper();
|
|
this.toActionNextPaper();
|
|
},
|
|
},
|
|
- async scoreCurPaper(score) {
|
|
|
|
|
|
+ async scoreCurPaper(info) {
|
|
await paperSelectLevelOrScore(
|
|
await paperSelectLevelOrScore(
|
|
this.curPaper.id, // is taskId
|
|
this.curPaper.id, // is taskId
|
|
- score,
|
|
|
|
- "SCORE"
|
|
|
|
|
|
+ info.score,
|
|
|
|
+ "SCORE",
|
|
|
|
+ info.manualScore
|
|
);
|
|
);
|
|
this.getStepLevels();
|
|
this.getStepLevels();
|
|
this.updateHistory();
|
|
this.updateHistory();
|