|
@@ -68,6 +68,7 @@
|
|
:stage="curSubject.stage"
|
|
:stage="curSubject.stage"
|
|
@to-review="toReview"
|
|
@to-review="toReview"
|
|
@to-select="selectMultiplePaper"
|
|
@to-select="selectMultiplePaper"
|
|
|
|
+ @on-mark="markChange"
|
|
></marker-image-view>
|
|
></marker-image-view>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -125,6 +126,26 @@
|
|
@on-close="carouseImagePreviewClose"
|
|
@on-close="carouseImagePreviewClose"
|
|
ref="CarouselPapersPreview"
|
|
ref="CarouselPapersPreview"
|
|
></simple-image-preview>
|
|
></simple-image-preview>
|
|
|
|
+ <!-- level-change-modal-info -->
|
|
|
|
+ <Modal
|
|
|
|
+ v-model="levelChangeModalIsShow"
|
|
|
|
+ width="400"
|
|
|
|
+ footer-hide
|
|
|
|
+ :z-index="2001"
|
|
|
|
+ :closable="false"
|
|
|
|
+ :mask-closable="false"
|
|
|
|
+ >
|
|
|
|
+ <div class="ivu-modal-confirm">
|
|
|
|
+ <div class="ivu-modal-confirm-body">
|
|
|
|
+ <div>{{ levelChangeTips }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ivu-modal-confirm-footer">
|
|
|
|
+ <Button type="primary" @click="levelChangeModalIsShow = false"
|
|
|
|
+ >确定</Button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </Modal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -139,6 +160,7 @@ import GradeAction from "../components/GradeAction";
|
|
import GradeActionRough from "../components/GradeActionRough";
|
|
import GradeActionRough from "../components/GradeActionRough";
|
|
import SimpleImagePreview from "@/components/SimpleImagePreview";
|
|
import SimpleImagePreview from "@/components/SimpleImagePreview";
|
|
import GradeRibbon from "../components/GradeRibbon";
|
|
import GradeRibbon from "../components/GradeRibbon";
|
|
|
|
+import { levelNameTransform } from "@/plugins/utils";
|
|
|
|
|
|
import {
|
|
import {
|
|
markerTaskList,
|
|
markerTaskList,
|
|
@@ -209,7 +231,10 @@ export default {
|
|
carouselType: "",
|
|
carouselType: "",
|
|
carouselPapers: [],
|
|
carouselPapers: [],
|
|
curCarouselPaperIndex: 0,
|
|
curCarouselPaperIndex: 0,
|
|
- isFullscreenMarking: false
|
|
|
|
|
|
+ isFullscreenMarking: false,
|
|
|
|
+ // tips-modal
|
|
|
|
+ levelChangeTips: "",
|
|
|
|
+ levelChangeModalIsShow: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -511,6 +536,17 @@ export default {
|
|
this.selectPaper(this.curPaperIndex);
|
|
this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
// paper view action
|
|
// paper view action
|
|
|
|
+ markChange(mark) {
|
|
|
|
+ const spos = this.steps.otherStep.findIndex(
|
|
|
|
+ item => item.type === "markPaper"
|
|
|
|
+ );
|
|
|
|
+ if (spos === -1) return;
|
|
|
|
+ if (mark) {
|
|
|
|
+ this.steps.otherStep[spos].count++;
|
|
|
|
+ } else {
|
|
|
|
+ this.steps.otherStep[spos].count--;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
toReview(data) {
|
|
toReview(data) {
|
|
this.setShortcut(["action"]);
|
|
this.setShortcut(["action"]);
|
|
this.isFullscreenMarking = true;
|
|
this.isFullscreenMarking = true;
|
|
@@ -528,8 +564,22 @@ 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.IS_ROUGH_THIN_LEVEL &&
|
|
|
|
+ this.curStep.type === "undo" &&
|
|
|
|
+ this.curPaper["roughLevel"] &&
|
|
|
|
+ this.curPaper["roughLevel"] !== lastPaper["roughLevel"]
|
|
|
|
+ ) {
|
|
|
|
+ this.levelChangeTips = `即将分档粗档位:${levelNameTransform(
|
|
|
|
+ this.curPaper.roughLevel
|
|
|
|
+ )}`;
|
|
|
|
+ this.levelChangeModalIsShow = true;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
async toPrevPaper() {
|
|
async toPrevPaper() {
|
|
if (this.curPaperIndex === 0) {
|
|
if (this.curPaperIndex === 0) {
|