|
@@ -110,7 +110,12 @@
|
|
|
import ProgressLine from "./components/ProgressLine";
|
|
|
import ModifyUnformalGradingTask from "./components/ModifyUnformalGradingTask";
|
|
|
import ModifyFormalGradingTask from "./components/ModifyFormalGradingTask";
|
|
|
-import { gradingProgressDetail, subjectDetail, gotoScoreStep } from "@/api";
|
|
|
+import {
|
|
|
+ gradingProgressDetail,
|
|
|
+ subjectDetail,
|
|
|
+ gotoScoreStep,
|
|
|
+ getParamsSet
|
|
|
+} from "@/api";
|
|
|
import { SUBJECT_STAGE } from "@/constants/enumerate";
|
|
|
|
|
|
export default {
|
|
@@ -123,6 +128,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
subjectId: this.$route.params.subjectId,
|
|
|
+ workId: this.$route.params.workId,
|
|
|
+ paramsSet: {},
|
|
|
curSubject: {},
|
|
|
SUBJECT_STAGE,
|
|
|
kzzInfo: {},
|
|
@@ -134,6 +141,9 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
showGradingBtn() {
|
|
|
+ // 采集时已知档位,则不显示正评任务按钮
|
|
|
+ if (this.paramsSet.paperStage) return false;
|
|
|
+
|
|
|
return (
|
|
|
(this.curSubject.stage == "INIT" &&
|
|
|
this.curSubject.test !== 2 &&
|
|
@@ -146,6 +156,9 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
showTryGradingBtn() {
|
|
|
+ // 采集时已知档位,则不显示试评任务按钮
|
|
|
+ if (this.paramsSet.paperStage) return false;
|
|
|
+
|
|
|
return (
|
|
|
(this.curSubject.stage == "INIT" &&
|
|
|
this.curSubject.test !== 2 &&
|
|
@@ -155,6 +168,10 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
showMarkBtn() {
|
|
|
+ // 采集时已知档位,分档阶段则可直接进入打分
|
|
|
+ if (this.paramsSet.paperStage) return this.curSubject.stage == "LEVEL";
|
|
|
+
|
|
|
+ // 若不知档位,则必须分档进度为100时,才能进入打分
|
|
|
return (
|
|
|
(this.curSubject.stage == "LEVEL" &&
|
|
|
this.totalProgress.progress === 100) ||
|
|
@@ -181,8 +198,12 @@ export default {
|
|
|
methods: {
|
|
|
async initData() {
|
|
|
await this.getSubjectDetail();
|
|
|
+ this.getParamsSetInfo();
|
|
|
this.getProgressDetail();
|
|
|
},
|
|
|
+ async getParamsSetInfo() {
|
|
|
+ this.paramsSet = await getParamsSet(this.workId);
|
|
|
+ },
|
|
|
async getProgressDetail() {
|
|
|
const data = await gradingProgressDetail({
|
|
|
workId: this.curSubject.workId,
|