Commit 8c8c2994 by 林家欣

修改详情页打开方式

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