Commit eade3126 by 林家欣

fix: 修改条码公告传参

parent 1a26e386
...@@ -223,9 +223,9 @@ export const nav = [ ...@@ -223,9 +223,9 @@ export const nav = [
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "条码注册公告", name: "条码注册公告",
index: 2, index: 2,
link: "/Business/Notice?id=zhuce", link: "/Business/Notice?type=zhuce",
query: { query: {
id: 'zhuce' type: 'zhuce'
}, },
breadcrumb: [ breadcrumb: [
{ name: "业务大厅", path: "/Business" }, { name: "业务大厅", path: "/Business" },
...@@ -237,9 +237,9 @@ export const nav = [ ...@@ -237,9 +237,9 @@ export const nav = [
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "条码注销公告", name: "条码注销公告",
index: 2, index: 2,
link: "/Business/Notice?id=zhuxiao", link: "/Business/Notice?type=zhuxiao",
query: { query: {
id: 'zhuxiao' type: 'zhuxiao'
}, },
breadcrumb: [ breadcrumb: [
{ name: "业务大厅", path: "/Business" }, { name: "业务大厅", path: "/Business" },
...@@ -364,7 +364,7 @@ export const nav = [ ...@@ -364,7 +364,7 @@ export const nav = [
breadcrumb: [ breadcrumb: [
{ name: "业务大厅", path: "/Business" }, { name: "业务大厅", path: "/Business" },
{ name: "我还不是系统成员", path: "/Business/Register" }, { name: "我还不是系统成员", path: "/Business/Register" },
{ name: "条码公告", path: "/Business/Notice?id=zhuce" }, { name: "条码公告", path: "/Business/Notice?type=zhuce" },
{ name: "企业信息" }, { name: "企业信息" },
], ],
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:key="i" :key="i"
> >
<button <button
:class="['nav-link', { active: $route.query.id === tmp.type }]" :class="['nav-link', { active: $route.query.type === tmp.type }]"
:id="tmp.type + '-tab'" :id="tmp.type + '-tab'"
data-bs-toggle="tab" data-bs-toggle="tab"
:data-bs-target="'#' + tmp.type" :data-bs-target="'#' + tmp.type"
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
:class="[ :class="[
'tab-pane', 'tab-pane',
'fade', 'fade',
{ 'show active': $route.query.id === tmp.type }, { 'show active': $route.query.type === tmp.type },
]" ]"
:id="tmp.type" :id="tmp.type"
role="tabpanel" role="tabpanel"
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
methods: { methods: {
init() { init() {
this.setLogoutFlag(this.$route.query.id); this.setLogoutFlag(this.$route.query.type);
}, },
setLogoutFlag(currentTab) { setLogoutFlag(currentTab) {
if (currentTab === "zhuce") { if (currentTab === "zhuce") {
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/Business/Notice/Msg", path: "/Business/Notice/Msg",
query: { query: {
id: this.$route.query.id, type: this.$route.query.type,
fId: obj.fid, fId: obj.fid,
code: obj.code, code: obj.code,
}, },
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
this.$router.push({ this.$router.push({
path: this.list[i].link, path: this.list[i].link,
query: { query: {
id: this.list[i].active, type: this.list[i].active,
}, },
}); });
}, },
......
...@@ -499,18 +499,18 @@ export default { ...@@ -499,18 +499,18 @@ export default {
}, },
{ {
name: "条码注册公告", name: "条码注册公告",
path: "/Business/Notice?id=zhuce", path: "/Business/Notice?type=zhuce",
active: "", active: "",
query: { query: {
id: "zhuce", type: "zhuce",
}, },
}, },
{ {
name: "条码注销公告", name: "条码注销公告",
path: "/Business/Notice?id=zhuxiao", path: "/Business/Notice?type=zhuxiao",
active: "", active: "",
query: { query: {
id: "zhuxiao", type: "zhuxiao",
}, },
}, },
], ],
......
...@@ -680,7 +680,7 @@ export default { ...@@ -680,7 +680,7 @@ export default {
name: "条码注册公告", name: "条码注册公告",
url: "/Business/Notice", url: "/Business/Notice",
query: { query: {
id: "zhuce", type: "zhuce",
}, },
}, },
{ {
...@@ -688,7 +688,7 @@ export default { ...@@ -688,7 +688,7 @@ export default {
name: "条码注销公告", name: "条码注销公告",
url: "/Business/Notice", url: "/Business/Notice",
query: { query: {
id: "zhuxiao", type: "zhuxiao",
}, },
}, },
], ],
......
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