Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
71f5a58a
authored
2023-07-03 17:09:54 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:首页修改完成
1 parent
f1e4ddc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/components/Echart/Map/Chart.vue
src/components/Echart/Map/index.vue
src/components/Echart/Map/Chart.vue
View file @
71f5a58
...
...
@@ -38,6 +38,7 @@
cdata
:
{
handler
(
newData
)
{
let
_this
=
this
;
if
(
newData
.
length
==
0
)
return
// 设置点的位置(经纬度)
this
.
options
=
{
showLegendSymbol
:
false
,
...
...
src/components/Echart/Map/index.vue
View file @
71f5a58
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-03 17:0
0:51
* @LastEditTime: 2023-07-03 17:0
8:05
-->
<
template
>
<Chart
:cdata=
"cdata"
/>
...
...
@@ -20,8 +20,10 @@
components
:
{
Chart
},
created
()
{
this
.
mapViews
();
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
mapViews
()
})
this
.
timer
=
setInterval
(()
=>
{
this
.
mapViews
();
},
10000
)
// 10s
...
...
@@ -31,7 +33,6 @@
try
{
let
{
result
:
res
}
=
await
work
.
mapViews
(
"A20"
);
res
.
map
((
item
)
=>
{
return
(
this
.
cdata
.
push
({
"name"
:
item
.
areaName
,
"value"
:
item
.
ywtotal
,
"successcount"
:
item
.
successcount
})
)
...
...
Please
register
or
sign in
to post a comment