|
@@ -121,11 +121,12 @@ export default {
|
|
curStepIndex: 0,
|
|
curStepIndex: 0,
|
|
finishedSteps: [],
|
|
finishedSteps: [],
|
|
questionSubmit: false,
|
|
questionSubmit: false,
|
|
|
|
+ openClassReading: true,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
currentComponent() {
|
|
currentComponent() {
|
|
- return `mark-param-${this.curStep.val}`;
|
|
|
|
|
|
+ return `mark-param-${this.curStep?.val || "structure"}`;
|
|
},
|
|
},
|
|
curStep() {
|
|
curStep() {
|
|
return this.steps[this.curStepIndex];
|
|
return this.steps[this.curStepIndex];
|
|
@@ -140,6 +141,13 @@ export default {
|
|
return this.steps.length - 1;
|
|
return this.steps.length - 1;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.openClassReading = this.checkPrivilege(
|
|
|
|
+ "button",
|
|
|
|
+ "OpenClassReading",
|
|
|
|
+ "MarkSetting"
|
|
|
|
+ );
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
...mapMutations("markParam", [
|
|
...mapMutations("markParam", [
|
|
"setBasicInfo",
|
|
"setBasicInfo",
|
|
@@ -215,6 +223,10 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
this.steps = steps.map((step, index) => {
|
|
this.steps = steps.map((step, index) => {
|
|
|
|
+ if (!this.openClassReading && index === 2) {
|
|
|
|
+ step.disabled = true;
|
|
|
|
+ return step;
|
|
|
|
+ }
|
|
step.status =
|
|
step.status =
|
|
index < this.curStepIndex
|
|
index < this.curStepIndex
|
|
? "success"
|
|
? "success"
|
|
@@ -250,7 +262,11 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- const nextStepIndex = this.curStepIndex + step;
|
|
|
|
|
|
+ let nextStepIndex = this.curStepIndex + step;
|
|
|
|
+ // 关闭分班阅,直接跳过
|
|
|
|
+ if (!this.openClassReading && nextStepIndex === 2) {
|
|
|
|
+ nextStepIndex += 1;
|
|
|
|
+ }
|
|
if (nextStepIndex > this.lastStep) return;
|
|
if (nextStepIndex > this.lastStep) return;
|
|
this.steps[this.curStepIndex].status = "success";
|
|
this.steps[this.curStepIndex].status = "success";
|
|
if (!this.finishedSteps.includes(this.curStepIndex)) {
|
|
if (!this.finishedSteps.includes(this.curStepIndex)) {
|
|
@@ -265,7 +281,11 @@ export default {
|
|
},
|
|
},
|
|
prevHandler(step = 1) {
|
|
prevHandler(step = 1) {
|
|
if (this.isFirstStep) return;
|
|
if (this.isFirstStep) return;
|
|
- const prevStepIndex = this.curStepIndex - step;
|
|
|
|
|
|
+ let prevStepIndex = this.curStepIndex - step;
|
|
|
|
+ // 关闭分班阅,直接跳过
|
|
|
|
+ if (!this.openClassReading && prevStepIndex === 2) {
|
|
|
|
+ prevStepIndex -= 1;
|
|
|
|
+ }
|
|
if (prevStepIndex < 0) return;
|
|
if (prevStepIndex < 0) return;
|
|
|
|
|
|
this.steps[this.curStepIndex].status = this.finishedSteps.includes(
|
|
this.steps[this.curStepIndex].status = this.finishedSteps.includes(
|