Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
530b7ab0
Commit
530b7ab0
authored
Dec 07, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改条码公告详情面包靴
parent
32dfa8dd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
6 deletions
+51
-6
index.vue
src/components/layout/header/index.vue
+1
-0
mock.js
src/components/layout/header/mock.js
+12
-0
Notice.vue
src/views/Business/Notice.vue
+31
-1
index.vue
src/views/Business/index.vue
+2
-2
breadcrumb.vue
src/views/comps/breadcrumb.vue
+5
-3
No files found.
src/components/layout/header/index.vue
View file @
530b7ab0
...
...
@@ -94,6 +94,7 @@ export default {
// nav_.children &&
// nav_.children.length > 0 &&
// this.$store.commit("system/SET_SUB_NAV", nav_.children);
console
.
log
(
nav_
,
this
.
$route
,
'this.$route.path'
);
if
(
nav_
.
link
===
this
.
$route
.
path
)
{
nav_
.
breadcrumb
&&
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
nav_
.
breadcrumb
);
...
...
src/components/layout/header/mock.js
View file @
530b7ab0
...
...
@@ -317,6 +317,18 @@ export const nav = [
{
name
:
"条码注销公告"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"条码公告"
,
index
:
2
,
link
:
"/Business/Msg"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"条码公告"
,
path
:
"/Business/Notice?id=zhuce"
},
{
name
:
"企业信息"
},
],
},
// {
// id: uuid("gs_nav"),
// name: "我要续展",
...
...
src/views/Business/Notice.vue
View file @
530b7ab0
...
...
@@ -48,6 +48,7 @@
import
cate
from
"../comps/cate.vue"
;
import
pages
from
"../comps/pages.vue"
;
import
list
from
"./copms/list.vue"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
export
default
{
components
:
{
...
...
@@ -86,9 +87,14 @@ export default {
logoutFlag
:
"1"
,
};
},
created
()
{
watch
:
{
$route
:
{
handler
()
{
this
.
init
();
},
immediate
:
true
,
}
},
methods
:
{
init
()
{
this
.
setLogoutFlag
(
this
.
$route
.
query
.
id
);
...
...
@@ -154,6 +160,30 @@ export default {
code
:
obj
.
code
,
},
});
const
result
=
this
.
deepFindBreadcrumb
(
nav
,
'/Business/Msg'
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
},
deepFindBreadcrumb
(
menuList
,
activePath
)
{
let
current
=
[];
const
deep
=
(
arr
,
activePath
)
=>
{
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
+=
1
)
{
if
(
arr
[
i
].
link
!==
activePath
&&
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
>
0
)
{
deep
(
arr
[
i
].
children
,
activePath
);
}
else
if
(
arr
[
i
].
link
===
activePath
)
{
current
=
arr
[
i
];
break
;
}
if
(
current
.
length
>
0
)
{
break
;
}
}
};
deep
(
menuList
,
activePath
);
return
current
;
},
jump
(
i
)
{
// console.log(i);
...
...
src/views/Business/index.vue
View file @
530b7ab0
...
...
@@ -417,13 +417,13 @@ export default {
},
{
name
:
"条码注册公告"
,
path
:
"/Business/Notice"
,
path
:
"/Business/Notice
?id=zhuce
"
,
active
:
""
,
id
:
"zhuce"
,
},
{
name
:
"条码注销公告"
,
path
:
"/Business/Notice"
,
path
:
"/Business/Notice
?id=zhuxiao
"
,
active
:
""
,
id
:
"zhuxiao"
,
},
...
...
src/views/comps/breadcrumb.vue
View file @
530b7ab0
...
...
@@ -26,12 +26,14 @@ export default {
computed
:
{
...
mapState
(
"system"
,
[
"breadcrumb"
]),
bread
()
{
if
(
this
.
breadcrumb
&&
this
.
breadcrumb
.
length
>
0
){
console
.
log
(
this
.
breadcrumb
,
'bread'
);
if
(
this
.
breadcrumb
&&
this
.
breadcrumb
.
length
>
0
)
{
const
bread
=
[...
this
.
breadcrumb
];
console
.
log
(
bread
,
'bread'
);
bread
[
bread
.
length
-
1
].
active
=
true
;
return
bread
;
}
else
{
return
[]
}
else
{
return
[]
;
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment