|
@@ -129,7 +129,11 @@ export default {
|
|
|
};
|
|
|
if (res.yData && res.xData) {
|
|
|
let series = [];
|
|
|
- let names = ["当前在厅(区)人数","总进厅(区)人数","设备(窗口)数量"]
|
|
|
+ let names = [
|
|
|
+ "当前在厅(区)人数",
|
|
|
+ "总进厅(区)人数",
|
|
|
+ "设备(窗口)数量",
|
|
|
+ ];
|
|
|
for (let i = 0; i < res.yData.length; i++) {
|
|
|
series.push({
|
|
|
name: names[i],
|
|
@@ -139,7 +143,7 @@ export default {
|
|
|
fontFamily: "苹方简M",
|
|
|
fontSize: "10px",
|
|
|
color: "#ffffff",
|
|
|
- position: 'top'
|
|
|
+ position: "top",
|
|
|
},
|
|
|
data: res.yData[i],
|
|
|
});
|
|
@@ -161,6 +165,10 @@ export default {
|
|
|
this.option = { ...option };
|
|
|
this.initEcharts();
|
|
|
}
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getInfo();
|
|
|
+ }, 5 * 1000);
|
|
|
}
|
|
|
});
|
|
|
},
|