|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div style="background-color: #32435A">
|
|
|
<div class="map">
|
|
|
<supermap ref="supermap" style="height: 100%;width: 100%;position: absolute;z-index: 0;"
|
|
|
:yxtSltProps="sltProps"></supermap>
|
|
@@ -113,16 +113,16 @@
|
|
|
<div class="qkq_bmfw">
|
|
|
<div class="qkq_tit ">摄像头统计</div>
|
|
|
<div id="jczl-bmfw" style="margin: 20px auto 0px auto; width: 350px; height: 160px"></div>
|
|
|
- <div class="sb_cont sb_cont_sxt">
|
|
|
- <div class="sb_in">
|
|
|
- <span class="lxsb">小区内部</span>
|
|
|
- <h2 class="zxsb_sl">1234<i>个</i></h2>
|
|
|
- </div>
|
|
|
- <div class="sb_in">
|
|
|
- <span class="lxsb">街道路面</span>
|
|
|
- <h2 class="lxsb_sl">234<i>个</i></h2>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="sb_cont sb_cont_sxt">
|
|
|
+ <div class="sb_in">
|
|
|
+ <span class="lxsb">小区内部</span>
|
|
|
+ <h2 class="zxsb_sl">704<i>个</i></h2>
|
|
|
+ </div>
|
|
|
+ <div class="sb_in">
|
|
|
+ <span class="lxsb">街道路面</span>
|
|
|
+ <h2 class="lxsb_sl">230<i>个</i></h2>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--右侧结束-->
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -426,7 +426,7 @@ export default {
|
|
|
name: "ring5", //紫点
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.42;
|
|
@@ -452,7 +452,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -476,7 +476,7 @@ export default {
|
|
|
name: "ring5", // 蓝色
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.42;
|
|
@@ -501,7 +501,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -526,7 +526,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -549,7 +549,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.47;
|
|
@@ -573,7 +573,7 @@ export default {
|
|
|
name: "ring5", //绿点
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.47;
|
|
@@ -714,15 +714,17 @@ export default {
|
|
|
y: y1
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
function draw() {
|
|
|
angle = angle + 3
|
|
|
myChart.setOption(option, true)
|
|
|
//window.requestAnimationFrame(draw);
|
|
|
}
|
|
|
+
|
|
|
if (timerId) {
|
|
|
clearInterval(timerId);
|
|
|
}
|
|
|
- timerId = setInterval(function() {
|
|
|
+ timerId = setInterval(function () {
|
|
|
//用setInterval做动画感觉有问题
|
|
|
draw()
|
|
|
}, 100);
|
|
@@ -763,7 +765,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -786,7 +788,7 @@ export default {
|
|
|
name: "ring5", //紫点
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.42;
|
|
@@ -812,7 +814,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -836,7 +838,7 @@ export default {
|
|
|
name: "ring5", // 蓝色
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.42;
|
|
@@ -861,7 +863,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -886,7 +888,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
return {
|
|
|
type: 'arc',
|
|
|
shape: {
|
|
@@ -909,7 +911,7 @@ export default {
|
|
|
name: "ring5",
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.47;
|
|
@@ -933,7 +935,7 @@ export default {
|
|
|
name: "ring5", //绿点
|
|
|
type: 'custom',
|
|
|
coordinateSystem: "none",
|
|
|
- renderItem: function(params, api) {
|
|
|
+ renderItem: function (params, api) {
|
|
|
let x0 = api.getWidth() / 2;
|
|
|
let y0 = api.getHeight() / 2;
|
|
|
let r = Math.min(api.getWidth(), api.getHeight()) * 0.47;
|
|
@@ -1074,15 +1076,17 @@ export default {
|
|
|
y: y1
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
function draw() {
|
|
|
angle = angle + 3
|
|
|
myChart.setOption(option, true)
|
|
|
//window.requestAnimationFrame(draw);
|
|
|
}
|
|
|
+
|
|
|
if (timerId) {
|
|
|
clearInterval(timerId);
|
|
|
}
|
|
|
- timerId = setInterval(function() {
|
|
|
+ timerId = setInterval(function () {
|
|
|
//用setInterval做动画感觉有问题
|
|
|
draw()
|
|
|
}, 100);
|
|
@@ -1132,7 +1136,7 @@ export default {
|
|
|
},
|
|
|
top: '0%',
|
|
|
left: 'bottom',
|
|
|
- bottm:'-10%'
|
|
|
+ bottm: '-10%'
|
|
|
},
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|