Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
af0cbcce
Commit
af0cbcce
authored
May 08, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
股份+地图
parent
e3546d3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
209 additions
and
41 deletions
+209
-41
companyMap.vue
src/views/baseInfo/companyInfo/companyMap.vue
+172
-0
index.vue
src/views/baseInfo/companyInfo/index.vue
+22
-33
stockCrowd.vue
src/views/baseInfo/stockCrowd/stockCrowd.vue
+15
-8
No files found.
src/views/baseInfo/companyInfo/companyMap.vue
0 → 100644
View file @
af0cbcce
<
template
>
<baidu-map
id=
"map"
class=
"map"
style=
"height: 350px;"
:center=
"center"
:zoom=
"zoom"
@
ready=
"handler"
@
click=
"mapClick(this, $event)"
>
<!-- 缩放 -->
<bm-navigation
anchor=
"BMAP_ANCHOR_TOP_RIGHT"
></bm-navigation>
</baidu-map>
</
template
>
<
script
src=
"http://api.map.baidu.com/api?v=2.0&ak=iSEprDCqtYn5aC06Y3cDyGCEOP1hydwR"
></
script
>
<
script
>
import
BaiduMap
from
'vue-baidu-map'
;
import
{
getSonRegionByCodes
,
getRegionByCodes
,
}
from
'api/base_info/region/'
;
import
{
page
,
addObj
,
getObj
,
delObj
,
putObj
}
from
'api/base_info/branch_company'
;
export
default
{
props
:
[
"toSonData"
,
"provinceName"
],
data
()
{
return
{
center
:
{
lng
:
108.9462765501
,
lat
:
34.3474989219
},
// 经纬度
zoom
:
4
,
// 地图展示级别
pointList
:
[],
pickPoint
:
null
,
listQuery
:
{
page
:
1
,
limit
:
10000
,
addrProvince
:
undefined
,
addrCity
:
undefined
,
addrTown
:
undefined
},
}
},
mounted
()
{
},
watch
:
{
provinceName
(
newValue
,
oldValue
)
{
console
.
log
(
this
.
toSonData
);
console
.
log
(
this
.
provinceName
);
// var map = new BMap.Map("map"); //创建Map实例
// map.centerAndZoom(this.provinceName,6);
},
},
methods
:
{
getList
()
{
page
(
this
.
listQuery
)
.
then
(
response
=>
{
let
listTemp
=
response
.
data
.
data
;
//一次读入所有涉及地区,防止多次读取
if
(
!
this
.
$utils
.
isEmpty
(
listTemp
))
{
let
allRegions
=
new
Set
();
for
(
let
index
in
listTemp
)
{
allRegions
.
add
(
listTemp
[
index
].
addrProvince
);
allRegions
.
add
(
listTemp
[
index
].
addrCity
);
allRegions
.
add
(
listTemp
[
index
].
addrTown
);
let
regions
=
getRegionByCodes
([
listTemp
[
index
].
addrProvince
,
listTemp
[
index
].
addrCity
,
listTemp
[
index
].
addrTown
]);
listTemp
[
index
].
address
=
regions
[
0
].
name
+
' '
+
regions
[
1
].
name
+
' '
+
regions
[
2
].
name
+
' '
;
}
getRegionByCodes
([...
allRegions
]);
}
let
arr
=
this
.
list
;
listTemp
.
map
(
function
(
item
){
arr
.
push
(
item
);
});
this
.
list
=
arr
;
})
},
handler
({
map
})
{
let
list
=
this
.
toSonData
;
// 定位
this
.
geolocation
(
map
);
// 产生随机点
const
bounds
=
map
.
getBounds
();
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
const
point
=
{
title
:
list
[
i
].
name
,
point
:
{
lng
:
list
[
i
].
longitude
,
lat
:
list
[
i
].
latitude
}
};
this
.
pointList
.
push
(
point
);
}
this
.
addMarker
(
map
);
},
mapClick
(
map
,
e
)
{
const
point
=
e
.
point
;
if
(
this
.
pickPoint
)
{
map
.
removeOverlay
(
this
.
pickPoint
);
}
console
.
log
(
point
.
lng
+
','
+
point
.
lat
);
map
.
panTo
(
point
);
map
.
centerAndZoom
(
point
,
6
);
const
p
=
new
BMap
.
Point
(
point
.
lng
,
point
.
lat
);
this
.
pickPoint
=
new
BMap
.
Marker
(
p
);
this
.
addressDetail
(
point
);
//根据经纬度获取省市信息
},
addressDetail
(
point
){
//获取地理位置
let
mydata
=
getSonRegionByCodes
(
1
);
console
.
log
(
mydata
);
var
self
=
this
;
var
myGeo
=
new
BMap
.
Geocoder
();
myGeo
.
getLocation
(
new
BMap
.
Point
(
point
.
lng
,
point
.
lat
),
function
(
result
){
if
(
result
){
//根据当前位置经纬度解析成地址
// console.log(result.addressComponents);
mydata
.
map
(
function
(
item
){
if
(
result
.
addressComponents
.
province
.
indexOf
(
"北京"
)
!=-
1
||
result
.
addressComponents
.
province
.
indexOf
(
"重庆"
)
!=-
1
||
result
.
addressComponents
.
province
.
indexOf
(
"上海"
)
!=-
1
||
result
.
addressComponents
.
province
.
indexOf
(
"台湾"
)
!=-
1
||
result
.
addressComponents
.
province
.
indexOf
(
"天津"
)
!=-
1
){
result
.
addressComponents
.
province
=
result
.
addressComponents
.
province
.
substring
(
0
,
2
);
}
if
(
item
.
name
.
indexOf
(
result
.
addressComponents
.
province
)
!=-
1
){
self
.
$emit
(
'headCallBack'
,
item
.
agencyId
);
}
});
}
});
},
addMarker
(
map
)
{
for
(
const
item
of
this
.
pointList
)
{
const
point
=
new
BMap
.
Point
(
item
.
point
.
lng
,
item
.
point
.
lat
);
const
mk
=
new
BMap
.
Marker
(
point
);
const
label
=
new
BMap
.
Label
(
item
.
title
);
label
.
setOffset
(
new
BMap
.
Size
(
15
,
-
15
));
label
.
setStyle
({
'border-radius'
:
'5px'
,
border
:
'0px'
,
'background-color'
:
'#FFFFFF11'
,
color
:
'red'
,
'font-family'
:
'黑体'
,
'font-weight'
:
'bold'
,
'font-size'
:
'16px'
});
mk
.
setLabel
(
label
);
map
.
addOverlay
(
mk
);
}
},
geolocation
(
map
)
{
const
geolocation
=
new
BMap
.
Geolocation
();
geolocation
.
enableSDKLocation
();
geolocation
.
getCurrentPosition
(
function
(
r
)
{
if
(
this
.
getStatus
()
===
BMAP_STATUS_SUCCESS
)
{
// const mk = new BMap.Marker(r.point);
// map.addOverlay(mk);
var
b
=
new
BMap
.
Bounds
(
new
BMap
.
Point
(
116.027143
,
39.772348
),
new
BMap
.
Point
(
116.832025
,
40.126349
));
// 范围 左下角,右上角的点位置
// map.panTo(r.point);
map
.
centerAndZoom
(
"兰州"
,
4
);
map
.
enableScrollWheelZoom
(
true
);
//开启鼠标滚轮缩放
console
.
log
(
'您的位置:'
+
r
.
point
.
lng
+
','
+
r
.
point
.
lat
);
}
else
{
alert
(
'failed'
+
this
.
getStatus
());
}
});
}
}
}
</
script
>
<
style
scoped
>
.map
{
width
:
100%
;
height
:
500px
;
}
</
style
>
src/views/baseInfo/companyInfo/index.vue
View file @
af0cbcce
...
@@ -3,26 +3,27 @@
...
@@ -3,26 +3,27 @@
<div
class=
"header-css"
>
<div
class=
"header-css"
>
<!--@click="$router.push(
{name:'mypoints'})"-->
<!--@click="$router.push(
{name:'mypoints'})"-->
<!--
<img
@
click=
"goBack()"
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAfCAYAAADqUJ2JAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzA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9InhtcC5paWQ6NTQ5M0ZBMDRBMTA1MTFFODgzQTc5QjhGRjBEODdFRTgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTQ5M0ZBMDVBMTA1MTFFODgzQTc5QjhGRjBEODdFRTgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4bKBAsAAAAzklEQVR42qzWWQrCMBDG8VzCtVb01ZuIFJUq4nU8l+AlXEsFXz2CC+iXB2EYgjBL4P/6o4Qk0xD0q4G2aBSMyB590F2LNQkSe6OFFGmhA0PWUqSNjgxZWZEXWkqRDjpZkS46E+Sp2diIXAjyQKUUyRLIXIr0UMWQmQapGTKVInkCKaTIAF0ZMtEgN4aMNZdwR5DYRvskuH1RXEOPPfqtfgIrtFjucY5cTza9a5X1rv27uKUWc3mPXF9I+ma7YuYp4jrXXCet6+xP/o18BRgA2Nl6bmmSdvgAAAAASUVORK5CYII="
size=
"25"
style=
"width: 15px; height: 20px; margin: 10px"
>
-->
<span
class=
"header-title"
>
全国
公司列表
</span>
<span
class=
"header-title"
>
公司列表
</span>
</div>
</div>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
<div
class=
"shoppings main-container"
>
<div
class=
"shoppings main-container"
>
<div
class=
"filter-container"
ref=
"filter-container"
>
<div
class=
"filter-container"
ref=
"filter-container"
>
<el-form
:rules=
"rules4Query"
ref=
"queryForm"
style=
"display: flex;"
:inline=
"inline"
:model=
"listQuery"
>
<el-form
:rules=
"rules4Query"
ref=
"queryForm"
style=
"display: flex;"
:inline=
"inline"
:model=
"listQuery"
>
<el-select
class=
"filter-item"
v-model=
"listQuery.addrProvince"
placeholder=
"请选择省份(直辖市)"
@
change=
'getValue'
>
<el-select
class=
"filter-item"
style=
"width: 45%"
v-model=
"listQuery.addrProvince"
placeholder=
"请选择省份(直辖市)"
@
change=
'getValue'
>
<el-option
:key=
"undefined"
label=
"全
国
"
:value=
"undefined"
></el-option>
<el-option
:key=
"undefined"
label=
"全
部
"
:value=
"undefined"
></el-option>
<el-option
v-for=
"item in provinceRegions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in provinceRegions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<!--
<el-select
class=
"filter-item"
v-model=
"listQuery.addrCity"
placeholder=
"请选择城市"
@
change=
'getCompanyList'
>
-->
<el-select
class=
"filter-item"
style=
"width: 45%;margin-left: 10px;"
v-model=
"listQuery.addrCity"
placeholder=
"请选择城市"
@
change=
'getCompanyList'
>
<!--
<el-option
v-for=
"item in cityRegions4Query"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
-->
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<!--
</el-select>
-->
<el-option
v-for=
"item in cityRegions4Query"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
<!--分公司分布图-->
<!--分公司分布图-->
<
!--
<company-map
:toSonData=
"list"
></company-map>
--
>
<
company-map
v-on:headCallBack=
"headCall"
v-if=
"toList"
:toSonData=
"list"
:provinceName=
"provinceName"
></company-map
>
<!--地图-->
<!--地图-->
<
china-map
v-on:headCallBack=
"headCall"
:list=
"list"
:provinceName=
"provinceName"
></china-map
>
<
!--
<china-map
v-on:headCallBack=
"headCall"
:list=
"list"
:provinceName=
"provinceName"
></china-map>
--
>
<!--分公司数据-->
<!--分公司数据-->
<div
class=
"shoppings company-list"
<div
class=
"shoppings company-list"
v-for=
"item in list"
v-for=
"item in list"
...
@@ -76,6 +77,7 @@
...
@@ -76,6 +77,7 @@
putObj
putObj
}
from
'api/base_info/branch_company'
;
}
from
'api/base_info/branch_company'
;
import
chinaMap
from
'./chinaMap'
;
import
chinaMap
from
'./chinaMap'
;
import
companyMap
from
"./companyMap"
;
import
{
import
{
getSonRegionByCodes
,
getSonRegionByCodes
,
...
@@ -85,16 +87,18 @@
...
@@ -85,16 +87,18 @@
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
import
BmMap
from
"../../../../node_modules/vue-baidu-map/components/map/Map.vue"
;
import
BmMap
from
"../../../../node_modules/vue-baidu-map/components/map/Map.vue"
;
export
default
{
export
default
{
name
:
'branchCompany'
,
name
:
'branchCompany'
,
components
:
{
components
:
{
BmMap
,
BmMap
,
chinaMap
},
chinaMap
,
companyMap
},
data
()
{
data
()
{
return
{
return
{
toList
:
false
,
nodata
:
false
,
nodata
:
false
,
nomore
:
false
,
nomore
:
false
,
provinceName
:
""
,
form
:
{
form
:
{
id
:
undefined
,
id
:
undefined
,
name
:
undefined
,
name
:
undefined
,
...
@@ -224,6 +228,7 @@
...
@@ -224,6 +228,7 @@
update
:
'编辑'
,
update
:
'编辑'
,
create
:
'创建'
create
:
'创建'
},
},
provinceName
:
""
,
tableKey
:
0
,
tableKey
:
0
,
send
:
!
1
,
//是否已发送请求
send
:
!
1
,
//是否已发送请求
}
}
...
@@ -269,33 +274,16 @@
...
@@ -269,33 +274,16 @@
},
},
methods
:
{
methods
:
{
getCompanyList
(
e
){
getCompanyList
(
e
){
let
that
=
this
;
this
.
provinceRegions
.
map
(
function
(
item
){
if
(
item
.
id
==
that
.
listQuery
.
addrProvince
){
that
.
provinceName
=
item
.
name
;
}
});
this
.
getList
();
this
.
getList
();
},
},
getValue
(
e
){
getValue
(
e
){
if
(
!
e
){
//全国
// location.reload();
// this.provinceName = "china";
return
;
}
// this.provinceName = e;
this
.
listQuery
.
addrCity
=
undefined
;
this
.
listQuery
.
addrCity
=
undefined
;
if
(
e
){
console
.
log
(
this
.
provinceRegions
);
let
name
=
""
;
this
.
provinceRegions
.
map
(
function
(
item
){
if
(
e
==
item
.
id
){
if
(
item
.
name
.
indexOf
(
"黑龙江"
)
!=-
1
||
item
.
name
.
indexOf
(
"内蒙古"
)
!=-
1
){
name
=
item
.
name
.
substring
(
0
,
3
);
}
else
{
name
=
item
.
name
.
substring
(
0
,
2
);
}
}
});
this
.
$router
.
push
({
path
:
'/provinceMap?provinceId='
+
e
+
"&provinceName="
+
name
});
}
// this.getList();
},
},
headCall
:
function
(
msg
)
{
//回调方法,接收子组件传的参数
headCall
:
function
(
msg
)
{
//回调方法,接收子组件传的参数
this
.
listQuery
.
addrProvince
=
msg
;
this
.
listQuery
.
addrProvince
=
msg
;
...
@@ -354,6 +342,7 @@
...
@@ -354,6 +342,7 @@
this
.
nomore
=
true
;
this
.
nomore
=
true
;
}
}
this
.
send
=
!
1
;
this
.
send
=
!
1
;
this
.
toList
=
true
;
})
})
},
},
getAddrStr
(
branchCompany
)
{
getAddrStr
(
branchCompany
)
{
...
...
src/views/baseInfo/stockCrowd/stockCrowd.vue
View file @
af0cbcce
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</div>
</div>
<div
class=
"ft12"
>
剩余:
{{
item
.
balance
}}
股
</div>
<div
class=
"ft12"
>
剩余:
{{
item
.
balance
}}
股
</div>
</div>
</div>
<div
class=
"ft20"
>
¥
{{
item
.
price
}}
/股
</div>
<div
class=
"ft20"
>
¥
{{
item
.
price
}}
w
/股
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -63,8 +63,8 @@
...
@@ -63,8 +63,8 @@
<infinite-loading
v-show=
"loading"
spinner=
"spiral"
style=
"margin-top:2em"
ref=
"sroller"
>
<infinite-loading
v-show=
"loading"
spinner=
"spiral"
style=
"margin-top:2em"
ref=
"sroller"
>
</infinite-loading>
</infinite-loading>
<div
v-if=
"nomore && !loading"
style=
"text-align: center;color: #999;padding: 10px;"
>
<div
v-if=
"nomore && !loading"
style=
"text-align: center;color: #999;padding: 10px;"
>
---暂无更多数据---
---暂无更多数据---
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
list
:
[],
list
:
[],
allStockPrice
:
null
,
allStockPrice
:
null
,
listQuery
:
{
listQuery
:
{
limit
:
10
,
limit
:
5
,
priceStart
:
undefined
,
priceStart
:
undefined
,
priceEnd
:
undefined
,
priceEnd
:
undefined
,
addrProvince
:
undefined
,
addrProvince
:
undefined
,
...
@@ -153,7 +153,12 @@
...
@@ -153,7 +153,12 @@
let
that
=
this
;
let
that
=
this
;
getAllStockPrice
()
getAllStockPrice
()
.
then
(
response
=>
{
.
then
(
response
=>
{
that
.
allStockPrice
=
response
.
data
;
let
arr
=
[];
response
.
data
.
map
(
function
(
item
){
item
=
item
/
10000
+
"w"
;
arr
.
push
(
item
);
});
that
.
allStockPrice
=
arr
;
});
});
},
},
...
@@ -169,7 +174,8 @@
...
@@ -169,7 +174,8 @@
* @param target
* @param target
*/
*/
getStartValue
()
{
getStartValue
()
{
this
.
listQuery
.
priceEnd
=
this
.
listQuery
.
priceStart
;
this
.
listQuery
.
priceEnd
=
this
.
listQuery
.
priceStart
.
substring
(
0
,
this
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
this
.
listQuery
.
priceStart
=
this
.
listQuery
.
priceStart
.
substring
(
0
,
this
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
// if (this.listQuery.priceStart >= this.listQuery.priceEnd) {
// if (this.listQuery.priceStart >= this.listQuery.priceEnd) {
// this.listQuery.priceEnd = undefined;
// this.listQuery.priceEnd = undefined;
// }
// }
...
@@ -196,13 +202,14 @@
...
@@ -196,13 +202,14 @@
this
.
busy
=
true
;
this
.
busy
=
true
;
this
.
loading
=
true
;
this
.
loading
=
true
;
let
params
=
this
.
listQuery
;
let
params
=
this
.
listQuery
;
// this.listQuery.priceStart = this.listQuery.priceStart/10000+"w";
params
.
page
=
this
.
page
++
;
params
.
page
=
this
.
page
++
;
stockSearchPage
(
this
.
listQuery
)
stockSearchPage
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
let
allList
=
[];
let
allList
=
[];
res
.
data
.
list
.
forEach
(
function
(
item
)
{
res
.
data
.
list
.
forEach
(
function
(
item
)
{
item
.
price
=
item
.
price
/
1000
+
",000"
;
item
.
price
=
item
.
price
/
1000
0
;
item
.
width
=
(
item
.
total
-
item
.
balance
)
/
item
.
total
*
100
+
"px"
;
item
.
width
=
(
item
.
total
-
item
.
balance
)
/
item
.
total
*
100
+
"px"
;
item
.
companyPic
=
"https://xxfcmgmt.upyuns.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath="
+
item
.
companyPic
;
item
.
companyPic
=
"https://xxfcmgmt.upyuns.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath="
+
item
.
companyPic
;
allList
.
push
(
item
);
allList
.
push
(
item
);
...
...
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