-
+
+
+
+
+
+
-
-
-
+
+
+
@@ -20,12 +24,21 @@ import logo from "./logo";
export default {
data () {
return {
- active: "staff",
- tabs: {
- staff: "教师管理",
- role: "角色权限",
- logo: "系统logo设置",
- }
+ active: '1',
+ tabs: [
+ {
+ id: '1',
+ name: '教师管理'
+ },
+ {
+ id: '2',
+ name: '角色权限'
+ },
+ {
+ id: '3',
+ name: '系统logo设置'
+ },
+ ],
};
},
computed: {
@@ -42,9 +55,6 @@ export default {
Setting.dynamicRoute && this.initTabs()
},
methods: {
- tabChange (index) {
- this.active = index
- },
initTabs () {
const { btns } = this
const tab1 = btns.includes('/system/list:教师管理')
diff --git a/src/pages/theoryExam/index.vue b/src/pages/theoryExam/index.vue
index 4b99c48..42173d4 100644
--- a/src/pages/theoryExam/index.vue
+++ b/src/pages/theoryExam/index.vue
@@ -178,7 +178,7 @@ export default {
token: Util.local.get(Setting.tokenKey),
paperId: +this.$route.query.paperId, // 试卷id(练习专用)
cid: +this.$route.query.cid,
- mallId: +this.$route.query.mallId,
+ mallId: +this.$route.query.mallId || '',
curriculumName: this.$route.query.curriculumName,
assessmentId: this.$route.query.assessmentId, // 考核id
classId: this.$route.query.classId,