|
@@ -173,7 +173,8 @@ import {
|
|
levelStatData,
|
|
levelStatData,
|
|
areaList,
|
|
areaList,
|
|
workLevelList,
|
|
workLevelList,
|
|
- taskSnSearch
|
|
|
|
|
|
+ taskSnSearch,
|
|
|
|
+ subjectDetail
|
|
} from "@/api";
|
|
} from "@/api";
|
|
import ImagePreview from "@/components/common/ImagePreview";
|
|
import ImagePreview from "@/components/common/ImagePreview";
|
|
import GradeStep from "./components/GradeStep";
|
|
import GradeStep from "./components/GradeStep";
|
|
@@ -224,6 +225,7 @@ export default {
|
|
workId: this.$route.params.workId,
|
|
workId: this.$route.params.workId,
|
|
subjectId: this.$route.params.subjectId,
|
|
subjectId: this.$route.params.subjectId,
|
|
subject: "",
|
|
subject: "",
|
|
|
|
+ curSubject: {},
|
|
curUserRoleType: "MARKER",
|
|
curUserRoleType: "MARKER",
|
|
current: 1,
|
|
current: 1,
|
|
size: 6,
|
|
size: 6,
|
|
@@ -267,6 +269,9 @@ export default {
|
|
IS_MARK_LEADER() {
|
|
IS_MARK_LEADER() {
|
|
return this.curUserRoleType === "MARK_LEADER";
|
|
return this.curUserRoleType === "MARK_LEADER";
|
|
},
|
|
},
|
|
|
|
+ IS_TEST() {
|
|
|
|
+ return this.curSubject.test === 2;
|
|
|
|
+ },
|
|
imagePreviewClasses() {
|
|
imagePreviewClasses() {
|
|
return this.IS_ADMIN
|
|
return this.IS_ADMIN
|
|
? "grading-detail-image-preview"
|
|
? "grading-detail-image-preview"
|
|
@@ -280,6 +285,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async initData() {
|
|
async initData() {
|
|
|
|
+ await this.getSubjectDetail();
|
|
// 获取档位列表
|
|
// 获取档位列表
|
|
this.getWorkLevels();
|
|
this.getWorkLevels();
|
|
// 获取考区列表,一个考区对应一个questionId
|
|
// 获取考区列表,一个考区对应一个questionId
|
|
@@ -309,6 +315,9 @@ export default {
|
|
this.current = page;
|
|
this.current = page;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ async getSubjectDetail() {
|
|
|
|
+ this.curSubject = await subjectDetail(this.subjectId);
|
|
|
|
+ },
|
|
async getStepLevels() {
|
|
async getStepLevels() {
|
|
const data = await levelStatData(this.subjectId, this.filter.questionId);
|
|
const data = await levelStatData(this.subjectId, this.filter.questionId);
|
|
const undoIndex = data.findIndex(item => item.id === null);
|
|
const undoIndex = data.findIndex(item => item.id === null);
|
|
@@ -317,6 +326,14 @@ export default {
|
|
const undo = { ...data[undoIndex] };
|
|
const undo = { ...data[undoIndex] };
|
|
data.splice(undoIndex, 1);
|
|
data.splice(undoIndex, 1);
|
|
|
|
|
|
|
|
+ if (this.IS_MARK_LEADER && this.IS_TEST) {
|
|
|
|
+ otherStep.push({
|
|
|
|
+ name: "待评",
|
|
|
|
+ count: undo.count,
|
|
|
|
+ type: "undo"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
otherStep.push({
|
|
otherStep.push({
|
|
name: "打回",
|
|
name: "打回",
|
|
count: undo.rejected,
|
|
count: undo.rejected,
|