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
59e5c23d
authored
2023-07-04 13:44:47 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:首页增加定时器
1 parent
da92e65e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
src/components/Echart/Map/index.vue
src/views/home/dataView/rightcard.vue
src/components/Echart/Map/index.vue
View file @
59e5c23
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-0
3 17:08:05
* @LastEditTime: 2023-07-0
4 13:44:17
-->
<
template
>
<Chart
:cdata=
"cdata"
/>
...
...
@@ -21,9 +21,7 @@
Chart
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
mapViews
()
})
this
.
mapViews
()
this
.
timer
=
setInterval
(()
=>
{
this
.
mapViews
();
},
10000
)
// 10s
...
...
src/views/home/dataView/rightcard.vue
View file @
59e5c23
<!--
* @Description :工作台右侧表
* @Autor : miaofang
* @LastEditTime: 2023-07-0
3 16:54:3
6
* @LastEditTime: 2023-07-0
4 13:42:4
6
-->
<
template
>
<div
class=
"rightcard"
>
...
...
@@ -47,7 +47,7 @@
this
.
getdjywltotal
()
this
.
timer
=
setInterval
(()
=>
{
this
.
getdjywltotal
()
},
5000
)
// 5
s
},
10000
)
// 10
s
},
mounted
()
{
window
.
addEventListener
(
"resize"
,
()
=>
{
...
...
Please
register
or
sign in
to post a comment