|  | @@ -14,35 +14,9 @@
 | 
											
												
													
														|  |        </div>
 |  |        </div>
 | 
											
												
													
														|  |        <!-- 试卷收藏 -->
 |  |        <!-- 试卷收藏 -->
 | 
											
												
													
														|  |        <div class="exam" v-show="queryParams.favCollectType == 'paper'">
 |  |        <div class="exam" v-show="queryParams.favCollectType == 'paper'">
 | 
											
												
													
														|  | -        <div class="paper_container">
 |  | 
 | 
											
												
													
														|  | -          <div class="paper_item" v-for="item in collectPaper" :key="item.id">
 |  | 
 | 
											
												
													
														|  | -            <div class="tit">
 |  | 
 | 
											
												
													
														|  | -              <div>{{ item.papername }}</div>
 |  | 
 | 
											
												
													
														|  | -              <div class="viewCount">
 |  | 
 | 
											
												
													
														|  | -                <img src="@/assets/images/icon_eye.png" alt=""/>
 |  | 
 | 
											
												
													
														|  | -                <span>{{ item.readNum }}人已预览</span>
 |  | 
 | 
											
												
													
														|  | -              </div>
 |  | 
 | 
											
												
													
														|  | -            </div>
 |  | 
 | 
											
												
													
														|  | -            <div class="opera">
 |  | 
 | 
											
												
													
														|  | -              <div class="view" @click="toPreView(item)">
 |  | 
 | 
											
												
													
														|  | -                <img
 |  | 
 | 
											
												
													
														|  | -                  class="mr8"
 |  | 
 | 
											
												
													
														|  | -                  src="@/assets/images/icon_view.png"
 |  | 
 | 
											
												
													
														|  | -                  alt=""
 |  | 
 | 
											
												
													
														|  | -                />
 |  | 
 | 
											
												
													
														|  | -                <span>预览</span>
 |  | 
 | 
											
												
													
														|  | -              </div>
 |  | 
 | 
											
												
													
														|  | -              <div class="download">下载</div>
 |  | 
 | 
											
												
													
														|  | -              <div>
 |  | 
 | 
											
												
													
														|  | -                <img
 |  | 
 | 
											
												
													
														|  | -                  src="@/assets/images/icon_shoucang_s.png"
 |  | 
 | 
											
												
													
														|  | -                  alt=""
 |  | 
 | 
											
												
													
														|  | -                  class="mr8"
 |  | 
 | 
											
												
													
														|  | -                />
 |  | 
 | 
											
												
													
														|  | -                <span>已收藏</span>
 |  | 
 | 
											
												
													
														|  | -              </div>
 |  | 
 | 
											
												
													
														|  | -            </div>
 |  | 
 | 
											
												
													
														|  | -          </div>
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <div class="fx-column gap10">
 | 
											
												
													
														|  | 
 |  | +          <collect-paper-item v-for="p in collectPaper" :key="p.id" :paper="p" />
 | 
											
												
													
														|  | 
 |  | +          <el-empty v-if="!loading && !collectPaper.length" />
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  |        </div>
 |  |        </div>
 | 
											
												
													
														|  |      </div>
 |  |      </div>
 | 
											
										
											
												
													
														|  | @@ -65,10 +39,12 @@ import {favPapers, favQuestions, favSubjects} from '@/api/webApi/webQue.js'
 | 
											
												
													
														|  |  import PaperActionsMixin from "@/views/questioncenter/components/paper-actions-mixin";
 |  |  import PaperActionsMixin from "@/views/questioncenter/components/paper-actions-mixin";
 | 
											
												
													
														|  |  import MxQuestionReadonly from "@/components/MxQuestionReadonly/MxQuestionReadonly.vue";
 |  |  import MxQuestionReadonly from "@/components/MxQuestionReadonly/MxQuestionReadonly.vue";
 | 
											
												
													
														|  |  import CorrectQuestionDialog from "@/components/MxPaper/plus/correct-question-dialog.vue";
 |  |  import CorrectQuestionDialog from "@/components/MxPaper/plus/correct-question-dialog.vue";
 | 
											
												
													
														|  | 
 |  | +import CollectPaperItem from "@/views/questioncenter/components/collect-paper-item.vue";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    mixins: [PaperActionsMixin],
 |  |    mixins: [PaperActionsMixin],
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
												
													
														|  | 
 |  | +    CollectPaperItem,
 | 
											
												
													
														|  |      CorrectQuestionDialog,
 |  |      CorrectQuestionDialog,
 | 
											
												
													
														|  |      MxQuestionReadonly,
 |  |      MxQuestionReadonly,
 | 
											
												
													
														|  |      MxCondition,
 |  |      MxCondition,
 | 
											
										
											
												
													
														|  | @@ -128,7 +104,6 @@ export default {
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  |          this.getFavPapers()
 |  |          this.getFavPapers()
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      onChangePage() {
 |  |      onChangePage() {
 | 
											
												
													
														|  |        this.getFavQuestions()
 |  |        this.getFavQuestions()
 | 
											
										
											
												
													
														|  | @@ -147,13 +122,9 @@ export default {
 | 
											
												
													
														|  |          this.$nextTick(_ => this.mxGlobal.MathQueue('collect-question'))
 |  |          this.$nextTick(_ => this.mxGlobal.MathQueue('collect-question'))
 | 
											
												
													
														|  |        }).finally(() => this.loading = false)
 |  |        }).finally(() => this.loading = false)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    viewDetail(item) {
 |  | 
 | 
											
												
													
														|  | -      item.expand = !item.expand
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  |      // 收藏涉及的学科
 |  |      // 收藏涉及的学科
 | 
											
												
													
														|  |      getSubjects() {
 |  |      getSubjects() {
 | 
											
												
													
														|  |        favSubjects({type: this.form.type}).then((res) => {
 |  |        favSubjects({type: this.form.type}).then((res) => {
 | 
											
												
													
														|  | -        console.log(res)
 |  | 
 | 
											
												
													
														|  |          this.form.subjectName = res.data[0]
 |  |          this.form.subjectName = res.data[0]
 | 
											
												
													
														|  |          this.subjects = res.data
 |  |          this.subjects = res.data
 | 
											
												
													
														|  |          if (this.form.type == 'question') {
 |  |          if (this.form.type == 'question') {
 | 
											
										
											
												
													
														|  | @@ -165,15 +136,15 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 收藏涉及的试卷
 |  |      // 收藏涉及的试卷
 | 
											
												
													
														|  |      getFavPapers() {
 |  |      getFavPapers() {
 | 
											
												
													
														|  | 
 |  | +      this.loading = true
 | 
											
												
													
														|  |        favPapers({
 |  |        favPapers({
 | 
											
												
													
														|  |          subjectName: this.queryParams.favSubject,
 |  |          subjectName: this.queryParams.favSubject,
 | 
											
												
													
														|  |          pageNum: this.pageForm.pageNum,
 |  |          pageNum: this.pageForm.pageNum,
 | 
											
												
													
														|  |          pageSize: this.pageForm.pageSize
 |  |          pageSize: this.pageForm.pageSize
 | 
											
												
													
														|  |        }).then((res) => {
 |  |        }).then((res) => {
 | 
											
												
													
														|  | -        console.log(res)
 |  | 
 | 
											
												
													
														|  |          this.pageForm.total = res.total
 |  |          this.pageForm.total = res.total
 | 
											
												
													
														|  |          this.collectPaper = res.rows
 |  |          this.collectPaper = res.rows
 | 
											
												
													
														|  | -      })
 |  | 
 | 
											
												
													
														|  | 
 |  | +      }).finally(() => this.loading = false)
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  }
 |  |  }
 |