Commit ba90c29c by Lyan

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

parent c141b41f
......@@ -31,7 +31,7 @@
:class="['tab-pane', 'fade', { 'show active': current === tmp.type }]"
:id="tmp.type"
>
<faqTable :list="tmp.data" @toTableFather="receiveTableFather" />
<faqTable :list="tmp" @toTableFather="receiveTableFather" />
<pages
:currPage="pageParams.currPage"
:pageSize="pageParams.pageSize"
......@@ -194,6 +194,7 @@ export default {
this.list.forEach((el) => {
if (el.active === this.$route.query.type) {
el.data = data.rows;
el.pageNo=data.pageNo
}
});
}
......
......@@ -6,8 +6,8 @@
<div class="col-lg-2">类型</div>
</div>
<div class="fqtbody">
<div class="row" v-for="(tmp, i) in list" :key="i" @click="handelClick(tmp)">
<div class="col-lg-1">{{i+1}}</div>
<div class="row" v-for="(tmp, i) in list.data" :key="i" @click="handelClick(tmp)">
<div class="col-lg-1">{{(list.pageNo-1)*20+i+1}}</div>
<div class="col-lg-9">{{tmp.name}}</div>
<div class="col-lg-2">{{ tmp.types && tmp.types.name}}</div>
</div>
......@@ -17,6 +17,7 @@
<script>
export default {
props: ['list'],
methods: {
handelClick(msg) {
this.$emit('toTableFather', msg);
......
......@@ -292,7 +292,7 @@ export default {
// 相关链接
async xgljList(keyword) {
const params = {
id: 9979,
id: this.id,
keyword: keyword,
};
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