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
5286e90b
Commit
5286e90b
authored
Dec 11, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/gs1-office-web-sit/gs1
parents
980cb66e
a90c6063
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
236 additions
and
230 deletions
+236
-230
index.vue
src/components/layout/header/index.vue
+19
-13
mock.js
src/components/layout/header/mock.js
+0
-0
utils.js
src/utils/utils.js
+30
-0
Code1.vue
src/views/Business/Code1.vue
+5
-2
Code2.vue
src/views/Business/Code2.vue
+5
-2
Code3.vue
src/views/Business/Code3.vue
+6
-3
GLN.vue
src/views/Business/GLN.vue
+5
-1
Guide.vue
src/views/Business/Guide.vue
+9
-5
Guide1.vue
src/views/Business/Guide1.vue
+6
-4
Guide2.vue
src/views/Business/Guide2.vue
+6
-7
Guide3.vue
src/views/Business/Guide3.vue
+5
-6
Guide4.vue
src/views/Business/Guide4.vue
+5
-6
Guide5.vue
src/views/Business/Guide5.vue
+6
-7
Guide6.vue
src/views/Business/Guide6.vue
+5
-6
Guide7.vue
src/views/Business/Guide7.vue
+5
-6
Notice.vue
src/views/Business/Notice.vue
+2
-23
Register.vue
src/views/Business/Register.vue
+4
-25
Training.vue
src/views/Business/Training.vue
+8
-3
zxcxgj.vue
src/views/Business/copms/zxcxgj.vue
+32
-3
index.vue
src/views/Business/index.vue
+61
-59
ypzs.vue
src/views/Business/ypzs.vue
+1
-1
left.vue
src/views/comps/left.vue
+2
-23
left2.vue
src/views/comps/left2.vue
+9
-25
No files found.
src/components/layout/header/index.vue
View file @
5286e90b
...
@@ -125,21 +125,27 @@ export default {
...
@@ -125,21 +125,27 @@ export default {
window
.
removeEventListener
(
"click"
,
this
.
handleWindowClick
);
window
.
removeEventListener
(
"click"
,
this
.
handleWindowClick
);
},
},
methods
:
{
methods
:
{
comparePath
(
nav
,
path
)
{
comparePath
(
arr
,
activePath
)
{
let
result
=
null
;
let
current
=
[];
nav
.
forEach
((
item
)
=>
{
const
deep
=
(
arr
,
activePath
)
=>
{
if
(
item
.
link
===
path
)
{
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
+=
1
)
{
result
=
item
;
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
;
}
}
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
item
.
children
.
forEach
((
item_
)
=>
{
if
(
item_
.
link
===
path
)
{
result
=
item_
;
}
}
});
};
}
deep
(
arr
,
activePath
);
});
return
current
;
return
result
;
},
},
handleWindowClick
()
{
handleWindowClick
()
{
// console.log('handleWindowClick', this.fromNav, this.preActive);
// console.log('handleWindowClick', this.fromNav, this.preActive);
...
...
src/components/layout/header/mock.js
View file @
5286e90b
This diff is collapsed.
Click to expand it.
src/utils/utils.js
View file @
5286e90b
...
@@ -58,3 +58,32 @@ export const getUUID = () => {
...
@@ -58,3 +58,32 @@ export const getUUID = () => {
return
(
c
===
'x'
?
(
Math
.
random
()
*
16
|
0
)
:
(
'r&0x3'
|
'0x8'
)).
toString
(
16
)
return
(
c
===
'x'
?
(
Math
.
random
()
*
16
|
0
)
:
(
'r&0x3'
|
'0x8'
)).
toString
(
16
)
})
})
}
}
/**
* 获取面包屑
*/
export
const
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
;
}
}
};
if
(
activePath
)
{
deep
(
menuList
,
activePath
);
}
return
current
;
};
\ No newline at end of file
src/views/Business/Code1.vue
View file @
5286e90b
...
@@ -249,11 +249,11 @@ export default {
...
@@ -249,11 +249,11 @@ export default {
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin
-bottom
:
20px
;
margin
:
15px
0
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -267,6 +267,9 @@ export default {
...
@@ -267,6 +267,9 @@ export default {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
}
}
}
}
...
...
src/views/Business/Code2.vue
View file @
5286e90b
...
@@ -169,11 +169,11 @@ export default {
...
@@ -169,11 +169,11 @@ export default {
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin
-bottom
:
20px
;
margin
:
15px
0
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -187,6 +187,9 @@ export default {
...
@@ -187,6 +187,9 @@ export default {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
}
}
}
}
...
...
src/views/Business/Code3.vue
View file @
5286e90b
...
@@ -115,7 +115,7 @@ export default {
...
@@ -115,7 +115,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
flsspCate
:
{
flsspCate
:
{
name
:
"
非零售商品
"
,
name
:
"
物流单元
"
,
ico
:
""
,
ico
:
""
,
},
},
};
};
...
@@ -147,11 +147,11 @@ export default {
...
@@ -147,11 +147,11 @@ export default {
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin
-bottom
:
20px
;
margin
:
15px
0
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -165,6 +165,9 @@ export default {
...
@@ -165,6 +165,9 @@ export default {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
;
}
}
}
}
}
}
...
...
src/views/Business/GLN.vue
View file @
5286e90b
...
@@ -111,7 +111,11 @@ export default {
...
@@ -111,7 +111,11 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
ckxqJump
()
{}
ckxqJump
()
{
this
.
$router
.
push
({
path
:
'/Knowledge/xts'
})
}
},
},
};
};
</
script
>
</
script
>
...
...
src/views/Business/Guide.vue
View file @
5286e90b
...
@@ -50,16 +50,20 @@ export default {
...
@@ -50,16 +50,20 @@ export default {
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
rgba
(
0
,
121
,
158
,
1
);
color
:
rgba
(
0
,
121
,
158
,
1
);
margin
:
15px
0
;
margin-bottom
:
20px
;
}
}
.msg-cont
{
.msg-cont
{
line-height
:
23px
;
p{
color
:
rgba
(
102
,
102
,
102
,
1
);
text-indent
:
25px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
}
}
}
}
}
...
...
src/views/Business/Guide1.vue
View file @
5286e90b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"msg-title"
ref=
"1-2"
>
条码注册方式:
</div>
<div
class=
"msg-title"
ref=
"1-2"
>
条码注册方式:
</div>
<p>
<p>
线上办理:登录中国物品编码中心官网,点击“我要申请商品条码”,手机号绑定成功后,按流程操作即可。
<a
线上办理:登录中国物品编码中心官网,点击“我要申请商品条码”,手机号绑定成功后,按流程操作即可。
<a
href=
"/manage/down/2021zcbl.pdf"
href=
"
http://www.gs1cn.org
/manage/down/2021zcbl.pdf"
target=
"_blank"
target=
"_blank"
style=
"color: Red"
style=
"color: Red"
>
查看操作指南
</a
>
查看操作指南
</a
...
@@ -184,12 +184,11 @@ p {
...
@@ -184,12 +184,11 @@ p {
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -200,6 +199,9 @@ p {
...
@@ -200,6 +199,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
img
{
img
{
max-width
:
100%
;
max-width
:
100%
;
...
...
src/views/Business/Guide2.vue
View file @
5286e90b
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
"
"
>
>
线上办理:登录中国商品信息服务平台,从“应用市场—条码商桥”处下单,即时支付即时下载。
<a
线上办理:登录中国商品信息服务平台,从“应用市场—条码商桥”处下单,即时支付即时下载。
<a
href=
"/manage/down/2021jpdz.pdf"
href=
"
http://www.gs1cn.org
/manage/down/2021jpdz.pdf"
target=
"_blank"
target=
"_blank"
style=
"color: Red"
style=
"color: Red"
>
查看操作指南
</a
>
查看操作指南
</a
...
@@ -144,18 +144,14 @@ export default {
...
@@ -144,18 +144,14 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -166,6 +162,9 @@ p {
...
@@ -166,6 +162,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
img
{
img
{
max-width
:
100%
;
max-width
:
100%
;
...
...
src/views/Business/Guide3.vue
View file @
5286e90b
...
@@ -123,9 +123,6 @@ export default {
...
@@ -123,9 +123,6 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.ljtb-btn
{
.ljtb-btn
{
...
@@ -136,12 +133,11 @@ p {
...
@@ -136,12 +133,11 @@ p {
border-radius
:
5px
;
border-radius
:
5px
;
}
}
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -155,6 +151,9 @@ p {
...
@@ -155,6 +151,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
}
}
.text-right
{
.text-right
{
...
...
src/views/Business/Guide4.vue
View file @
5286e90b
...
@@ -106,18 +106,14 @@ export default {
...
@@ -106,18 +106,14 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -128,6 +124,9 @@ p {
...
@@ -128,6 +124,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
img
{
img
{
max-width
:
100%
;
max-width
:
100%
;
...
...
src/views/Business/Guide5.vue
View file @
5286e90b
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
/>
/>
</div>
</div>
<p>
<p>
查看
<a
href=
"/Service/Training
.aspx
"
target=
"_blank"
查看
<a
href=
"/Service/Training"
target=
"_blank"
>
全国分支机构培训计划
</a
>
全国分支机构培训计划
</a
>
,选择适合方式、场次参加培训。
>
,选择适合方式、场次参加培训。
</p>
</p>
...
@@ -155,9 +155,6 @@ export default {
...
@@ -155,9 +155,6 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.ljtb-btn
{
.ljtb-btn
{
...
@@ -167,12 +164,11 @@ p {
...
@@ -167,12 +164,11 @@ p {
padding
:
10px
;
padding
:
10px
;
}
}
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -186,6 +182,9 @@ p {
...
@@ -186,6 +182,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
a
{
a
{
color
:
#008dbd
;
color
:
#008dbd
;
...
...
src/views/Business/Guide6.vue
View file @
5286e90b
...
@@ -123,9 +123,6 @@ export default {
...
@@ -123,9 +123,6 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.ljtb-btn
{
.ljtb-btn
{
...
@@ -135,12 +132,11 @@ p {
...
@@ -135,12 +132,11 @@ p {
padding
:
10px
;
padding
:
10px
;
}
}
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -154,6 +150,9 @@ p {
...
@@ -154,6 +150,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
a
{
a
{
color
:
#008dbd
;
color
:
#008dbd
;
...
...
src/views/Business/Guide7.vue
View file @
5286e90b
...
@@ -126,9 +126,6 @@ export default {
...
@@ -126,9 +126,6 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
p
{
line-height
:
28px
;
}
.guide
{
.guide
{
@include
module-box;
@include
module-box;
.ljtb-btn
{
.ljtb-btn
{
...
@@ -138,12 +135,11 @@ p {
...
@@ -138,12 +135,11 @@ p {
padding
:
10px
;
padding
:
10px
;
}
}
.guide-msg
{
.guide-msg
{
margin
:
3
0px
0
;
margin
:
2
0px
0
;
font-size
:
14px
;
font-size
:
14px
;
.msg-title
{
.msg-title
{
color
:
#008dbd
;
color
:
#008dbd
;
margin-top
:
15px
;
margin
:
15px
0
;
margin-bottom
:
10px
;
&.actived
{
&.actived
{
color
:
#04408d
;
color
:
#04408d
;
}
}
...
@@ -157,6 +153,9 @@ p {
...
@@ -157,6 +153,9 @@ p {
p
{
p
{
text-indent
:
25px
;
text-indent
:
25px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#454545
;
font-weight
:
300
;
line-height
:
24px
}
}
a
{
a
{
color
:
#008dbd
;
color
:
#008dbd
;
...
...
src/views/Business/Notice.vue
View file @
5286e90b
...
@@ -49,6 +49,7 @@ import cate from "../comps/cate.vue";
...
@@ -49,6 +49,7 @@ import cate from "../comps/cate.vue";
import
pages
from
"../comps/pages.vue"
;
import
pages
from
"../comps/pages.vue"
;
import
list
from
"./copms/list.vue"
;
import
list
from
"./copms/list.vue"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -154,31 +155,9 @@ export default {
...
@@ -154,31 +155,9 @@ export default {
code
:
obj
.
code
,
code
:
obj
.
code
,
},
},
});
});
const
result
=
this
.
deepFindBreadcrumb
(
nav
,
'/Business/Msg'
);
const
result
=
deepFindBreadcrumb
(
nav
,
'/Business/Msg'
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
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
)
{
jump
(
i
)
{
// console.log(i);
// console.log(i);
this
.
setLogoutFlag
(
this
.
list
[
i
].
active
);
this
.
setLogoutFlag
(
this
.
list
[
i
].
active
);
...
...
src/views/Business/Register.vue
View file @
5286e90b
...
@@ -12,14 +12,8 @@
...
@@ -12,14 +12,8 @@
/>
/>
</div>
</div>
</div>
</div>
<div
class=
"register-bottom register-cont"
v-if=
"false"
>
<div
class=
"register-bottom register-cont"
v-if=
"true"
>
<cate
:father=
"zxcxgjCate"
></cate>
<zxcxgj
:middle=
"true"
/>
<div
class=
"row zxcxgj-ul"
>
<div
class=
"col-lg-4"
v-for=
"(tmp, i) in zxcxgjList"
:key=
"i"
>
<img
:src=
"tmp.ico"
alt=
""
class=
"zxcxgj-img"
/>
<div
class=
"zxcxgj-bt"
>
{{
tmp
.
name
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,15 +30,15 @@ import tmgg from "./copms/tmgg.vue";
...
@@ -36,15 +30,15 @@ import tmgg from "./copms/tmgg.vue";
import
bgxz
from
"./copms/bgxz.vue"
;
import
bgxz
from
"./copms/bgxz.vue"
;
import
dffzjg
from
"./copms/dffzjg.vue"
;
import
dffzjg
from
"./copms/dffzjg.vue"
;
import
zcfg
from
"./copms/zcfg.vue"
;
import
zcfg
from
"./copms/zcfg.vue"
;
import
cate
from
"../comps/cate
.vue"
;
import
zxcxgj
from
"./copms/zxcxgj
.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
cate
,
tmgg
,
tmgg
,
dffzjg
,
dffzjg
,
bgxz
,
bgxz
,
zcfg
,
zcfg
,
zxcxgj
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -103,20 +97,6 @@ export default {
...
@@ -103,20 +97,6 @@ export default {
.register-bottom
{
.register-bottom
{
margin-top
:
20px
;
margin-top
:
20px
;
.zxcxgj-ul
{
padding
:
12.5px
0
;
>
div
{
margin
:
12.5px
0
;
text-align
:
center
;
.zxcxgj-img
{
margin-bottom
:
13px
;
}
.zxcxgj-bt
{
color
:
#0e2c6b
;
font-size
:
14px
;
}
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/Business/Training.vue
View file @
5286e90b
...
@@ -96,6 +96,8 @@
...
@@ -96,6 +96,8 @@
<
script
>
<
script
>
import
cate
from
"../comps/cate.vue"
;
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
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -288,9 +290,12 @@ export default {
...
@@ -288,9 +290,12 @@ export default {
this
.
updateKey
=
new
Date
().
getTime
();
this
.
updateKey
=
new
Date
().
getTime
();
},
},
jump
()
{
jump
()
{
this
.
$router
.
push
({
// this.$router.push({
path
:
"/Org/Branch"
,
// path: "/Org/Branch",
});
// });
window
.
open
(
'/Org/Branch'
,
'_self'
);
const
result
=
deepFindBreadcrumb
(
nav
,
'/Org/Branch'
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
},
},
},
},
};
};
...
...
src/views/Business/copms/zxcxgj.vue
View file @
5286e90b
<
template
>
<
template
>
<div
class=
"zxcxgj"
>
<div
class=
"zxcxgj"
>
<cate
:father=
"zxcxgjCate"
></cate>
<cate
:father=
"zxcxgjCate"
></cate>
<ul
class=
"zxcxgj-ul"
>
<div
class=
"container"
v-if=
"middle"
>
<div
class=
"row zxcxgj-middle"
>
<div
class=
"col-lg-4"
v-for=
"(tmp, i) in zxcxgjList"
:key=
"i"
>
<img
:src=
"tmp.ico"
alt=
""
class=
"zxcxgj-img"
/>
<div
class=
"zxcxgj-bt"
>
{{
tmp
.
name
}}
</div>
</div>
</div>
</div>
<ul
class=
"zxcxgj-bottom"
v-else
>
<li
v-for=
"(tmp, i) in zxcxgjList"
:key=
"i"
>
<li
v-for=
"(tmp, i) in zxcxgjList"
:key=
"i"
>
<img
:src=
"tmp.ico"
alt=
""
class=
"zxcxgj-img"
/>
<img
:src=
"tmp.ico"
alt=
""
class=
"zxcxgj-img"
/>
<div
class=
"zxcxgj-bt"
>
{{
tmp
.
name
}}
</div>
<div
class=
"zxcxgj-bt"
>
{{
tmp
.
name
}}
</div>
...
@@ -13,6 +21,7 @@
...
@@ -13,6 +21,7 @@
import
cate
from
"../../comps/cate.vue"
;
import
cate
from
"../../comps/cate.vue"
;
export
default
{
export
default
{
props
:
[
"middle"
],
components
:
{
components
:
{
cate
,
cate
,
},
},
...
@@ -51,7 +60,7 @@ export default {
...
@@ -51,7 +60,7 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.zxcxgj
{
.zxcxgj
{
@include
module-box;
@include
module-box;
.zxcxgj-
ul
{
.zxcxgj-
bottom
{
padding
:
15px
0
;
padding
:
15px
0
;
margin
:
0
;
margin
:
0
;
display
:
flex
;
display
:
flex
;
...
@@ -74,7 +83,27 @@ export default {
...
@@ -74,7 +83,27 @@ export default {
}
}
li
:hover
{
li
:hover
{
transform
:
translate
(
-5px
,
-5px
);
transform
:
translate
(
-5px
,
-5px
);
box-shadow
:
5px
5px
12px
rgba
(
0
,
0
,
0
,
.2
);
box-shadow
:
5px
5px
12px
rgba
(
0
,
0
,
0
,
0.2
);
}
}
.zxcxgj-middle
{
padding
:
12.5px
0
;
>
div
{
margin
:
12.5px
0
;
text-align
:
center
;
transition
:
all
0.25s
;
cursor
:
pointer
;
.zxcxgj-img
{
margin-bottom
:
13px
;
}
.zxcxgj-bt
{
color
:
#0e2c6b
;
font-size
:
14px
;
}
&
:hover
{
transform
:
translate
(
-5px
,
-5px
);
box-shadow
:
5px
5px
12px
rgba
(
0
,
0
,
0
,
0.2
);
}
}
}
}
}
}
}
...
...
src/views/Business/index.vue
View file @
5286e90b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<router-view
class=
"marginTopLg20"
></router-view>
<router-view
class=
"marginTopLg20"
></router-view>
</div>
</div>
</div>
</div>
<div
class=
"marginTop20"
>
<div
class=
"marginTop20"
v-if=
"$route.path !=='/Business/Register'"
>
<zxcxgj
/>
<zxcxgj
/>
</div>
</div>
</div>
</div>
...
@@ -46,8 +46,9 @@ export default {
...
@@ -46,8 +46,9 @@ export default {
children
:
[
children
:
[
{
{
name
:
"我要申请商品条码"
,
name
:
"我要申请商品条码"
,
path
:
""
,
path
:
"
/Business/Guide1
"
,
active
:
""
,
active
:
""
,
id
:
""
,
children
:
[
children
:
[
{
{
name
:
"1.企业申请商品条码资格"
,
name
:
"1.企业申请商品条码资格"
,
...
@@ -297,62 +298,62 @@ export default {
...
@@ -297,62 +298,62 @@ export default {
},
},
],
],
},
},
//
{
{
//
name: "常见问题",
name
:
"常见问题"
,
//
path: "",
path
:
""
,
//
active: "",
active
:
""
,
//
children: [
children
:
[
//
{
{
//
name: "1.业务办理",
name
:
"1.业务办理"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "ywbl",
id
:
"ywbl"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "2.产品信息通报",
name
:
"2.产品信息通报"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "cpxxtb",
id
:
"cpxxtb"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "3.编码技术",
name
:
"3.编码技术"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "bmjs",
id
:
"bmjs"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "4.法规与标准",
name
:
"4.法规与标准"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "fgybz",
id
:
"fgybz"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "5.条码质量",
name
:
"5.条码质量"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "tmzl",
id
:
"tmzl"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "6.条码技术应用",
name
:
"6.条码技术应用"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "tmjsyy",
id
:
"tmjsyy"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
{
{
//
name: "7.其他",
name
:
"7.其他"
,
//
path: "/Business/Guide8",
path
:
"/Business/Guide8"
,
//
active: "",
active
:
""
,
//
id: "other",
id
:
"other"
,
//
noneChild: true,
noneChild
:
true
,
//
},
},
//
],
],
//
},
},
],
],
},
},
{
{
...
@@ -447,8 +448,9 @@ export default {
...
@@ -447,8 +448,9 @@ export default {
{
{
name
:
"我要编码"
,
name
:
"我要编码"
,
path
:
"/Business/Code"
,
path
:
"/Business/Code"
,
redirectUrl
:
'/Business/Code1'
,
active
:
""
,
active
:
""
,
id
:
"
1-1
"
,
id
:
""
,
children
:
[
children
:
[
{
{
name
:
"零售商品"
,
name
:
"零售商品"
,
...
...
src/views/Business/ypzs.vue
View file @
5286e90b
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</p>
</p>
<p>
<p>
--
<a
--
<a
href=
"
http://www.gs1cn.org/service/notice/article.aspx?id=603&codeid=7
"
href=
"
/News/NoticeArticle?id=603
"
target=
"_blank"
target=
"_blank"
>
编码中心分支机构药品追溯联系人
</a
>
编码中心分支机构药品追溯联系人
</a
>
>
...
...
src/views/comps/left.vue
View file @
5286e90b
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
export
default
{
export
default
{
props
:
[
"list"
,
"currentRoute"
],
props
:
[
"list"
,
"currentRoute"
],
...
@@ -37,7 +38,7 @@ export default {
...
@@ -37,7 +38,7 @@ export default {
if
(
type
===
"link"
)
{
if
(
type
===
"link"
)
{
window
.
open
(
el
.
path
,
"_blank"
);
window
.
open
(
el
.
path
,
"_blank"
);
}
else
{
}
else
{
const
result
=
this
.
deepFindBreadcrumb
(
nav
,
el
.
path
);
const
result
=
deepFindBreadcrumb
(
nav
,
el
.
path
);
console
.
log
(
result
,
"result"
);
console
.
log
(
result
,
"result"
);
if
(
result
&&
result
.
breadcrumb
)
{
if
(
result
&&
result
.
breadcrumb
)
{
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
...
@@ -47,28 +48,6 @@ export default {
...
@@ -47,28 +48,6 @@ export default {
});
});
}
}
},
},
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
;
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/comps/left2.vue
View file @
5286e90b
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
nav
}
from
"@/components/layout/header/mock"
;
import
{
deepFindBreadcrumb
}
from
"@/utils/utils"
;
export
default
{
export
default
{
props
:
[
"list"
],
props
:
[
"list"
],
...
@@ -69,7 +70,9 @@ export default {
...
@@ -69,7 +70,9 @@ export default {
},
},
},
},
created
()
{
created
()
{
// console.log(this.$route.query.id, "获取当前路由地址");
console
.
log
(
this
.
list
,
"获取当前路由地址"
);
let
result
=
deepFindBreadcrumb
(
nav
,
''
);
console
.
log
(
result
,
'resultresultresult2'
);
},
},
methods
:
{
methods
:
{
// 路由跳转
// 路由跳转
...
@@ -79,9 +82,12 @@ export default {
...
@@ -79,9 +82,12 @@ export default {
if
(
type
===
"link"
)
{
if
(
type
===
"link"
)
{
window
.
open
(
el
.
path
,
"_blank"
);
window
.
open
(
el
.
path
,
"_blank"
);
}
else
{
}
else
{
const
result
=
this
.
deepFindBreadcrumb
(
nav
,
el
.
path
);
let
result
=
deepFindBreadcrumb
(
nav
,
el
.
path
);
console
.
log
(
result
,
"result"
);
console
.
log
(
result
,
"result"
);
if
(
result
&&
result
.
breadcrumb
)
{
if
(
result
)
{
if
(
result
.
length
===
0
)
{
result
=
deepFindBreadcrumb
(
nav
,
el
.
redirectUrl
);
}
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
this
.
$store
.
commit
(
"system/SET_BREADCRUMB"
,
result
.
breadcrumb
);
}
}
if
(
el
.
id
)
{
if
(
el
.
id
)
{
...
@@ -105,28 +111,6 @@ export default {
...
@@ -105,28 +111,6 @@ export default {
}
}
}
}
},
},
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
;
},
handleOpen
(
key
,
keyPath
)
{
handleOpen
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
console
.
log
(
key
,
keyPath
);
},
},
...
...
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