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
ef150af8
Commit
ef150af8
authored
Oct 10, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机构概况下地方编码分支机构详情页切图
parent
f8b241f0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
207 additions
and
5 deletions
+207
-5
mock.js
src/components/layout/header/mock.js
+10
-0
index.js
src/router/index.js
+9
-0
BranchMsg.vue
src/views/Org/BranchMsg.vue
+164
-0
fzzx.vue
src/views/Org/comps/fzzx.vue
+14
-1
left.vue
src/views/comps/left.vue
+10
-4
No files found.
src/components/layout/header/mock.js
View file @
ef150af8
...
@@ -75,6 +75,16 @@ export const nav = [
...
@@ -75,6 +75,16 @@ export const nav = [
},
},
{
{
id
:
uuid
(
"gs_nav"
),
id
:
uuid
(
"gs_nav"
),
name
:
"地方编码分支机构"
,
index
:
0
,
link
:
"/Org/BranchMsg"
,
breadcrumb
:
[
{
name
:
"机构概况"
,
path
:
"/Org"
},
{
name
:
"地方编码分支机构"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"国际物品编码组织(GS1)成员网站"
,
name
:
"国际物品编码组织(GS1)成员网站"
,
index
:
0
,
index
:
0
,
link
:
"/Org/GS1Members"
,
link
:
"/Org/GS1Members"
,
...
...
src/router/index.js
View file @
ef150af8
...
@@ -82,6 +82,15 @@ const routes = [
...
@@ -82,6 +82,15 @@ const routes = [
component
:
()
=>
import
(
"@/views/Org/Branch.vue"
),
component
:
()
=>
import
(
"@/views/Org/Branch.vue"
),
},
},
{
{
path
:
"/Org/BranchMsg"
,
name
:
"Branch"
,
meta
:
{
name
:
"地方编码分支机构"
,
hidden
:
true
,
},
component
:
()
=>
import
(
"@/views/Org/BranchMsg.vue"
),
},
{
path
:
"https://www.gs1.org/"
,
path
:
"https://www.gs1.org/"
,
name
:
"GS1"
,
name
:
"GS1"
,
meta
:
{
meta
:
{
...
...
src/views/Org/BranchMsg.vue
0 → 100644
View file @
ef150af8
<
template
>
<div
class=
"branchMsg"
>
<cate
:father=
"branchMsgCate"
></cate>
<div
class=
"container"
>
<div
class=
"branchMsg-cont"
>
<div
class=
"message row"
>
<div
class=
"tip col-lg-6 col-12"
>
<div
class=
"tip-title"
><span>
重要提示
</span></div>
<div
class=
"tip-text"
>
<p></p>
<p>
湖北编码分支机构办理武汉所辖市以外的湖北省内企业的条码申办及相关业务,武汉市企业欲办理的,请联系
<a
href=
"/org/article.aspx?code_id=4202"
>
武汉编码分支机构
</a
>
。
</p>
<p></p>
</div>
</div>
</div>
<ul
class=
"branchMsg-ul"
>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
联系人:
</div>
<div
class=
"col-lg-10 col-8"
>
吴永飞
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
电
话:
</div>
<div
class=
"col-lg-10 col-8"
>
027-88224190
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
传
真:
</div>
<div
class=
"col-lg-10 col-8"
>
010-64298962
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
邮
箱:
</div>
<div
class=
"col-lg-10 col-8"
>
tiaomabj@126.com
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
网
址:
</div>
<div
class=
"col-lg-10 col-8"
>
http://tiaoma.12365.net.cn
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
地
址:
</div>
<div
class=
"col-lg-10 col-8"
>
北京市东城区和平里东街20号
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
邮
编:
</div>
<div
class=
"col-lg-10 col-8"
>
100013
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
简
介:
</div>
<div
class=
"col-lg-10 col-8"
>
我们是中国物品编码中心设在北京的分支机构,负责北京地区企业申请使用商品条码及管理工作。负责初审本地区商品条码注册、变更、续展和注销;负责本地区商品条码技术培训,条码质检站的日常检测和管理及市场抽查检测,提供商品条码技术咨询与服务。
</div>
</li>
</ul>
</div>
</div>
</div>
</
template
>
<
script
>
import
cate
from
"../comps/cate.vue"
;
export
default
{
components
:
{
cate
,
},
data
()
{
return
{
branchMsgCate
:
{
name
:
"分中心名称"
,
ico
:
""
,
},
tip
:
{
show
:
true
,
}
};
},
};
</
script
>
<
style
lang=
"scss"
>
.branchMsg
{
@media
screen
and
(
min-width
:
992px
)
{
.
message
{
position
:
absolute
;
right
:
0
;
top
:
0
;
display
:
flex
;
justify-content
:
flex-end
;
pointer-events
:
none
;
.tip{
pointer-events
:
auto
;
}
}
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
.branchMsg
{
@include
module-box;
.cate-name
{
color
:
#454545
;
}
.branchMsg-cont
{
background-color
:
#edf5fa
;
margin
:
20px
0
;
position
:
relative
;
.message
{
.tip
{
p
{
font-size
:
16px
;
line-height
:
24px
;
color
:
#454545
;
}
.tip-title
{
span
{
background-color
:
#ff9900
;
color
:
#fff
;
padding
:
2px
5px
;
box-shadow
:
1px
1px
#666
;
}
}
.tip-text
{
border
:
1px
solid
#ffd237
;
padding
:
2px
;
margin
:
-18px
0
15px
15px
;
p
{
border
:
1px
solid
#ffe793
;
background-color
:
#fffce1
;
margin-bottom
:
0
;
padding
:
10px
;
span
{
line-height
:
28px
;
font-size
:
14px
;
}
}
}
}
}
.pull-right
{
float
:
right
;
}
.branchMsg-ul
{
padding
:
0
;
margin
:
0
;
li
{
border-bottom
:
1px
solid
#fff
;
font-size
:
14px
;
padding
:
10px
0
;
&:last-child
{
border
:
0
;
}
>
div
{
word-wrap
:
break-word
;
&:first-child
{
text-align
:
center
;
}
}
}
}
}
}
</
style
>
\ No newline at end of file
src/views/Org/comps/fzzx.vue
View file @
ef150af8
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<div
class=
"cate-name"
>
分中心名称
</div>
<div
class=
"cate-name"
>
分中心名称
</div>
<div
class=
"fzzx-list"
>
<div
class=
"fzzx-list"
>
<div
class=
"row"
v-for=
"(tmpA, i) in newList"
:key=
"i"
>
<div
class=
"row"
v-for=
"(tmpA, i) in newList"
:key=
"i"
>
<div
class=
"col-6"
v-for=
"(tmpB, ii) in tmpA"
:key=
"ii"
>
{{
tmpB
}}
</div>
<div
class=
"col-6"
v-for=
"(tmpB, ii) in tmpA"
:key=
"ii"
>
<span
@
click=
"openMsg(ii)"
>
{{
tmpB
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -21,6 +23,14 @@ export default {
...
@@ -21,6 +23,14 @@ export default {
return
groupList
(
this
.
list
,
2
);
return
groupList
(
this
.
list
,
2
);
},
},
},
},
methods
:
{
openMsg
(
i
)
{
console
.
log
(
i
,
"i"
);
this
.
$router
.
push
({
path
:
"/Org/BranchMsg"
,
});
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
@@ -37,6 +47,9 @@ export default {
...
@@ -37,6 +47,9 @@ export default {
.row
{
.row
{
line-height
:
40px
;
line-height
:
40px
;
margin
:
0
;
margin
:
0
;
span
{
cursor
:
pointer
;
}
&
:nth-child
(
odd
)
{
&
:nth-child
(
odd
)
{
background
:
rgba
(
242
,
99
,
53
,
0.04
);
background
:
rgba
(
242
,
99
,
53
,
0.04
);
}
}
...
...
src/views/comps/left.vue
View file @
ef150af8
<
template
>
<
template
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
class=
"list-group"
>
<div
class=
"list-group"
>
<template
v-for=
"(tmp, i) in routeList"
>
<a
<a
:class=
"[
:class=
"[
'list-group-item',
'list-group-item',
'list-group-item-action',
'list-group-item-action',
{ active: tmp.name === currentRoute.name },
{ active: tmp.name === currentRoute.name },
]"
]"
v-for="(tmp, i) in routeList"
:key="i"
:key="i"
@click="jump(i)"
@click="jump(i)"
v-if="!tmp.meta.hidden"
>
{{
tmp
.
meta
.
name
}}
</a
>
{{
tmp
.
meta
.
name
}}
</a
>
>
</
template
>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -31,7 +33,7 @@ export default {
...
@@ -31,7 +33,7 @@ export default {
window
.
open
(
this
.
routeList
[
i
].
path
,
"_blank"
);
window
.
open
(
this
.
routeList
[
i
].
path
,
"_blank"
);
}
else
{
}
else
{
const
result
=
this
.
deepFind
(
nav
,
this
.
routeList
[
i
].
path
);
const
result
=
this
.
deepFind
(
nav
,
this
.
routeList
[
i
].
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
);
}
}
...
@@ -41,10 +43,14 @@ export default {
...
@@ -41,10 +43,14 @@ export default {
}
}
},
},
deepFind
(
menuList
,
activePath
)
{
deepFind
(
menuList
,
activePath
)
{
let
current
=
[]
let
current
=
[]
;
const
deep
=
(
arr
,
activePath
)
=>
{
const
deep
=
(
arr
,
activePath
)
=>
{
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
+=
1
)
{
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
+=
1
)
{
if
(
arr
[
i
].
link
!==
activePath
&&
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
>
0
)
{
if
(
arr
[
i
].
link
!==
activePath
&&
arr
[
i
].
children
&&
arr
[
i
].
children
.
length
>
0
)
{
deep
(
arr
[
i
].
children
,
activePath
);
deep
(
arr
[
i
].
children
,
activePath
);
}
else
if
(
arr
[
i
].
link
===
activePath
)
{
}
else
if
(
arr
[
i
].
link
===
activePath
)
{
current
=
arr
[
i
];
current
=
arr
[
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