瀏覽代碼

修改首页数据真实

“yueshang” 1 年之前
父節點
當前提交
06380e6c46
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/dashboard/twinChart.vue

+ 6 - 6
src/views/dashboard/twinChart.vue

@@ -60,12 +60,12 @@ export default {
       this.chart = echarts.init(this.$refs.chart);
         const data = [{ bluetooth: 32, name: "高新体育中心", wifi: 23 },{ bluetooth: 12, name: "高新体育中心", wifi: 33 },{ bluetooth: 8, name: "高新体育中心", wifi: 3 },];
       // 提取x轴数据和蓝牙、wifi数据
-      const xAxisData = data.map((item) => item.name);
-      const bluetoothData = data.map((item) => item.bluetooth);
-      const wifiData = data.map((item) => item.wifi);
-    //   const xAxisData = this.rightData.map((item) => item.name);
-    //   const bluetoothData = this.rightData.map((item) => item.bluetooth);
-    //   const wifiData = this.rightData.map((item) => item.wifi);
+    //   const xAxisData = data.map((item) => item.name);
+    //   const bluetoothData = data.map((item) => item.bluetooth);
+    //   const wifiData = data.map((item) => item.wifi);
+      const xAxisData = this.rightData.map((item) => item.name);
+      const bluetoothData = this.rightData.map((item) => item.bluetooth);
+      const wifiData = this.rightData.map((item) => item.wifi);
       // 设置图表的配置项
       this.option = {
         title: {