Commit ba90c29c by Lyan

常见问题列表序号+详情相关链接id更改

parent c141b41f
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
:class="['tab-pane', 'fade', { 'show active': current === tmp.type }]" :class="['tab-pane', 'fade', { 'show active': current === tmp.type }]"
:id="tmp.type" :id="tmp.type"
> >
<faqTable :list="tmp.data" @toTableFather="receiveTableFather" /> <faqTable :list="tmp" @toTableFather="receiveTableFather" />
<pages <pages
:currPage="pageParams.currPage" :currPage="pageParams.currPage"
:pageSize="pageParams.pageSize" :pageSize="pageParams.pageSize"
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
this.list.forEach((el) => { this.list.forEach((el) => {
if (el.active === this.$route.query.type) { if (el.active === this.$route.query.type) {
el.data = data.rows; el.data = data.rows;
el.pageNo=data.pageNo
} }
}); });
} }
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<div class="col-lg-2">类型</div> <div class="col-lg-2">类型</div>
</div> </div>
<div class="fqtbody"> <div class="fqtbody">
<div class="row" v-for="(tmp, i) in list" :key="i" @click="handelClick(tmp)"> <div class="row" v-for="(tmp, i) in list.data" :key="i" @click="handelClick(tmp)">
<div class="col-lg-1">{{i+1}}</div> <div class="col-lg-1">{{(list.pageNo-1)*20+i+1}}</div>
<div class="col-lg-9">{{tmp.name}}</div> <div class="col-lg-9">{{tmp.name}}</div>
<div class="col-lg-2">{{ tmp.types && tmp.types.name}}</div> <div class="col-lg-2">{{ tmp.types && tmp.types.name}}</div>
</div> </div>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<script> <script>
export default { export default {
props: ['list'], props: ['list'],
methods: { methods: {
handelClick(msg) { handelClick(msg) {
this.$emit('toTableFather', msg); this.$emit('toTableFather', msg);
......
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
// 相关链接 // 相关链接
async xgljList(keyword) { async xgljList(keyword) {
const params = { const params = {
id: 9979, id: this.id,
keyword: keyword, keyword: keyword,
}; };
const listRes = await this.$api.news.relatedLinks(params); const listRes = await this.$api.news.relatedLinks(params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment