Commit 8c8c2994 by 林家欣

修改详情页打开方式

parent 82f21659
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
</li> </li>
</ul> </ul>
<div class="search"> <div class="search">
<el-input placeholder="请输入内容" v-model="search.keywords" clearable> <el-input placeholder="请输入内容" v-model="search.name" clearable>
</el-input </el-input
><button>查询</button> ><button @click="getFaqListByTypeName">查询</button>
</div> </div>
<div class="tab-content" id="myTabContent"> <div class="tab-content" id="myTabContent">
<div <div
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
}, },
search: { search: {
typeName: "", typeName: "",
keywords: "", name: "",
}, },
pageParams: { pageParams: {
currPage: 1, currPage: 1,
...@@ -174,18 +174,20 @@ export default { ...@@ -174,18 +174,20 @@ export default {
// 接收列表子组件传过来的值 // 接收列表子组件传过来的值
receiveTableFather(msg) { receiveTableFather(msg) {
console.log(msg, "接收列表子组件传过来的值"); console.log(msg, "接收列表子组件传过来的值");
this.$router.push({ let routeData = this.$router.resolve({
path: "/Business/Faq/Msg", path: "/Business/Faq/Msg",
query: { query: {
type: this.current, type: this.current,
id: msg.id, id: msg.id,
}, },
}); });
window.open(routeData.href, "_blank");
}, },
// 常见问题 // 常见问题
async getFaqListByTypeName() { async getFaqListByTypeName() {
const params = { const params = {
typeName: this.search.typeName, typeName: this.search.typeName,
name: this.search.name,
pageNo: this.pageParams.currPage, pageNo: this.pageParams.currPage,
pageSize: this.pageParams.pageSize, pageSize: this.pageParams.pageSize,
}; };
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}, },
// 接收列表子组件传过来的值 // 接收列表子组件传过来的值
receiveListChild(obj) { receiveListChild(obj) {
this.$router.push({ let routeData = this.$router.resolve({
path: "/Business/Notice/Msg", path: "/Business/Notice/Msg",
query: { query: {
type: this.$route.query.type, type: this.$route.query.type,
...@@ -154,6 +154,7 @@ export default { ...@@ -154,6 +154,7 @@ export default {
code: obj.code, code: obj.code,
}, },
}); });
window.open(routeData.href, "_blank");
const result = deepFindBreadcrumb(nav, '/Business/Notice/Msg'); const result = deepFindBreadcrumb(nav, '/Business/Notice/Msg');
this.$store.commit("system/SET_BREADCRUMB", result.breadcrumb); this.$store.commit("system/SET_BREADCRUMB", result.breadcrumb);
}, },
......
...@@ -25,12 +25,13 @@ export default { ...@@ -25,12 +25,13 @@ export default {
}, },
methods: { methods: {
openMsg(branchCode) { openMsg(branchCode) {
this.$router.push({ let routeData = this.$router.resolve({
path: "/Org/BranchMsg", path: "/Org/BranchMsg",
query: { query: {
branchCode, branchCode,
}, },
}); });
window.open(routeData.href, "_blank");
}, },
}, },
}; };
......
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