|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="mark-operation home">
|
|
|
|
|
|
+ <div class="mark-operation grading-operation home">
|
|
<view-header> </view-header>
|
|
<view-header> </view-header>
|
|
<div class="home-body">
|
|
<div class="home-body">
|
|
<div class="home-main grading-detail">
|
|
<div class="home-main grading-detail">
|
|
@@ -30,14 +30,14 @@
|
|
</FormItem>
|
|
</FormItem>
|
|
</Form>
|
|
</Form>
|
|
</div>
|
|
</div>
|
|
- <grade-step
|
|
|
|
|
|
+ <mark-step
|
|
:steps="steps"
|
|
:steps="steps"
|
|
:init-step="curStep"
|
|
:init-step="curStep"
|
|
:show-analysis="false"
|
|
:show-analysis="false"
|
|
@on-change="stepChange"
|
|
@on-change="stepChange"
|
|
- ref="GradeStep"
|
|
|
|
|
|
+ ref="MarkStep"
|
|
v-if="steps.levelStep"
|
|
v-if="steps.levelStep"
|
|
- ></grade-step>
|
|
|
|
|
|
+ ></mark-step>
|
|
<div class="detail-body clear-float">
|
|
<div class="detail-body clear-float">
|
|
<!-- detail-aciton -->
|
|
<!-- detail-aciton -->
|
|
<div
|
|
<div
|
|
@@ -112,13 +112,13 @@
|
|
|
|
|
|
<!-- image-preview -->
|
|
<!-- image-preview -->
|
|
<image-preview
|
|
<image-preview
|
|
- class="grading-detail-image-preview"
|
|
|
|
|
|
+ class="grading-operation-image-preview"
|
|
:image-list="papers"
|
|
:image-list="papers"
|
|
:init-index="curPaperIndex"
|
|
:init-index="curPaperIndex"
|
|
@on-paper-change="selectPaper"
|
|
@on-paper-change="selectPaper"
|
|
@on-page-prev="prevPage"
|
|
@on-page-prev="prevPage"
|
|
@on-page-next="nextPage"
|
|
@on-page-next="nextPage"
|
|
- @on-close="imagePreviewClose"
|
|
|
|
|
|
+ @on-close="isFullscreenMarking = false"
|
|
header-hide
|
|
header-hide
|
|
ref="ImagePreview"
|
|
ref="ImagePreview"
|
|
v-if="papers.length"
|
|
v-if="papers.length"
|
|
@@ -126,11 +126,11 @@
|
|
|
|
|
|
<!-- carousel paper review -->
|
|
<!-- carousel paper review -->
|
|
<image-preview
|
|
<image-preview
|
|
- class="grading-detail-image-preview"
|
|
|
|
|
|
+ class="grading-operation-image-preview"
|
|
:image-list="carouselPapers"
|
|
:image-list="carouselPapers"
|
|
:init-index="curCarouselPaperIndex"
|
|
:init-index="curCarouselPaperIndex"
|
|
@on-paper-change="selectCarouselPaper"
|
|
@on-paper-change="selectCarouselPaper"
|
|
- @on-close="imagePreviewClose"
|
|
|
|
|
|
+ @on-close="carouseImagePreviewClose"
|
|
loop
|
|
loop
|
|
header-hide
|
|
header-hide
|
|
ref="CarouselPapersPreview"
|
|
ref="CarouselPapersPreview"
|
|
@@ -142,15 +142,16 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
markerPaperList,
|
|
markerPaperList,
|
|
- markerLevelStatData,
|
|
|
|
|
|
+ markerStepChangeList,
|
|
|
|
+ markerScoreStatData,
|
|
areaList,
|
|
areaList,
|
|
workLevelList,
|
|
workLevelList,
|
|
subjectDetail,
|
|
subjectDetail,
|
|
paperSelectLevelOrScore,
|
|
paperSelectLevelOrScore,
|
|
- paperPassLevel
|
|
|
|
|
|
+ paperTaskPass
|
|
} from "@/api";
|
|
} from "@/api";
|
|
import ImagePreview from "@/components/common/ImagePreview";
|
|
import ImagePreview from "@/components/common/ImagePreview";
|
|
-import GradeStep from "../grading/components/GradeStep";
|
|
|
|
|
|
+import MarkStep from "./components/MarkStep";
|
|
import GradeHistoryPaper from "../grading/components/GradeHistoryPaper";
|
|
import GradeHistoryPaper from "../grading/components/GradeHistoryPaper";
|
|
import MarkAction from "./components/MarkAction";
|
|
import MarkAction from "./components/MarkAction";
|
|
// 三种情况:
|
|
// 三种情况:
|
|
@@ -165,7 +166,7 @@ export default {
|
|
name: "mark-operation",
|
|
name: "mark-operation",
|
|
components: {
|
|
components: {
|
|
ImagePreview,
|
|
ImagePreview,
|
|
- GradeStep,
|
|
|
|
|
|
+ MarkStep,
|
|
GradeHistoryPaper,
|
|
GradeHistoryPaper,
|
|
MarkAction
|
|
MarkAction
|
|
},
|
|
},
|
|
@@ -173,9 +174,26 @@ export default {
|
|
return {
|
|
return {
|
|
filter: {
|
|
filter: {
|
|
markerId: this.$ls.get("user").id,
|
|
markerId: this.$ls.get("user").id,
|
|
- questionId: "",
|
|
|
|
- sort: "paper.level",
|
|
|
|
- stage: "SCORE"
|
|
|
|
|
|
+ questionId: ""
|
|
|
|
+ },
|
|
|
|
+ typeFilter: {
|
|
|
|
+ undo: {
|
|
|
|
+ sort: "paper.level",
|
|
|
|
+ stage: "SCORE"
|
|
|
|
+ },
|
|
|
|
+ done: {
|
|
|
|
+ level: "",
|
|
|
|
+ sort: "updatedOn,desc",
|
|
|
|
+ stage: "SCORE"
|
|
|
|
+ },
|
|
|
|
+ shife: {
|
|
|
|
+ isShift: true,
|
|
|
|
+ isShiftScore: false
|
|
|
|
+ },
|
|
|
|
+ shiftScore: {
|
|
|
|
+ isShift: false,
|
|
|
|
+ isShiftScore: true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
workId: this.$route.params.workId,
|
|
workId: this.$route.params.workId,
|
|
subjectId: this.$route.params.subjectId,
|
|
subjectId: this.$route.params.subjectId,
|
|
@@ -197,6 +215,7 @@ export default {
|
|
// carousel paper review,
|
|
// carousel paper review,
|
|
carouselPapers: [],
|
|
carouselPapers: [],
|
|
curCarouselPaperIndex: 0,
|
|
curCarouselPaperIndex: 0,
|
|
|
|
+ beforeCarouselCurPaperIndex: 0,
|
|
isFullscreenMarking: false
|
|
isFullscreenMarking: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -228,28 +247,31 @@ export default {
|
|
async getList() {
|
|
async getList() {
|
|
const datas = {
|
|
const datas = {
|
|
...this.filter,
|
|
...this.filter,
|
|
|
|
+ ...this.typeFilter[this.curStep.type],
|
|
page: this.current - 1,
|
|
page: this.current - 1,
|
|
size: this.size
|
|
size: this.size
|
|
};
|
|
};
|
|
if (this.curStep.type === "done") {
|
|
if (this.curStep.type === "done") {
|
|
datas.level = this.curStep.name;
|
|
datas.level = this.curStep.name;
|
|
- datas.sort = "updatedOn,desc";
|
|
|
|
}
|
|
}
|
|
|
|
+ const requestAction = this.curStep.type.includes("shift")
|
|
|
|
+ ? markerStepChangeList
|
|
|
|
+ : markerPaperList;
|
|
|
|
|
|
- const data = await markerPaperList(datas);
|
|
|
|
|
|
+ const data = await requestAction(datas);
|
|
this.papers = data.data.map(paper => {
|
|
this.papers = data.data.map(paper => {
|
|
paper.title = `NO.${paper.sn}`;
|
|
paper.title = `NO.${paper.sn}`;
|
|
return paper;
|
|
return paper;
|
|
});
|
|
});
|
|
this.total = data.totalCount;
|
|
this.total = data.totalCount;
|
|
- this.totalPage = data.totalPage;
|
|
|
|
|
|
+ this.totalPage = data.pageCount;
|
|
},
|
|
},
|
|
toPage(page) {
|
|
toPage(page) {
|
|
this.current = page;
|
|
this.current = page;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
async getStepLevels() {
|
|
async getStepLevels() {
|
|
- const data = await markerLevelStatData(
|
|
|
|
|
|
+ const data = await markerScoreStatData(
|
|
this.filter.markerId,
|
|
this.filter.markerId,
|
|
this.filter.questionId
|
|
this.filter.questionId
|
|
);
|
|
);
|
|
@@ -345,9 +367,6 @@ export default {
|
|
this.selectPaper(index);
|
|
this.selectPaper(index);
|
|
this.$refs.ImagePreview.open();
|
|
this.$refs.ImagePreview.open();
|
|
},
|
|
},
|
|
- imagePreviewClose() {
|
|
|
|
- this.isFullscreenMarking = false;
|
|
|
|
- },
|
|
|
|
async prevPage() {
|
|
async prevPage() {
|
|
if (this.current === 1) {
|
|
if (this.current === 1) {
|
|
this.$Message.warning("当前已经是第一条数据了");
|
|
this.$Message.warning("当前已经是第一条数据了");
|
|
@@ -359,10 +378,12 @@ export default {
|
|
if (this.papers.length) this.$refs.ImagePreview.initData();
|
|
if (this.papers.length) this.$refs.ImagePreview.initData();
|
|
},
|
|
},
|
|
async nextPage() {
|
|
async nextPage() {
|
|
|
|
+ console.log(this.current, this.totalPage);
|
|
if (this.current === this.totalPage) {
|
|
if (this.current === this.totalPage) {
|
|
if (this.current > 1) {
|
|
if (this.current > 1) {
|
|
this.current--;
|
|
this.current--;
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log("122");
|
|
this.$Message.warning("当前已经是最后一条数据了");
|
|
this.$Message.warning("当前已经是最后一条数据了");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -387,7 +408,7 @@ export default {
|
|
this.papers[index] = Object.assign(this.papers[index], data);
|
|
this.papers[index] = Object.assign(this.papers[index], data);
|
|
},
|
|
},
|
|
async passCurPaper(level) {
|
|
async passCurPaper(level) {
|
|
- await paperPassLevel(this.curPaper.id);
|
|
|
|
|
|
+ await paperTaskPass(this.curPaper.id);
|
|
this.toNext();
|
|
this.toNext();
|
|
},
|
|
},
|
|
toNext() {
|
|
toNext() {
|
|
@@ -399,8 +420,10 @@ export default {
|
|
// paper carousel
|
|
// paper carousel
|
|
toViewCarouselPaper(paperIndex, papers) {
|
|
toViewCarouselPaper(paperIndex, papers) {
|
|
this.isFullscreenMarking = true;
|
|
this.isFullscreenMarking = true;
|
|
- this.curCarouselPaperIndex = paperIndex;
|
|
|
|
|
|
+ this.beforeCarouselCurPaperIndex = this.curPaperIndex;
|
|
|
|
+ this.curPaperIndex = null;
|
|
this.carouselPapers = papers;
|
|
this.carouselPapers = papers;
|
|
|
|
+ this.selectCarouselPaper(paperIndex);
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.CarouselPapersPreview.open();
|
|
this.$refs.CarouselPapersPreview.open();
|
|
});
|
|
});
|
|
@@ -408,6 +431,10 @@ export default {
|
|
selectCarouselPaper(index) {
|
|
selectCarouselPaper(index) {
|
|
this.curCarouselPaperIndex = index;
|
|
this.curCarouselPaperIndex = index;
|
|
this.curPaper = { ...this.carouselPapers[index] };
|
|
this.curPaper = { ...this.carouselPapers[index] };
|
|
|
|
+ },
|
|
|
|
+ carouseImagePreviewClose() {
|
|
|
|
+ this.isFullscreenMarking = false;
|
|
|
|
+ this.selectPaper(this.beforeCarouselCurPaperIndex);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|