Commit 804e1a2c by 林家欣

修改常见问题全部问题请求参数bug

parent edd5e648
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
role="tabpanel" role="tabpanel"
:aria-labelledby="tmp.type + '-tab'" :aria-labelledby="tmp.type + '-tab'"
> >
<faqTable :list="tmp.data" @toTableFather="receiveTableFather"/> <faqTable :list="tmp.data" @toTableFather="receiveTableFather" />
<pages <pages
:currPage="pageParams.currPage" :currPage="pageParams.currPage"
:pageSize="pageParams.pageSize" :pageSize="pageParams.pageSize"
...@@ -89,12 +89,7 @@ export default { ...@@ -89,12 +89,7 @@ export default {
name: "业务办理", name: "业务办理",
link: "/Business/Faq", link: "/Business/Faq",
active: "ywbl", active: "ywbl",
data: [ data: [],
{
name: "企业申请注册厂商识别代码是否必须到中国物品编码中心总部办理?",
type: "业务办理",
},
],
}, },
{ {
type: "cpxxtb", type: "cpxxtb",
...@@ -164,7 +159,11 @@ export default { ...@@ -164,7 +159,11 @@ export default {
methods: { methods: {
init(id) { init(id) {
const current = this.list.filter((item) => item.active === id)[0]; const current = this.list.filter((item) => item.active === id)[0];
if (current.name === "全部问题") {
this.search.typeName = "";
} else {
this.search.typeName = current.name; this.search.typeName = current.name;
}
this.getFaqListByTypeName(); this.getFaqListByTypeName();
}, },
// 接收分页子组件传过来的值 // 接收分页子组件传过来的值
...@@ -174,9 +173,9 @@ export default { ...@@ -174,9 +173,9 @@ export default {
}, },
// 接收列表子组件传过来的值 // 接收列表子组件传过来的值
receiveTableFather(msg) { receiveTableFather(msg) {
console.log(msg, '接收列表子组件传过来的值'); console.log(msg, "接收列表子组件传过来的值");
this.$router.push({ this.$router.push({
path: '/Business/Faq/Msg', path: "/Business/Faq/Msg",
query: { query: {
type: this.current, type: this.current,
id: msg.id, id: msg.id,
......
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