Commit 010c871e by 林家欣

修改业务大厅下左侧导航配置

parent d83a3e3e
...@@ -195,7 +195,7 @@ export const nav = [ ...@@ -195,7 +195,7 @@ export const nav = [
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "操作指南", name: "操作指南",
index: 2, index: 2,
link: "/Business/Guide", link: "/Business/Guide1?id=1-1",
breadcrumb: [ breadcrumb: [
{ name: "业务大厅", path: "/Business" }, { name: "业务大厅", path: "/Business" },
{ name: "我还不是系统成员", path: "/Business/Register" }, { name: "我还不是系统成员", path: "/Business/Register" },
...@@ -204,6 +204,17 @@ export const nav = [ ...@@ -204,6 +204,17 @@ export const nav = [
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "我要通报编码信息",
index: 2,
link: "/Business/Guide3",
breadcrumb: [
{ name: "业务大厅", path: "/Business" },
{ name: "操作指南", path: "/Business/Guide1?id=1-1" },
{ name: "我要通报编码信息" },
],
},
{
id: uuid("gs_nav"),
name: "收费公示", name: "收费公示",
index: 2, index: 2,
link: "/Business/Corppaynew", link: "/Business/Corppaynew",
......
...@@ -182,6 +182,23 @@ const routes = [ ...@@ -182,6 +182,23 @@ const routes = [
component: () => import("@/views/Business/Guide.vue"), component: () => import("@/views/Business/Guide.vue"),
}, },
{ {
path: "/Business/Guide1",
name: "Guide3",
meta: {
name: "我要申请商品条码",
},
component: () => import("@/views/Business/Guide1.vue"),
},
{
path: "/Business/Guide3",
name: "Guide3",
meta: {
name: "我要通报编码信息",
fatherPath: '/Business/Guide1',
},
component: () => import("@/views/Business/Guide3.vue"),
},
{
path: "/Business/Corppaynew", path: "/Business/Corppaynew",
name: "Corppaynew", name: "Corppaynew",
meta: { meta: {
......
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
<el-menu-item-group> <el-menu-item-group>
<el-menu-item <el-menu-item
:index="i + 1 + '-' + (ii + 1)" :index="i + 1 + '-' + (ii + 1)"
:class="{ active: tmpB.active === currentName || (tmpB.id && tmpB.id === $route.query.id) }" :class="{
active:
tmpB.active === currentName ||
(tmpB.id && tmpB.id === $route.query.id),
}"
v-for="(tmpB, ii) in tmpA.children" v-for="(tmpB, ii) in tmpA.children"
:key="ii" :key="ii"
@click="jump(tmpB)" @click="jump(tmpB)"
...@@ -72,8 +76,14 @@ export default { ...@@ -72,8 +76,14 @@ export default {
this.$store.commit("system/SET_BREADCRUMB", result.breadcrumb); this.$store.commit("system/SET_BREADCRUMB", result.breadcrumb);
} }
if (el.id) { if (el.id) {
let path;
if (type === "redirect") {
path = el.redirectUrl;
} else {
path = el.path;
}
this.$router.push({ this.$router.push({
path: el.path, path: path,
query: { query: {
id: el.id, id: el.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