|
@@ -5,7 +5,7 @@
|
|
|
<div class="grading-title">
|
|
|
<h1>{{ curSubject.name }}</h1>
|
|
|
<span>当前阶段:{{ stepName }}</span
|
|
|
- ><span v-if="!IS_SCORE">进度:{{ stepProgress }}</span>
|
|
|
+ ><span>进度:{{ stepProgress }}</span>
|
|
|
</div>
|
|
|
<div class="home-navs">
|
|
|
<ul>
|
|
@@ -78,7 +78,6 @@ export default {
|
|
|
curSubject: { name: "" },
|
|
|
SUBJECT_STAGE,
|
|
|
IS_ADMIN: true,
|
|
|
- IS_SCORE: false,
|
|
|
stepName: "",
|
|
|
stepProgress: ""
|
|
|
};
|
|
@@ -99,7 +98,16 @@ export default {
|
|
|
async initData() {
|
|
|
if (this.IS_ADMIN) {
|
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
|
- this.IS_SCORE = this.curSubject.stage === "SCORE";
|
|
|
+ if (this.curSubject.stage === "SCORE") {
|
|
|
+ this.$router.replace({
|
|
|
+ name: "Mark",
|
|
|
+ params: {
|
|
|
+ workId: this.subjectId.split("-")[0],
|
|
|
+ subjectId: this.subjectId
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.getProgressDetail();
|
|
|
this.stepName =
|
|
|
this.curSubject.test === 2
|