|
@@ -17,6 +17,10 @@
|
|
|
:value="item.value"></el-option>
|
|
:value="item.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <template v-if="isShowBtn">
|
|
|
|
|
+ <el-button size="medium" @click="downloadWrongQuestions(0)">下载错题本</el-button>
|
|
|
|
|
+ <el-button type="primary" size="medium" @click="downloadWrongQuestions(1)">下载个性化提升手册</el-button>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -25,8 +29,10 @@
|
|
|
<div class="content_right_scroll" ref="contentRightScroll">
|
|
<div class="content_right_scroll" ref="contentRightScroll">
|
|
|
<div class="mm_body">
|
|
<div class="mm_body">
|
|
|
<div class="left">
|
|
<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>
|
|
|
|
|
|
|
+ <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>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
<div class="page_filter" ref="filterContent">
|
|
<div class="page_filter" ref="filterContent">
|
|
@@ -60,6 +66,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
isShowFilter: false, //是否显示筛选条件
|
|
isShowFilter: false, //是否显示筛选条件
|
|
|
|
|
+ isShowBtn: false, //是否显示下载按钮
|
|
|
filterData: [
|
|
filterData: [
|
|
|
{
|
|
{
|
|
|
name: "科目名称",
|
|
name: "科目名称",
|
|
@@ -138,25 +145,30 @@ export default {
|
|
|
|
|
|
|
|
// 滚动条事件
|
|
// 滚动条事件
|
|
|
ScrollChange() {
|
|
ScrollChange() {
|
|
|
|
|
+ const path = this.$route.path;
|
|
|
|
|
+
|
|
|
let scrollTop = this.$refs.rightContent.scrollTop;
|
|
let scrollTop = this.$refs.rightContent.scrollTop;
|
|
|
- const filterContent = this.$refs.filterContent;
|
|
|
|
|
- let scrollHeight = 242;
|
|
|
|
|
- if (filterContent) {
|
|
|
|
|
- scrollHeight = filterContent.clientHeight;
|
|
|
|
|
|
|
+ if (path === '/studentAnalysisReport/reportDetails/scrolReport') {
|
|
|
|
|
+ const filterContent = this.$refs.filterContent;
|
|
|
|
|
+ let scrollHeight = 242;
|
|
|
|
|
+ if (filterContent) {
|
|
|
|
|
+ scrollHeight = filterContent.clientHeight;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isShowFilter = (scrollTop >= scrollHeight);
|
|
|
|
|
+ this.$store.commit("report/set_state", {
|
|
|
|
|
+ key: "isShowFilter",
|
|
|
|
|
+ value: this.isShowFilter,
|
|
|
|
|
+ });
|
|
|
|
|
+ if (this.$refs.child && typeof this.$refs.child.GetScrollTop === 'function') {
|
|
|
|
|
+ this.$refs.child.GetScrollTop(scrollTop);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- if (scrollTop >= scrollHeight) {
|
|
|
|
|
- this.isShowFilter = true;
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
- else {
|
|
|
|
|
- this.isShowFilter = false;
|
|
|
|
|
- }
|
|
|
|
|
- this.$store.commit("report/set_state", {
|
|
|
|
|
- key: "isShowFilter",
|
|
|
|
|
- value: this.isShowFilter,
|
|
|
|
|
- });
|
|
|
|
|
- if (this.$refs.child && typeof this.$refs.child.GetScrollTop === 'function') {
|
|
|
|
|
- this.$refs.child.GetScrollTop(scrollTop);
|
|
|
|
|
|
|
+ if (path === '/studentAnalysisReport/reportDetails/personalWrongQuestions') {
|
|
|
|
|
+ this.isShowBtn = (scrollTop >= 250);
|
|
|
|
|
+ if (this.$refs.child && typeof this.$refs.child.GetScrollTop === 'function') {
|
|
|
|
|
+ this.$refs.child.GetScrollTop(scrollTop);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//重置滚动条
|
|
//重置滚动条
|
|
@@ -167,6 +179,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ downloadWrongQuestions(type) {
|
|
|
|
|
+ this.$store.commit("question/SET_VARIANTION", type);
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
//返回按钮点击
|
|
//返回按钮点击
|
|
|
GoBack() {
|
|
GoBack() {
|
|
@@ -199,6 +215,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
|
+
|
|
|
.left {
|
|
.left {
|
|
|
width: 170px;
|
|
width: 170px;
|
|
|
padding: 20px;
|
|
padding: 20px;
|