|
|
@@ -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);
|
|
|
},
|
|
|
|
|
|
//返回按钮点击
|