71f5a58a by renchao@pashanhoo.com

style:首页修改完成

1 parent f1e4ddc3
......@@ -38,6 +38,7 @@
cdata: {
handler (newData) {
let _this = this;
if (newData.length == 0) return
// 设置点的位置(经纬度)
this.options = {
showLegendSymbol: false,
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-03 17:00:51
* @LastEditTime: 2023-07-03 17:08: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 })
)
......