Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a489be49
authored
Jun 20, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ditu
1 parent
1a4e4121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
127 additions
and
57 deletions
src/views/customer/businessDetails/index.vue
src/views/customer/businessDetails/index.vue
View file @
a489be4
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<gl-breadcrumb
class=
"detail-bread"
style=
""
separator=
'/'
>
<gl-breadcrumb
class=
"detail-bread"
style=
""
separator=
'/'
>
<gl-breadcrumb-item><a
<gl-breadcrumb-item><a
href=
'#'
href=
'#'
@
click=
'back'
@
click=
'back'
...
@@ -18,54 +22,77 @@
...
@@ -18,54 +22,77 @@
label=
'基本信息'
label=
'基本信息'
name=
'first'
name=
'first'
>
>
<gl-col
v-loading=
"basicLoading"
:span=
"24"
class=
"detail-basic"
>
<gl-col
<gl-col
class=
"detail-row"
v-loading=
"basicLoading"
:span=
"i.isMap? 24 : 8"
:span=
"24"
v-for=
"(i, index) in List"
class=
"detail-basic"
:key=
"index+''"
>
>
<span>
{{
i
.
label
}}
:
<gl-col
<div
class=
"detail-row"
v-if=
"i.isMap"
:span=
"i.isMap? 24 : 8"
class=
'amap-page-container'
v-for=
"(i, index) in List"
>
:key=
"index+''"
<span
v-show=
"hasLocation"
class=
"error mapTips"
>
{{
i
.
value
}}
</span>
>
<el-amap
<span>
{{
i
.
label
}}
:
vid=
'amapDemo'
<div
:center=
'center'
v-if=
"i.isMap"
:amap-manager=
'amapManager'
class=
'amap-page-container'
:zoom=
'zoom'
>
class=
'amap-demo'
<span
v-show=
"hasLocation"
class=
"error mapTips"
>
{{
i
.
value
}}
</span>
<el-amap
vid=
'amapDemo'
:center=
'center'
:amap-manager=
'amapManager'
:zoom=
'zoom'
:events=
'events'
class=
'amap-demo'
>
</el-amap>
</div>
<img
v-else-if=
"i.isImg"
class=
"detail-logo"
:src=
"i.value"
alt=
""
>
>
</el-amap>
<span
v-else
>
{{
i
.
value
}}
</span>
</div>
</span>
<img
</gl-col>
v-else-if=
"i.isImg"
class=
"detail-logo"
:src=
"i.value"
alt=
""
>
<span
v-else
>
{{
i
.
value
}}
</span>
</span>
</gl-col>
</gl-col>
</gl-col>
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
<gl-tab-pane
label=
'员工信息'
label=
'员工信息'
name=
'second'
name=
'second'
>
>
<gl-table
v-loading=
"staffLoading"
:table=
"staffTableData"
></gl-table>
<gl-table
v-loading=
"staffLoading"
:table=
"staffTableData"
></gl-table>
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
<gl-tab-pane
label=
'分组信息'
label=
'分组信息'
name=
'third'
name=
'third'
>
>
<gl-table
v-loading=
"groupLoading"
:table=
"groupTableData"
>
<gl-table
<gl-table-column
align=
"center"
v-for=
"(i, index) in groupTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
v-loading=
"groupLoading"
:table=
"groupTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in groupTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "groupName"'
>
<template
v-if=
'i.prop === "groupName"'
>
<a
href=
"#"
@
click=
"goGroupDetail(scope.scope.row)"
>
{{
groupTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
<a
href=
"#"
@
click=
"goGroupDetail(scope.scope.row)"
>
{{
groupTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
{{
groupTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
{{
groupTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
...
@@ -82,29 +109,47 @@
...
@@ -82,29 +109,47 @@
>
>
<span>
父商户信息:
</span>
<span>
父商户信息:
</span>
<gl-table
:table=
"parentLevelTableData"
>
<gl-table
:table=
"parentLevelTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in parentLevelTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<gl-table-column
<
template
slot-scope=
"scope"
>
align=
"center"
<template
v-if=
'i.prop === "merchantName"'
>
v-for=
"(i, index) in parentLevelTableData.column"
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
:key=
"index"
</
template
>
:label=
'i.label'
<
template
v-else
>
:prop=
'i.prop'
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
>
</
template
>
<
template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "merchantName"'
>
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
</
template
>
</gl-table-column>
<
template
v-else
>
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
</gl-table>
<span>
子商户信息:
</span>
<span>
子商户信息:
</span>
<gl-table
:table=
"childLevelTableData"
>
<gl-table
:table=
"childLevelTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in childLevelTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<gl-table-column
<
template
slot-scope=
"scope"
>
align=
"center"
<template
v-if=
'i.prop === "merchantName"'
>
v-for=
"(i, index) in childLevelTableData.column"
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
:key=
"index"
</
template
>
:label=
'i.label'
<
template
v-else
>
:prop=
'i.prop'
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
>
</
template
>
<
template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "merchantName"'
>
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
</
template
>
</gl-table-column>
<
template
v-else
>
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
</gl-table>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
<el-button
...
@@ -117,13 +162,16 @@
...
@@ -117,13 +162,16 @@
</template>
</template>
<
script
>
<
script
>
var
marker
=
[]
import
VueAMap
from
'vue-amap'
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
bizMethods
,
request
}
from
'@/api'
import
{
bizMethods
,
request
}
from
'@/api'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
const
amapManager
=
new
VueAMap
.
AMapManager
()
const
amapManager
=
new
VueAMap
.
AMapManager
()
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
key
:
'44cc16e43ad7ed3358df507bd0618181'
,
key
:
'44cc16e43ad7ed3358df507bd0618181'
,
plugin
:
[
'AMap.Geocoder'
],
uiVersion
:
'1.0'
uiVersion
:
'1.0'
})
})
Vue
.
use
(
VueAMap
)
Vue
.
use
(
VueAMap
)
...
@@ -190,10 +238,32 @@ export default {
...
@@ -190,10 +238,32 @@ export default {
isMap
:
true
isMap
:
true
}
}
],
],
amapManager
,
zoom
:
12
,
zoom
:
12
,
// 地图中心点(初始化得有值);也是标记点
// 地图中心点(初始化得有值);也是标记点
center
:
[
121.59996
,
31.197646
],
center
:
[
113.939723
,
22.525351
],
amapManager
,
events
:
{
'click'
:
(
e
)
=>
{
amapManager
.
_map
.
remove
(
marker
)
marker
=
[]
this
.
center
=
[
+
e
.
lnglat
.
lng
,
+
e
.
lnglat
.
lat
]
var
geocoder
=
new
AMap
.
Geocoder
({
radius
:
1000
,
extensions
:
'all'
})
geocoder
.
getAddress
(
this
.
center
,
(
status
,
result
)
=>
{
if
(
status
===
'complete'
&&
result
.
info
===
'OK'
)
{
console
.
dir
(
result
)
const
mar
=
new
AMap
.
Marker
({
position
:
this
.
center
,
title
:
result
.
regeocode
.
formattedAddress
})
marker
.
push
(
mar
)
amapManager
.
_map
.
add
(
marker
)
}
})
}
},
// 员工状态:0可用,1不可用
// 员工状态:0可用,1不可用
status
:
{
status
:
{
0
:
'启用'
,
0
:
'启用'
,
...
@@ -433,7 +503,7 @@ export default {
...
@@ -433,7 +503,7 @@ export default {
top
:
-28px
;
top
:
-28px
;
left
:
85px
;
left
:
85px
;
}
}
.amap-demo
{
.amap-demo
{
height
:
300px
;
height
:
300px
;
border
:
1px
solid
#ebeef5
;
border
:
1px
solid
#ebeef5
;
}
}
...
@@ -452,9 +522,9 @@ export default {
...
@@ -452,9 +522,9 @@ export default {
background
:
#fafafa
;
background
:
#fafafa
;
padding
:
10px
20px
;
padding
:
10px
20px
;
}
}
.detail
a
{
.detail
a
{
/* color: #0000FF; */
/* color: #0000FF; */
text-decoration
:
underline
text-decoration
:
underline
;
}
}
.detail-row
{
.detail-row
{
line-height
:
36px
;
line-height
:
36px
;
...
@@ -465,7 +535,7 @@ export default {
...
@@ -465,7 +535,7 @@ export default {
height
:
40px
;
height
:
40px
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
}
}
.el-tabs__header
{
.el-tabs__header
{
background-color
:
#fafafa
;
background-color
:
#fafafa
;
}
}
</
style
>
</
style
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment