Prechádzať zdrojové kódy

只有联校才会显示个性化错题

wangguoxi 5 mesiacov pred
rodič
commit
b9ae10dbb0

+ 12 - 4
src/views/analysisReport/studentPage/mainPage.vue

@@ -31,8 +31,12 @@
                         <div class="left">
                             <button class="mm_btn mb_10" :class="{ active: activeBtn === pathOne }"
                                 @click="toPage(pathOne)">成绩分析</button>
-                            <button class="mm_btn" :class="{ active: activeBtn === pathTwo }"
-                                @click="toPage(pathTwo)">个性化错题</button>
+
+                                <!-- 如果是联校,才会显示 个性化错题 -->
+                            <template v-if="isLianXiao">
+                                <button class="mm_btn" :class="{ active: activeBtn === pathTwo }"
+                                    @click="toPage(pathTwo)">个性化错题</button>
+                            </template>
                         </div>
                         <div class="right">
                             <div class="page_filter" ref="filterContent">
@@ -79,10 +83,14 @@ export default {
             activeBtn: this.$route.path,
             pathOne: '/studentAnalysisReport/reportDetails/scrolReport',
             pathTwo: '/studentAnalysisReport/reportDetails/personalWrongQuestions',
+            isLianXiao: false,//是否联校
         };
     },
 
     created() {
+        const schoolType = sessionStorage.getItem('schoolType') || '1'; //1:单校 2:联校
+        this.isLianXiao = schoolType === '2';
+
         if (this.$store.state.report.filterData.length > 0) {
             //有数据
             this.filterData = this.$store.state.report.filterData;
@@ -179,9 +187,9 @@ export default {
                 }
             })
         },
-        
+
         downloadWrongQuestions(type) {
-            this.$store.commit("question/SET_VARIANTION", type);    
+            this.$store.commit("question/SET_VARIANTION", type);
         },
 
         //返回按钮点击

+ 1 - 1
src/views/analysisReport/wrongQuestion/index.vue

@@ -434,7 +434,7 @@ export default {
 
 .question_card {
     margin-bottom: 10px;
-    border: 1px solid #DCDFE6;
+    border: 1px solid #EBEEF5;
     border-radius: 10px;
     overflow: hidden;
 

+ 0 - 2
src/views/analysisReport/wrongQuestion/tools.js

@@ -53,8 +53,6 @@ export function CreateLoadingInstance(options) {
     options = Object.assign({
         lock: true,
         text: '正在处理...',
-        spinner: 'el-icon-loading',
-        background: 'rgba(0, 0, 0, 0.7)'
     }, options || {});
 
     return Loading.service(options);