|
@@ -60,7 +60,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { subjectDetail } from "@/api";
|
|
|
|
|
|
+import { subjectDetail, getParamsSet } from "@/api";
|
|
import { mark, main } from "@/constants/authority";
|
|
import { mark, main } from "@/constants/authority";
|
|
import menuMixins from "@/components/homeMenuMixins";
|
|
import menuMixins from "@/components/homeMenuMixins";
|
|
import { SUBJECT_STAGE } from "@/constants/enumerate";
|
|
import { SUBJECT_STAGE } from "@/constants/enumerate";
|
|
@@ -72,12 +72,14 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
subjectId: this.$route.params.subjectId,
|
|
subjectId: this.$route.params.subjectId,
|
|
|
|
+ workId: this.$route.params.workId,
|
|
navs: [],
|
|
navs: [],
|
|
curNav: {},
|
|
curNav: {},
|
|
curSubject: { name: "" },
|
|
curSubject: { name: "" },
|
|
SUBJECT_STAGE,
|
|
SUBJECT_STAGE,
|
|
IS_ADMIN: false,
|
|
IS_ADMIN: false,
|
|
- IS_SUPER_ADMIN: false
|
|
|
|
|
|
+ IS_SUPER_ADMIN: false,
|
|
|
|
+ paramsSet: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -96,11 +98,12 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
async initData() {
|
|
async initData() {
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
this.curSubject = await subjectDetail(this.subjectId);
|
|
|
|
+ this.paramsSet = await getParamsSet(this.workId);
|
|
if (this.curSubject.stage === "LEVEL") {
|
|
if (this.curSubject.stage === "LEVEL") {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
name: "Grading",
|
|
name: "Grading",
|
|
params: {
|
|
params: {
|
|
- workId: this.subjectId.split("-")[0],
|
|
|
|
|
|
+ workId: this.workId,
|
|
subjectId: this.subjectId
|
|
subjectId: this.subjectId
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -113,6 +116,7 @@ export default {
|
|
this.navs = deepCopy(mark);
|
|
this.navs = deepCopy(mark);
|
|
if (this.IS_ADMIN || this.IS_SUPER_ADMIN) {
|
|
if (this.IS_ADMIN || this.IS_SUPER_ADMIN) {
|
|
this.navs.pop();
|
|
this.navs.pop();
|
|
|
|
+ if (this.paramsSet.isLevelToScore) this.navs.pop();
|
|
const navHead = this.IS_SUPER_ADMIN
|
|
const navHead = this.IS_SUPER_ADMIN
|
|
? main.slice(0, 3)
|
|
? main.slice(0, 3)
|
|
: main.slice(1, 3);
|
|
: main.slice(1, 3);
|