|
@@ -125,7 +125,7 @@
|
|
<div
|
|
<div
|
|
:class="[
|
|
:class="[
|
|
'image-view',
|
|
'image-view',
|
|
- { 'image-view-act': curPaperIndex === index }
|
|
|
|
|
|
+ { 'image-view-act': curPaperIndex === index || image.selected }
|
|
]"
|
|
]"
|
|
v-for="(image, index) in papers"
|
|
v-for="(image, index) in papers"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -138,7 +138,7 @@
|
|
@click="toReview(index)"
|
|
@click="toReview(index)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <div class="image-view-actions">
|
|
|
|
|
|
+ <div class="image-view-actions" v-if="ACTION_CAN_BATCH">
|
|
<div
|
|
<div
|
|
:class="[
|
|
:class="[
|
|
'image-view-multibar',
|
|
'image-view-multibar',
|
|
@@ -220,7 +220,8 @@ import {
|
|
workLevelList,
|
|
workLevelList,
|
|
taskSnSearch,
|
|
taskSnSearch,
|
|
subjectDetail,
|
|
subjectDetail,
|
|
- markHistoryList
|
|
|
|
|
|
+ markHistoryList,
|
|
|
|
+ getParamsSet
|
|
} from "@/api";
|
|
} from "@/api";
|
|
import SimpleImagePreview from "@/components/SimpleImagePreview";
|
|
import SimpleImagePreview from "@/components/SimpleImagePreview";
|
|
import GradeStep from "./components/GradeStep";
|
|
import GradeStep from "./components/GradeStep";
|
|
@@ -283,6 +284,7 @@ export default {
|
|
papers: [],
|
|
papers: [],
|
|
curPaper: {},
|
|
curPaper: {},
|
|
curPaperIndex: 0,
|
|
curPaperIndex: 0,
|
|
|
|
+ paramsSet: {},
|
|
// leader-grade
|
|
// leader-grade
|
|
levelInfo: {},
|
|
levelInfo: {},
|
|
markers: [],
|
|
markers: [],
|
|
@@ -321,7 +323,11 @@ export default {
|
|
return this.curSubject.test === 2;
|
|
return this.curSubject.test === 2;
|
|
},
|
|
},
|
|
ACTION_CAN_BATCH() {
|
|
ACTION_CAN_BATCH() {
|
|
- return this.curStep.type === "done" && this.IS_MARK_LEADER;
|
|
|
|
|
|
+ return (
|
|
|
|
+ this.curStep.type === "done" &&
|
|
|
|
+ this.IS_MARK_LEADER &&
|
|
|
|
+ !this.paramsSet.paperStage
|
|
|
|
+ );
|
|
},
|
|
},
|
|
imagePreviewClasses() {
|
|
imagePreviewClasses() {
|
|
return this.IS_ADMIN
|
|
return this.IS_ADMIN
|
|
@@ -336,6 +342,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async initData() {
|
|
async initData() {
|
|
|
|
+ this.getParamsSetInfo();
|
|
await this.getSubjectDetail();
|
|
await this.getSubjectDetail();
|
|
// 获取档位列表
|
|
// 获取档位列表
|
|
this.getWorkLevels();
|
|
this.getWorkLevels();
|
|
@@ -345,6 +352,9 @@ export default {
|
|
// 获取顶部档位导航
|
|
// 获取顶部档位导航
|
|
this.getStepLevels();
|
|
this.getStepLevels();
|
|
},
|
|
},
|
|
|
|
+ async getParamsSetInfo() {
|
|
|
|
+ this.paramsSet = await getParamsSet(this.workId);
|
|
|
|
+ },
|
|
async getList() {
|
|
async getList() {
|
|
this.multipleGradingList = [];
|
|
this.multipleGradingList = [];
|
|
const datas = {
|
|
const datas = {
|
|
@@ -364,9 +374,10 @@ export default {
|
|
this.total = data.totalCount;
|
|
this.total = data.totalCount;
|
|
this.totalPage = data.pageCount;
|
|
this.totalPage = data.pageCount;
|
|
},
|
|
},
|
|
- toPage(page) {
|
|
|
|
|
|
+ async toPage(page) {
|
|
this.current = page;
|
|
this.current = page;
|
|
- this.getList();
|
|
|
|
|
|
+ await this.getList();
|
|
|
|
+ this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
async getSubjectDetail() {
|
|
async getSubjectDetail() {
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
this.curSubject = await subjectDetail(this.subjectId);
|