|
@@ -91,13 +91,23 @@
|
|
|
<grade-standard-paper
|
|
|
:levels="levels"
|
|
|
:question-id="filter.questionId"
|
|
|
- @on-paper-click="toViewCarouselPaper"
|
|
|
+ @on-paper-click="
|
|
|
+ (index, papers) => {
|
|
|
+ toViewCarouselPaper(index, papers, 'sample');
|
|
|
+ }
|
|
|
+ "
|
|
|
+ @on-paper-change="standardPaperChange"
|
|
|
v-if="levels.length && filter.questionId"
|
|
|
+ ref="GradeStandardPaper"
|
|
|
></grade-standard-paper>
|
|
|
<div class="detail-papers-carousel-split"></div>
|
|
|
<grade-history-paper
|
|
|
:question-id="filter.questionId"
|
|
|
- @on-paper-click="toViewCarouselPaper"
|
|
|
+ @on-paper-click="
|
|
|
+ (index, papers) => {
|
|
|
+ toViewCarouselPaper(index, papers, 'history');
|
|
|
+ }
|
|
|
+ "
|
|
|
v-if="filter.questionId"
|
|
|
ref="GradeHistoryPaper"
|
|
|
></grade-history-paper>
|
|
@@ -125,6 +135,7 @@
|
|
|
'image-view-actions',
|
|
|
{ 'image-view-selected': image.selected }
|
|
|
]"
|
|
|
+ title="选中批量分档"
|
|
|
@click="selectMultiplePaper(image)"
|
|
|
></div>
|
|
|
</div>
|
|
@@ -247,6 +258,7 @@ export default {
|
|
|
multiplebtnClicked: false,
|
|
|
multipleGradingList: [],
|
|
|
// carousel paper review,
|
|
|
+ carouselType: "",
|
|
|
carouselPapers: [],
|
|
|
curCarouselPaperIndex: 0,
|
|
|
isFullscreenMarking: false
|
|
@@ -506,7 +518,8 @@ export default {
|
|
|
this.$refs.GradeHistoryPaper.updatePapers();
|
|
|
},
|
|
|
// paper carousel
|
|
|
- toViewCarouselPaper(paperIndex, papers) {
|
|
|
+ toViewCarouselPaper(paperIndex, papers, type) {
|
|
|
+ this.carouselType = type;
|
|
|
this.isFullscreenMarking = true;
|
|
|
this.carouselPapers = papers;
|
|
|
this.selectCarouselPaper(paperIndex);
|
|
@@ -519,6 +532,10 @@ export default {
|
|
|
this.curPaper = { ...this.carouselPapers[index] };
|
|
|
},
|
|
|
toCarousePaper(type) {
|
|
|
+ if (this.carouselType === "sample") {
|
|
|
+ this.toSampleCarousePaper(type);
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (type === "prev" && this.curCarouselPaperIndex > 0) {
|
|
|
this.curCarouselPaperIndex--;
|
|
|
} else if (
|
|
@@ -529,9 +546,21 @@ export default {
|
|
|
}
|
|
|
this.selectCarouselPaper(this.curCarouselPaperIndex);
|
|
|
},
|
|
|
+ toSampleCarousePaper(type) {
|
|
|
+ if (type === "prev") {
|
|
|
+ this.$refs.GradeStandardPaper.$refs.PaperCarousel.handleLeft();
|
|
|
+ } else if (type === "next") {
|
|
|
+ this.$refs.GradeStandardPaper.$refs.PaperCarousel.handleRight();
|
|
|
+ }
|
|
|
+ },
|
|
|
carouseImagePreviewClose() {
|
|
|
this.isFullscreenMarking = false;
|
|
|
+ this.carouselType = "";
|
|
|
this.selectPaper(this.curPaperIndex);
|
|
|
+ },
|
|
|
+ standardPaperChange(curPaper) {
|
|
|
+ if (!this.isFullscreenMarking) return;
|
|
|
+ this.curPaper = { ...curPaper };
|
|
|
}
|
|
|
}
|
|
|
};
|