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
9bca8256
Commit
9bca8256
authored
Dec 12, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改由于mock数据导致导航显示问题
parent
81afcb1c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
193 additions
and
146 deletions
+193
-146
HeaderDropdown.vue
src/components/layout/header/HeaderDropdown.vue
+2
-0
index.vue
src/components/layout/header/index.vue
+19
-18
mock.js
src/components/layout/header/mock.js
+144
-117
index.js
src/router/index.js
+2
-2
links.js
src/utils/links.js
+4
-0
Fap.vue
src/views/Business/Fap.vue
+14
-6
Training.vue
src/views/Business/Training.vue
+6
-1
pages.vue
src/views/comps/pages.vue
+2
-2
No files found.
src/components/layout/header/HeaderDropdown.vue
View file @
9bca8256
...
@@ -95,6 +95,8 @@ export default {
...
@@ -95,6 +95,8 @@ export default {
return
(
return
(
<
div
class
=
{
classNames
.
join
(
" "
).
trim
()}
style
=
{
items
[
0
].
style
}
>
<
div
class
=
{
classNames
.
join
(
" "
).
trim
()}
style
=
{
items
[
0
].
style
}
>
{
items
.
map
((
item
)
=>
{
{
items
.
map
((
item
)
=>
{
console
.
log
(
item
.
isHiddenMenu
,
'item.isHiddenMenu'
);
if
(
item
.
isHiddenMenu
)
return
return
(
return
(
<
div
class
=
"gs-dropdown-item"
>
<
div
class
=
"gs-dropdown-item"
>
<
span
<
span
...
...
src/components/layout/header/index.vue
View file @
9bca8256
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
class=
"gs-nav-item nav-item"
class=
"gs-nav-item nav-item"
:key=
"nav.id"
:key=
"nav.id"
:class=
"
{ active: currentNav === nav.id }"
:class=
"
{ active: currentNav === nav.id }"
@click="handleNavClick(nav,$event)"
@click="handleNavClick(nav,
$event)"
>
>
<a
<a
:id=
"`gs-nav-item-$
{nav.id}`"
:id=
"`gs-nav-item-$
{nav.id}`"
...
@@ -44,12 +44,12 @@
...
@@ -44,12 +44,12 @@
<li
<li
v-else
v-else
:key=
"nav.id"
:key=
"nav.id"
@
click=
"handleNavClick(nav,$event)"
@
click=
"handleNavClick(nav,
$event)"
class=
"gs-nav-item nav-item"
class=
"gs-nav-item nav-item"
:class=
"
{ active: currentNav === nav.id }"
:class=
"
{ active: currentNav === nav.id }"
>
>
<a
class=
"nav-link"
href=
"javascript:void(0)"
>
{{
<a
class=
"nav-link"
href=
"javascript:void(0)"
>
{{
nav
.
name
nav
.
name
}}
</a>
}}
</a>
</li>
</li>
</
template
>
</
template
>
...
@@ -71,14 +71,12 @@
...
@@ -71,14 +71,12 @@
<
script
>
<
script
>
import
HeaderBtn
from
"./HeaderBtn.vue"
;
import
HeaderBtn
from
"./HeaderBtn.vue"
;
import
HeaderDropdown
from
"./HeaderDropdown.vue"
;
import
HeaderDropdown
from
"./HeaderDropdown.vue"
;
import
{
nav
}
from
"./mock"
;
import
{
nav
}
from
"./mock"
;
import
Qs
from
"qs"
import
Qs
from
"qs"
;
import
{
import
{
cleanObject
}
from
"@/axios/parameter"
;
cleanObject
,
}
from
"@/axios/parameter"
export
default
{
export
default
{
components
:
{
HeaderBtn
,
HeaderDropdown
},
components
:
{
HeaderBtn
,
HeaderDropdown
},
data
()
{
data
()
{
return
{
return
{
// 点击事件来自头部导航
// 点击事件来自头部导航
...
@@ -101,7 +99,7 @@ export default {
...
@@ -101,7 +99,7 @@ export default {
// console.log(nav_, this.$route, 'this.$route.path');
// console.log(nav_, this.$route, 'this.$route.path');
if
(
nav_
.
link
===
this
.
$route
.
path
)
{
if
(
nav_
.
link
===
this
.
$route
.
path
)
{
nav_
.
breadcrumb
&&
nav_
.
breadcrumb
&&
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
nav_
.
breadcrumb
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
nav_
.
breadcrumb
);
}
else
{
}
else
{
// TODO 去dropdown里面精确查找当前的路径
// TODO 去dropdown里面精确查找当前的路径
let
result
;
let
result
;
...
@@ -112,8 +110,8 @@ export default {
...
@@ -112,8 +110,8 @@ export default {
result
=
this
.
comparePath
(
nav_
.
children
,
path
);
result
=
this
.
comparePath
(
nav_
.
children
,
path
);
}
}
result
&&
result
&&
result
.
breadcrumb
&&
result
.
breadcrumb
&&
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
}
}
}
}
});
});
...
@@ -161,7 +159,7 @@ export default {
...
@@ -161,7 +159,7 @@ export default {
if
(
!
nav
.
children
||
nav
.
children
.
length
===
0
)
{
if
(
!
nav
.
children
||
nav
.
children
.
length
===
0
)
{
this
.
currentNav
=
nav
.
id
;
this
.
currentNav
=
nav
.
id
;
this
.
preActive
=
""
;
this
.
preActive
=
""
;
this
.
$router
.
push
({
path
:
nav
.
link
});
this
.
$router
.
push
({
path
:
nav
.
link
});
}
else
{
}
else
{
// 点击事件不来自子代导航item
// 点击事件不来自子代导航item
if
(
!
this
.
fromDropdown
)
{
if
(
!
this
.
fromDropdown
)
{
...
@@ -169,8 +167,8 @@ export default {
...
@@ -169,8 +167,8 @@ export default {
// 重复点击同一个nav
// 重复点击同一个nav
if
(
this
.
currentNav
===
nav
.
id
)
{
if
(
this
.
currentNav
===
nav
.
id
)
{
this
.
currentNav
=
this
.
preActive
;
this
.
currentNav
=
this
.
preActive
;
this
.
preActive
=
""
this
.
preActive
=
""
;
}
else
{
}
else
{
// 点击的是有dropdown的nav 需要保存当前激活状态
// 点击的是有dropdown的nav 需要保存当前激活状态
if
(
this
.
preActive
===
""
)
{
if
(
this
.
preActive
===
""
)
{
this
.
preActive
=
this
.
currentNav
;
this
.
preActive
=
this
.
currentNav
;
...
@@ -190,9 +188,12 @@ export default {
...
@@ -190,9 +188,12 @@ export default {
// console.log(item.root)
// console.log(item.root)
this
.
updateCurrent
(
item
.
root
.
id
);
this
.
updateCurrent
(
item
.
root
.
id
);
item
.
breadcrumb
&&
item
.
breadcrumb
&&
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
item
.
breadcrumb
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
item
.
breadcrumb
);
// this.$store.commit("system/SET_SUB_NAV", item.root.children);
// this.$store.commit("system/SET_SUB_NAV", item.root.children);
this
.
$router
.
push
({
path
:
item
.
link
});
this
.
$router
.
push
({
path
:
item
.
link
,
query
:
item
.
query
||
{},
});
}
}
},
},
...
@@ -200,7 +201,7 @@ export default {
...
@@ -200,7 +201,7 @@ export default {
// console.log('updateCurrent', id);
// console.log('updateCurrent', id);
this
.
currentNav
=
id
;
this
.
currentNav
=
id
;
this
.
preActive
=
""
;
this
.
preActive
=
""
;
}
}
,
},
},
};
};
</
script
>
</
script
>
...
...
src/components/layout/header/mock.js
View file @
9bca8256
...
@@ -22,7 +22,7 @@ export const nav = [
...
@@ -22,7 +22,7 @@ export const nav = [
nameInHeaderNav
:
"机构概况"
,
nameInHeaderNav
:
"机构概况"
,
index
:
0
,
index
:
0
,
link
:
"/Org"
,
link
:
"/Org"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
breadcrumb
:
[{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"中心简介"
}],
breadcrumb
:
[{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"中心简介"
}],
children
:
[
children
:
[
{
{
...
@@ -30,7 +30,7 @@ export const nav = [
...
@@ -30,7 +30,7 @@ export const nav = [
name
:
"中心简介"
,
name
:
"中心简介"
,
index
:
0
,
index
:
0
,
link
:
"/Org/Intro"
,
link
:
"/Org/Intro"
,
style
:
{
paddingRight
:
'160px'
},
style
:
{
paddingRight
:
'160px'
},
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"中心简介"
},
{
name
:
"中心简介"
},
...
@@ -56,7 +56,48 @@ export const nav = [
...
@@ -56,7 +56,48 @@ export const nav = [
{
name
:
"内设机构"
},
{
name
:
"内设机构"
},
],
],
},
},
{
{
id
:
uuid
(
"gs_nav"
),
name
:
"质检中心/协会/杂志社/标委会/其他"
,
index
:
0
,
link
:
"/Org/Sites"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"质检中心/协会/杂志社/标委会/其他"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"地方编码分支机构"
,
index
:
0
,
link
:
"/Org/Branch"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"地方编码分支机构"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"国际物品编码组织(GS1)"
,
index
:
0
,
link
:
"/Org/BranchMsg"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"国际物品编码组织"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"国际物品编码组织(GS1)成员网站"
,
index
:
0
,
link
:
"/Org/GS1Members"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"国际物品编码组织(GS1)成员网站"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"质量管理体系"
,
name
:
"质量管理体系"
,
index
:
0
,
index
:
0
,
...
@@ -124,46 +165,6 @@ export const nav = [
...
@@ -124,46 +165,6 @@ export const nav = [
},
},
],
],
},
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"质检中心/协会/杂志社/标委会/其他"
,
index
:
0
,
link
:
"/Org/Sites"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"质检中心/协会/杂志社/标委会/其他"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"地方编码分支机构"
,
index
:
0
,
link
:
"/Org/Branch"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"地方编码分支机构"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"国际物品编码组织(GS1)"
,
index
:
0
,
link
:
"/Org/BranchMsg"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"国际物品编码组织"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"国际物品编码组织(GS1)成员网站"
,
index
:
0
,
link
:
"/Org/GS1Members"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"国际物品编码组织(GS1)成员网站"
},
],
},
],
],
},
},
],
],
...
@@ -182,7 +183,7 @@ export const nav = [
...
@@ -182,7 +183,7 @@ export const nav = [
nameInHeaderNav
:
"我还不是系统成员(企业初次申请)"
,
nameInHeaderNav
:
"我还不是系统成员(企业初次申请)"
,
index
:
2
,
index
:
2
,
link
:
""
,
link
:
""
,
style
:
{
flex
:
'0 0 356.24px'
},
style
:
{
flex
:
'0 0 356.24px'
},
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员(企业初次申请)"
}],
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员(企业初次申请)"
}],
children
:
[
children
:
[
{
{
...
@@ -209,9 +210,43 @@ export const nav = [
...
@@ -209,9 +210,43 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"收费公示"
,
index
:
2
,
link
:
"/Business/Corppaynew"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"收费公示"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"条码注册公告"
,
index
:
2
,
link
:
"/Business/Notice?id=zhuce"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"条码注册公告"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"条码注销公告"
,
index
:
2
,
link
:
"/Business/Notice?id=zhuxiao"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"条码注销公告"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"我要申请商品条码"
,
name
:
"我要申请商品条码"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide1"
,
link
:
"/Business/Guide1"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
...
@@ -223,6 +258,7 @@ export const nav = [
...
@@ -223,6 +258,7 @@ export const nav = [
name
:
"我要编码"
,
name
:
"我要编码"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide2"
,
link
:
"/Business/Guide2"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
...
@@ -234,6 +270,7 @@ export const nav = [
...
@@ -234,6 +270,7 @@ export const nav = [
name
:
"微信共享"
,
name
:
"微信共享"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide4"
,
link
:
"/Business/Guide4"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
...
@@ -245,6 +282,7 @@ export const nav = [
...
@@ -245,6 +282,7 @@ export const nav = [
name
:
"我要咨询"
,
name
:
"我要咨询"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide7"
,
link
:
"/Business/Guide7"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
...
@@ -256,6 +294,7 @@ export const nav = [
...
@@ -256,6 +294,7 @@ export const nav = [
name
:
"常见问题"
,
name
:
"常见问题"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide8"
,
link
:
"/Business/Guide8"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
{
name
:
"操作指南"
,
path
:
"/Business/Guide"
},
...
@@ -264,13 +303,14 @@ export const nav = [
...
@@ -264,13 +303,14 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"
收费公示
"
,
name
:
"
我要续展
"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Corppaynew"
,
link
:
"/Business/Renewal"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我
还不是系统成员"
,
path
:
"/Business/Register
"
},
{
name
:
"我
是系统成员"
,
path
:
"/Service/Training
"
},
{
name
:
"
收费公示
"
},
{
name
:
"
我要续展
"
},
],
],
},
},
{
{
...
@@ -278,6 +318,7 @@ export const nav = [
...
@@ -278,6 +318,7 @@ export const nav = [
name
:
"收费目录清单"
,
name
:
"收费目录清单"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Corppay"
,
link
:
"/Business/Corppay"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
...
@@ -289,6 +330,7 @@ export const nav = [
...
@@ -289,6 +330,7 @@ export const nav = [
name
:
"其他增值服务费"
,
name
:
"其他增值服务费"
,
index
:
2
,
index
:
2
,
link
:
"/Business/serviceFee"
,
link
:
"/Business/serviceFee"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
...
@@ -297,31 +339,10 @@ export const nav = [
...
@@ -297,31 +339,10 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"条码注册公告"
,
index
:
2
,
link
:
"/Business/Notice?id=zhuce"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"条码注册公告"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"条码注销公告"
,
index
:
2
,
link
:
"/Business/Notice?id=zhuxiao"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"条码注销公告"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"条码公告"
,
name
:
"条码公告"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Msg"
,
link
:
"/Business/Msg"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"我还不是系统成员"
,
path
:
"/Business/Register"
},
...
@@ -329,18 +350,6 @@ export const nav = [
...
@@ -329,18 +350,6 @@ export const nav = [
{
name
:
"企业信息"
},
{
name
:
"企业信息"
},
],
],
},
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"我要续展"
,
index
:
2
,
link
:
"/Business/Renewal"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Service/Training"
},
{
name
:
"我要续展"
},
],
},
],
],
},
},
{
{
...
@@ -349,7 +358,7 @@ export const nav = [
...
@@ -349,7 +358,7 @@ export const nav = [
nameInHeaderNav
:
"我是系统成员(成员专区)"
,
nameInHeaderNav
:
"我是系统成员(成员专区)"
,
index
:
2
,
index
:
2
,
link
:
"/Business"
,
link
:
"/Business"
,
class
:[
'service_xtcy_custom'
],
class
:
[
'service_xtcy_custom'
],
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员(成员专区)"
}],
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员(成员专区)"
}],
children
:
[
children
:
[
{
{
...
@@ -376,9 +385,12 @@ export const nav = [
...
@@ -376,9 +385,12 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"
零售商品
"
,
name
:
"
我要编码
"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Code1"
,
link
:
"/Business/Code1"
,
query
:
{
id
:
'1-1'
,
},
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
...
@@ -388,30 +400,6 @@ export const nav = [
...
@@ -388,30 +400,6 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"非零售商品"
,
index
:
2
,
link
:
"/Business/Code2"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
// { name: "我要编码", path: "/Business/Code1?id=1-1" },
{
name
:
"非零售商品"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"物流单元"
,
index
:
2
,
link
:
"/Business/Code3"
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
// { name: "我要编码", path: "/Business/Code1?id=1-1" },
{
name
:
"物流单元"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"我要通报编码信息(领取条码卡、激活条码卡、通报编码信息)"
,
name
:
"我要通报编码信息(领取条码卡、激活条码卡、通报编码信息)"
,
index
:
2
,
index
:
2
,
link
:
"/Business/Guide3"
,
link
:
"/Business/Guide3"
,
...
@@ -460,6 +448,45 @@ export const nav = [
...
@@ -460,6 +448,45 @@ export const nav = [
index
:
2
,
index
:
2
,
link
:
"http://so.anccnet.com/Home/Login"
,
link
:
"http://so.anccnet.com/Home/Login"
,
},
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"零售商品"
,
index
:
2
,
link
:
"/Business/Code1"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
// { name: "我要编码", path: "/Business/Code1?id=1-1" },
{
name
:
"零售商品"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"非零售商品"
,
index
:
2
,
link
:
"/Business/Code2"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
// { name: "我要编码", path: "/Business/Code1?id=1-1" },
{
name
:
"非零售商品"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"物流单元"
,
index
:
2
,
link
:
"/Business/Code3"
,
isHiddenMenu
:
true
,
breadcrumb
:
[
{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"我是系统成员"
,
path
:
"/Business/Register"
},
// { name: "我要编码", path: "/Business/Code1?id=1-1" },
{
name
:
"物流单元"
},
],
},
],
],
},
},
{
{
...
@@ -500,7 +527,7 @@ export const nav = [
...
@@ -500,7 +527,7 @@ export const nav = [
nameInHeaderNav
:
"跨境业务办理专区"
,
nameInHeaderNav
:
"跨境业务办理专区"
,
index
:
2
,
index
:
2
,
link
:
"/Business"
,
link
:
"/Business"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"跨境业务办理专区"
}],
breadcrumb
:
[{
name
:
"业务大厅"
,
path
:
"/Business"
},
{
name
:
"跨境业务办理专区"
}],
children
:
[
children
:
[
{
{
...
@@ -587,14 +614,14 @@ export const nav = [
...
@@ -587,14 +614,14 @@ export const nav = [
name
:
"资讯中心"
,
name
:
"资讯中心"
,
index
:
5
,
index
:
5
,
link
:
"/News/index"
,
link
:
"/News/index"
,
style
:
{
flex
:
'1 0 620px'
},
style
:
{
flex
:
'1 0 620px'
},
children
:
[
children
:
[
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"图片资讯"
,
name
:
"图片资讯"
,
index
:
5
,
index
:
5
,
link
:
"/News/PicNews"
,
link
:
"/News/PicNews"
,
style
:
{
paddingRight
:
'160px'
},
style
:
{
paddingRight
:
'160px'
},
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"图片资讯"
},
{
name
:
"图片资讯"
},
...
@@ -635,7 +662,7 @@ export const nav = [
...
@@ -635,7 +662,7 @@ export const nav = [
name
:
"国际追踪"
,
name
:
"国际追踪"
,
index
:
5
,
index
:
5
,
link
:
"/News/International"
,
link
:
"/News/International"
,
style
:
{
paddingRight
:
'132px'
},
style
:
{
paddingRight
:
'132px'
},
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"国际追踪"
},
{
name
:
"国际追踪"
},
...
@@ -699,14 +726,14 @@ export const nav = [
...
@@ -699,14 +726,14 @@ export const nav = [
name
:
"应用领域"
,
name
:
"应用领域"
,
index
:
5
,
index
:
5
,
link
:
"/News/index"
,
link
:
"/News/index"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
children
:
[
children
:
[
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"零售"
,
name
:
"零售"
,
index
:
5
,
index
:
5
,
link
:
"/News/Retail"
,
link
:
"/News/Retail"
,
style
:
{
paddingRight
:
'132px'
},
style
:
{
paddingRight
:
'132px'
},
breadcrumb
:
[
breadcrumb
:
[
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"资讯中心"
,
path
:
"/News/index"
},
{
name
:
"零售"
},
{
name
:
"零售"
},
...
@@ -799,7 +826,7 @@ export const nav = [
...
@@ -799,7 +826,7 @@ export const nav = [
nameInHeaderNav
:
"技术与标准"
,
nameInHeaderNav
:
"技术与标准"
,
index
:
0
,
index
:
0
,
link
:
"/Knowledge"
,
link
:
"/Knowledge"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
breadcrumb
:
[{
name
:
"技术与标准"
,
path
:
"/Knowledge"
},
{
name
:
"技术与标准"
}],
breadcrumb
:
[{
name
:
"技术与标准"
,
path
:
"/Knowledge"
},
{
name
:
"技术与标准"
}],
children
:
[
children
:
[
{
{
...
@@ -830,7 +857,7 @@ export const nav = [
...
@@ -830,7 +857,7 @@ export const nav = [
nameInHeaderNav
:
"技术知识"
,
nameInHeaderNav
:
"技术知识"
,
index
:
6
,
index
:
6
,
link
:
"/Knowledge"
,
link
:
"/Knowledge"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
breadcrumb
:
[{
name
:
"技术知识"
,
path
:
"/Knowledge"
},
{
name
:
"技术知识"
}],
breadcrumb
:
[{
name
:
"技术知识"
,
path
:
"/Knowledge"
},
{
name
:
"技术知识"
}],
children
:
[
children
:
[
{
{
...
@@ -907,7 +934,7 @@ export const nav = [
...
@@ -907,7 +934,7 @@ export const nav = [
nameInHeaderNav
:
"政策法规"
,
nameInHeaderNav
:
"政策法规"
,
index
:
1
,
index
:
1
,
link
:
"/Knowledge/Statute"
,
link
:
"/Knowledge/Statute"
,
style
:
{
flex
:
'1 0 auto'
},
style
:
{
flex
:
'1 0 auto'
},
breadcrumb
:
[{
name
:
"知识中心"
,
path
:
"/Knowledge"
},
{
name
:
"政策法规"
}],
breadcrumb
:
[{
name
:
"知识中心"
,
path
:
"/Knowledge"
},
{
name
:
"政策法规"
}],
children
:
[{}]
children
:
[{}]
},
},
...
...
src/router/index.js
View file @
9bca8256
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
VueRouter
from
"vue-router"
;
import
VueRouter
from
"vue-router"
;
import
main
from
"@/components/main.vue"
;
import
main
from
"@/components/main.vue"
;
import
{
service
}
from
"@/router/service"
;
import
{
service
}
from
"@/router/service"
;
Vue
.
use
(
VueRouter
);
Vue
.
use
(
VueRouter
);
...
@@ -550,7 +550,7 @@ const routes = [
...
@@ -550,7 +550,7 @@ const routes = [
},
},
component
:
()
=>
import
(
"@/views/News/Notice.vue"
),
component
:
()
=>
import
(
"@/views/News/Notice.vue"
),
},
},
{
{
path
:
"/News/FoodSafety"
,
path
:
"/News/FoodSafety"
,
name
:
"FoodSafety"
,
name
:
"FoodSafety"
,
...
...
src/utils/links.js
0 → 100644
View file @
9bca8256
export
const
link
=
{
pxspkc
:
'http://v3.gds.org.cn/LoginService.aspx'
,
}
\ No newline at end of file
src/views/Business/Fap.vue
View file @
9bca8256
...
@@ -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:
current
=== 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"
...
@@ -33,11 +33,7 @@
...
@@ -33,11 +33,7 @@
<div
<div
v-for=
"(tmp, i) in list"
v-for=
"(tmp, i) in list"
:key=
"i"
:key=
"i"
:class=
"[
:class=
"['tab-pane', 'fade',
{ 'show active': current === tmp.type }]"
'tab-pane',
'fade',
{ 'show active': $route.query.id === tmp.type },
]"
:id="tmp.type"
:id="tmp.type"
role="tabpanel"
role="tabpanel"
:aria-labelledby="tmp.type + '-tab'"
:aria-labelledby="tmp.type + '-tab'"
...
@@ -169,6 +165,18 @@ export default {
...
@@ -169,6 +165,18 @@ export default {
],
],
};
};
},
},
computed
:
{
current
()
{
// console.log(this.$route.query.id, "$route.query.id");
let
id
;
if
(
this
.
$route
.
query
.
id
)
{
id
=
this
.
$route
.
query
.
id
;
}
else
{
id
=
"qbwt"
;
}
return
id
;
},
},
methods
:
{
methods
:
{
jump
(
i
)
{
jump
(
i
)
{
// console.log(i);
// console.log(i);
...
...
src/views/Business/Training.vue
View file @
9bca8256
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
系统成员可登录中国商品信息服务平台的成员专区选择在线学习服务培训视频教程,即可简单、有效、快速的学习到实用的商品条码知识,了解GS1系统并按标准使用商品条码,如需了解请按下方提示点击进入。
系统成员可登录中国商品信息服务平台的成员专区选择在线学习服务培训视频教程,即可简单、有效、快速的学习到实用的商品条码知识,了解GS1系统并按标准使用商品条码,如需了解请按下方提示点击进入。
</p>
</p>
<p
class=
"pxspkc-btn"
>
<p
class=
"pxspkc-btn"
>
<button>
点击进入
</button>
<button
@
click=
"pxspkcHandelClick"
>
点击进入
</button>
</p>
</p>
<p>
<p>
<img
<img
...
@@ -98,6 +98,7 @@ import cate from "../comps/cate.vue";
...
@@ -98,6 +98,7 @@ import cate from "../comps/cate.vue";
import
fzzx
from
"./copms/fzzx.vue"
;
import
fzzx
from
"./copms/fzzx.vue"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
import
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
import
{
link
}
from
"@/utils/links"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -289,6 +290,10 @@ export default {
...
@@ -289,6 +290,10 @@ export default {
this
.
currentList
=
this
.
tabs
[
i
].
list
;
this
.
currentList
=
this
.
tabs
[
i
].
list
;
this
.
updateKey
=
new
Date
().
getTime
();
this
.
updateKey
=
new
Date
().
getTime
();
},
},
// 培训视频课程点击进入
pxspkcHandelClick
()
{
window
.
open
(
link
.
pxspkc
,
'_blank'
);
},
jump
()
{
jump
()
{
// this.$router.push({
// this.$router.push({
// path: "/Org/Branch",
// path: "/Org/Branch",
...
...
src/views/comps/pages.vue
View file @
9bca8256
...
@@ -60,10 +60,10 @@ export default {
...
@@ -60,10 +60,10 @@ export default {
};
};
},
},
mounted
(){
mounted
(){
console
.
log
(
this
.
currPage
)
//
console.log(this.currPage)
},
},
methods
:{
methods
:{
changeSize
(
i
){
changeSize
(){
this
.
$emit
(
'getLimit'
,
this
.
currPage
)
this
.
$emit
(
'getLimit'
,
this
.
currPage
)
},
},
goPage
(
i
){
goPage
(
i
){
...
...
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