|
@@ -8,7 +8,7 @@
|
|
|
<el-tabs type="card">
|
|
|
<el-tab-pane label="名校试卷">
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="8" @click.native="toPreView(item.id, item.papername)"
|
|
|
+ <el-col :span="8" @click.native="toPreView(item)"
|
|
|
class="f14 mb15 pointer text-ellipsis" v-for="item in papersList">
|
|
|
{{ item.papername }}
|
|
|
</el-col>
|
|
@@ -16,7 +16,7 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="历年真题">
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="8" @click.native="toPreView(item.id, item.papername)"
|
|
|
+ <el-col :span="8" @click.native="toPreView(item)"
|
|
|
class="f14 mb15 pointer text-ellipsis" v-for="item in paperYearList">
|
|
|
{{ item.papername }}
|
|
|
</el-col>
|
|
@@ -34,9 +34,11 @@ import IndexCardGenerating from '@/views/index/components/index-card-generating.
|
|
|
import { papersList } from '@/api/webApi/webQue'
|
|
|
import { videoList } from '@/api/webApi/webVideo'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
+import PaperActionsMixin from "@/views/questioncenter/components/paper-actions-mixin";
|
|
|
|
|
|
export default {
|
|
|
components: { IndexCard, IndexCardGenerating, IndexCardSmart },
|
|
|
+ mixins: [PaperActionsMixin],
|
|
|
data() {
|
|
|
return {
|
|
|
bannerStyle: {
|
|
@@ -73,12 +75,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- toPreView(paperId, paperName) {
|
|
|
- this.$router.push({
|
|
|
- path: '/question-center/bestPaper/preview',
|
|
|
- query: { paperId, paperName }
|
|
|
- })
|
|
|
- },
|
|
|
more(path) {
|
|
|
this.$router.push(path)
|
|
|
},
|