Browse Source

冗余代码整理

“wangyihan” 1 năm trước cách đây
mục cha
commit
5c9986a69f

+ 0 - 81
src/views/datav/LeftChart2.vue

@@ -1,81 +0,0 @@
-<template>
-  <div class="left-chart-2">
-    <div class="lc2-header">李四收费站</div>
-    <div class="lc2-details">设备运行总数<span>245</span></div>
-    <dv-charts class="lc2-chart" :option="option" />
-    <dv-decoration-2 style="height:10px;" />
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'LeftChart2',
-  data () {
-    return {
-      option: {
-        series: [
-          {
-            type: 'pie',
-            data: [
-              { name: '收费系统', value: 93 },
-              { name: '通信系统', value: 32 },
-              { name: '监控系统', value: 65 },
-              { name: '供配电系统', value: 44 },
-              { name: '其他', value: 52 }
-            ],
-            radius: ['45%', '65%'],
-            insideLabel: {
-              show: false
-            },
-            outsideLabel: {
-              labelLineEndLength: 10,
-              formatter: '{percent}%\n{name}',
-              style: {
-                fontSize: 14,
-                fill: '#fff'
-              }
-            }
-          }
-        ],
-        color: ['#00baff', '#3de7c9', '#fff', '#ffc530', '#469f4b']
-      }
-    }
-  }
-}
-</script>
-
-<style lang="scss">
-.left-chart-2 {
-  width: 100%;
-  height: 30%;
-  display: flex;
-  flex-direction: column;
-
-  .lc2-header {
-    height: 20px;
-    line-height: 20px;
-    font-size: 16px;
-    text-indent: 20px;
-    margin-top: 10px;
-  }
-
-  .lc2-details {
-    height: 40px;
-    font-size: 16px;
-    display: flex;
-    align-items: center;
-    text-indent: 20px;
-
-    span {
-      color: #096dd9;
-      font-weight: bold;
-      font-size: 35px;
-      margin-left: 20px;
-    }
-  }
-
-  .lc2-chart {
-    height: calc(100vh - 80px);
-  }
-}
-</style>

+ 0 - 0
src/views/datav/LeftChart99.vue → src/views/datav/LeftChartBottom.vue


+ 0 - 0
src/views/datav/LeftChart11.vue → src/views/datav/LeftChartRight.vue


+ 0 - 0
src/views/datav/LeftChart1.vue → src/views/datav/LeftChartTop.vue


+ 19 - 21
src/views/datav/index.vue

@@ -24,7 +24,7 @@
       <div class="main">
         <div class="left">
           <div class="left-top">
-            <div class="top-left"><Left-Chart-1 /></div>
+            <div class="top-left"><Left-Chart-Top /></div>
             <div class="top-right">
               <equ-map
                 v-loading="mapLoading"
@@ -36,31 +36,31 @@
           <div class="left-under">
             <div class="under-title"><b>告警处理完成</b></div>
             <dv-border-box-8 class="under-box" v-if="flag">
-              <Left-Chart-99
+              <Left-Chart-Bottom
                 title="SOS报警处理"
                 :value="percentData.alarmSOS"
-              ></Left-Chart-99>
-              <Left-Chart-99
+              ></Left-Chart-Bottom>
+              <Left-Chart-Bottom
                 title="电子围栏报警"
                 :value="percentData.alarmRail"
-              ></Left-Chart-99>
-              <Left-Chart-99
+              ></Left-Chart-Bottom>
+              <Left-Chart-Bottom
                 title="跌倒报警"
                 :value="percentData.alarmFall"
-              ></Left-Chart-99>
-              <Left-Chart-99
+              ></Left-Chart-Bottom>
+              <Left-Chart-Bottom
                 title="设备在线率"
                 :value="percentData.alarmStauts"
-              ></Left-Chart-99>
-              <Left-Chart-99
+              ></Left-Chart-Bottom>
+              <Left-Chart-Bottom
                 title="全部报警"
                 :value="percentData.alarmAll"
-              ></Left-Chart-99>
+              ></Left-Chart-Bottom>
             </dv-border-box-8>
           </div>
         </div>
         <div class="right">
-          <Left-Chart-11 ref="updateData" />
+          <Left-Chart-Right ref="updateData" />
         </div>
       </div>
     </div>
@@ -68,10 +68,9 @@
 </template>
 
 <script>
-import LeftChart1 from "./LeftChart1";
-import LeftChart11 from "./LeftChart11";
-import LeftChart99 from "./LeftChart99";
-import LeftChart2 from "./LeftChart2";
+import LeftChartTop from "./LeftChartTop";
+import LeftChartRight from "./LeftChartRight";
+import LeftChartBottom from "./LeftChartBottom";
 
 import equMap from "./Map.vue";
 
@@ -80,10 +79,9 @@ import { percent, alarmList } from "@/api/system/datav";
 export default {
   name: "DataView",
   components: {
-    LeftChart1,
-    LeftChart11,
-    LeftChart99,
-    LeftChart2,
+    LeftChartTop,
+    LeftChartRight,
+    LeftChartBottom,
     equMap,
   },
   data() {
@@ -348,7 +346,7 @@ export default {
 
 <style lang="scss" scoped>
 ::v-deep .amap-maps{
-  border:1px solid #6586ec !important;
+  border:1px solid #235fa7 !important;
 }
 #data-view {
   color: #fff;

+ 3 - 17
src/views/equBigData/LeftChart1.vue

@@ -1,7 +1,6 @@
 <template>
   <div class="left-chart-middle">
     <dv-charts class="lc1-chart" :option="option" />
-    <!-- dv-active-ring-chart -->
   </div>
 </template>
 
@@ -30,13 +29,10 @@ export default {
             },
             outsideLabel: {
               show: true,
-              // formatter:"{name}  {percent}%",
               formatter: (params) => {
-                console.log(params, "我是");
-                // this.datalist.forEach((item) => {
-                return params.name + "  " 
-                 + Number(params.percent).toFixed(2) + "%";
-                // });
+                return (
+                  params.name + "  " + Number(params.percent).toFixed(2) + "%"
+                );
               },
               style: {
                 fontSize: 18,
@@ -52,22 +48,12 @@ export default {
   },
   methods: {
     getData() {
-      console.log(this.datalist, "我是ist");
       this.option.series[0].data = this.datalist.map((item) => {
         return {
           name: item.deviceStr,
           value: item.count,
         };
       });
-      // console.log(this.datalist, "this.datalist.this.datalist.");
-      // addDevice().then(res=>{
-      //   let xlist=res.data.map(item=>item.month)
-      //   let ylist=res.data.map(item=>item.count)
-      //   console.log(xlist,777);
-      //   console.log(ylist,888);
-      //   this.option.xAxis.data=xlist
-      //   this.option.series[0].data=ylist
-      // })
     },
   },
 };

+ 0 - 2
src/views/equBigData/LeftChart2.vue

@@ -33,7 +33,6 @@ export default {
           name: "",
           data: this.xlist,
           boundaryGap: false,
-          // data: ['周一', '周二', '周三'],
           axisLine: {
             style: {
               stroke: "#324686",
@@ -56,7 +55,6 @@ export default {
           data: "value",
           min:0,
           splitLine: {
-            // show:false,
             style: {
               stroke: "#09111e",
               lineWidth: 1,

+ 0 - 135
src/views/equBigData/RightBottom copy.vue

@@ -1,135 +0,0 @@
-<template>
-  <div id="scroll-board">
-    <dv-scroll-board :config="config" />
-    <!-- <div class="box">
-      <div class="box-left">
-        <div class="box-left-top">
-          <div>设备ID:<span>3500000</span></div>
-          <div>时间:<span>2023-08-04 10:25:34</span></div>
-        </div>
-        <div class="box-left-under">消息:<span>手表未佩戴</span></div>
-      </div>
-      <div class="box-right">王艺涵</div>
-    </div> -->
-  </div>
-</template>
-
-<script>
-export default {
-  name: "ScrollBoard",
-  props: {
-    data: {
-      type: Array,
-      default: [],
-    },
-  },
-  data() {
-    return {
-      config: {
-        // header: ["时间", "病害信息", "数量", "标段"],
-        // data: [
-        //   [
-        //     `<div class="box">
-        //       <div class="box-left">
-        //         <div class="box-left-top">
-        //           <div>设备ID:<span class="idspan">3500000</span></div>
-        //           <div class="time">时间: <span>2023-08-04 10:25:34</span></div>
-        //         </div>
-        //         <div class="box-left-under">消息:<span>手表未佩戴</span></div>
-        //       </div>
-        //       <div class="box-right">王艺涵</div>
-        //     </div>`,
-        //   ],
-        // ],
-        data: [],
-        index: true,
-        columnWidth: [50],
-        align: ["center"],
-        rowNum: 5,
-        waitTime: 1500,
-        // headerBGC: "#1981f6",
-        // headerHeight: 20,
-        oddRowBGC: "rgba(0, 44, 81, 0.8)",
-        evenRowBGC: "rgba(10, 29, 50, 0.8)",
-      },
-    };
-  },
-  mounted() {
-    this.getData();
-  },
-  methods: {
-    getData() {
-      let dataList = this.data;
-      let list = [];
-      dataList.forEach((item) => {
-        list.push([
-          `<div class="box">
-          <div class="box-left">
-            <div class="box-left-top">
-              <div>设备ID:<span class="idspan">${item.device_id_code}</span></div>
-              <div class="time">时间: <span>${item.createtime}</span></div>
-            </div>
-            <div class="box-left-under">消息:<span>${item.alarm_msg}</span></div>
-          </div>
-          <div class="box-right">${item.name}</div>
-        </div>`,
-        ]);
-      });
-      this.config.data = list;
-    },
-  },
-};
-</script>
-
-<style lang="scss" scoped>
-::v-deep .dv-scroll-board .rows .row-item {
-  height: 20% !important;
-  line-height: normal !important;
-  display: flex;
-  align-items: center;
-}
-.dv-scroll-board .rows .ceil {
-  overflow: auto;
-}
-::v-deep .box {
-  display: flex;
-  justify-content: space-between;
-  height: 100%;
-}
-::v-deep .box-left {
-  height: 100%;
-  display: flex;
-  flex-direction: column;
-  justify-content: center;
-  // align-items: center;
-  .box-left-top {
-    height: 50%;
-    display: flex;
-    justify-content: space-around;
-    align-items: center;
-
-    .idspan {
-      color: #1790ff;
-      font-size: 15px;
-    }
-    .time {
-      margin-left: 5px;
-    }
-  }
-  .box-left-under {
-    height: 50%;
-  }
-}
-::v-deep .box-right {
-  color: #1fcb21;
-}
-#scroll-board {
-  width: 100%;
-  box-sizing: border-box;
-  height: 100%;
-  overflow: hidden;
-  transform: scale3d(0.9, 0.7, 0.86);
-  margin-top: -46px;
-  // margin: -46px 10px 0 10px;
-}
-</style>

+ 0 - 28
src/views/equBigData/RightBottom.vue

@@ -1,16 +1,6 @@
 <template>
   <div id="scroll-board">
     <dv-scroll-board :config="config"/>
-    <!-- <div class="box">
-      <div class="box-left">
-        <div class="box-left-top">
-          <div>设备ID:<span>3500000</span></div>
-          <div>时间:<span>2023-08-04 10:25:34</span></div>
-        </div>
-        <div class="box-left-under">消息:<span>手表未佩戴</span></div>
-      </div>
-      <div class="box-right">王艺涵</div>
-    </div> -->
   </div>
 </template>
 
@@ -26,29 +16,12 @@ export default {
   data() {
     return {
       config: {
-        // header: ["时间", "病害信息", "数量", "标段"],
-        // data: [
-        //   [
-        //     `<div class="box">
-        //       <div class="box-left">
-        //         <div class="box-left-top">
-        //           <div>设备ID:<span class="idspan">3500000</span></div>
-        //           <div class="time">时间: <span>2023-08-04 10:25:34</span></div>
-        //         </div>
-        //         <div class="box-left-under">消息:<span>手表未佩戴</span></div>
-        //       </div>
-        //       <div class="box-right">王艺涵</div>
-        //     </div>`,
-        //   ],
-        // ],
         data: [],
         index: true,
         columnWidth: [50],
         align: ["center"],
         rowNum: 5,
         waitTime: 1500,
-        // headerBGC: "#1981f6",
-        // headerHeight: 20,
         oddRowBGC: "rgba(0, 44, 81, 0.8)",
         evenRowBGC: "rgba(10, 29, 50, 0.8)",
       },
@@ -140,6 +113,5 @@ export default {
   overflow: hidden;
   transform: scale3d(0.9, 0.7, 0.86);
   margin-top: -46px;
-  // margin: -46px 10px 0 10px;
 }
 </style>

+ 0 - 243
src/views/equBigData/bbb copy.vue

@@ -1,243 +0,0 @@
-<template>
-  <div class="left-charts">
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option" />
-      <div class="item-chart-word zongshu">用户总数</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option1" />
-      <div class="item-chart-word zaixianshu">绑定设备</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option2" />
-      <div class="item-chart-word lixianshu">绑定用户数</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option3" />
-      <div class="item-chart-word gaojingshu">设备活跃度</div>
-
-    </div>
-  </div>
-</template>
-
-<script>
-import { count, alarm } from "@/api/system/datav";
-
-export default {
-  name: "BottomCharts",
-  props: {
-    number: {
-      type: Number,
-      default: 0,
-    },
-    data:{
-      type:Object,
-      default:{},
-    }
-  },
-  components: {
-  },
-  data() {
-    return {
-      // userTotal:0,
-      option: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius:'80%',
-            data: [
-              {
-                name: "itemA",
-                value: this.number,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#01dcdf"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option1: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius:'80%',
-            data: [
-              {
-                name: "itemA",
-                value: this.data.bindDevice,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#33faaa"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option2: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius:'80%',
-            data: [
-              {
-                name: "itemA",
-                value: this.data.bindUser,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#f7ac20"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option3: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius:'80%',
-            data: [
-              {
-                name: "itemA",
-                value: this.data.deviceOnline,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#f93496", "#f61967","#f2053e"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-            animationFrame: 10,
-          },
-        ],
-      },
-    };
-  },
-};
-</script>
-
-<style lang="scss">
-.left-charts {
-  width: 100%;
-  height: 80%;
-  display: flex;
-  position: relative;
-
-  .left-chart-item {
-    width: 25%;
-    height: 100%;
-    box-sizing: border-box;
-    text-align: center;
-    .item-chart {
-      height: calc(100% - 80px);
-      position: relative;
-    }
-    .item-chart-word{
-      font-size: 20px;
-      margin-top: 15px;
-      font-weight: bold;
-    }
-    .zongshu{
-      color:rgb(0, 253, 250);
-    }
-    .zaixianshu{
-      color:rgb(7, 247, 168);
-    }
-    .lixianshu{
-      color:rgb(227, 179, 55);
-    }
-    .gaojingshu{
-      color:rgb(245, 2, 61);
-    }
-  }
-}
-</style>

+ 1 - 4
src/views/equBigData/equ.vue

@@ -38,7 +38,6 @@
 
 <script>
 import { count,deviceOver} from "@/api/system/equdata";
-// import { currentGET } from "api/modules";
 let style = {
   fontSize: 24,
 };
@@ -97,9 +96,7 @@ export default {
       return msg || 0;
     },
   },
-  created() {
-    // this.getData();
-  },
+  created() {},
   mounted() {
     this.deviceView();
   },

+ 0 - 290
src/views/equBigData/equTotal.vue

@@ -1,290 +0,0 @@
-<template>
-  <div class="left-charts">
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option" />
-      <!-- <div class="user_Overview_nums allnum">
-        <dv-digital-flop :config="config" style="width: 100%; height: 100%" />
-      </div> -->
-      <div class="item-chart-word-num zongshu">总数</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option1" />
-      <div class="item-chart-word-num zaixianshu">在线数</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option2" />
-      <div class="item-chart-word-num lixianshu">离线数</div>
-    </div>
-
-    <div class="left-chart-item">
-      <dv-charts class="item-chart" :option="option3" />
-      <div class="item-chart-word-num gaojingshu">告警数</div>
-    </div>
-  </div>
-</template>
-
-<script>
-let style = {
-  fontSize: 24,
-};
-export default {
-  name: "BottomCharts",
-  props: {
-    data: {
-      type: Object,
-      default: {},
-    },
-  },
-  components: {},
-  data() {
-    return {
-      config: {
-        number: [100],
-        content: "{nt}",
-        style: {
-          ...style,
-          // stroke: "#00fdfa",
-          fill: "#00fdfa",
-        },
-      },
-      timer: null,
-      equTotalData: {},
-      deviceCount: 0,
-      deviceOnline: 0,
-      un_deviceOnline: 0,
-      alarmCount: 0,
-      option: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius: "80%",
-            data: [
-              {
-                name: "itemA",
-                value: this.data.deviceCount,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#01dcdf"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option1: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius: "80%",
-            data: [
-              {
-                name: "itemA",
-                value: this.data.deviceOnline,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#33faaa"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option2: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius: "80%",
-            data: [
-              {
-                name: "itemA",
-                value: this.data.un_deviceOnline,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#f7ac20"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-          },
-        ],
-      },
-      option3: {
-        series: [
-          {
-            type: "gauge",
-            startAngle: -Math.PI / 2,
-            endAngle: Math.PI * 1.5,
-            arcLineWidth: 10,
-            radius: "80%",
-            data: [
-              {
-                name: "itemA",
-                value: this.data.alarmCount,
-                // gradient: ["#03c2fd", "#1ed3e5", "#2fded6"],
-                gradient: ["#f93496", "#f61967", "#f2053e"],
-              },
-            ],
-            axisLabel: {
-              show: false,
-            },
-            axisTick: {
-              show: false,
-            },
-            pointer: {
-              show: false,
-            },
-            dataItemStyle: {
-              lineCap: "round",
-            },
-            details: {
-              show: true,
-              formatter: "{value}",
-              style: {
-                fill: "#1ed3e5",
-                fontSize: 30,
-              },
-            },
-            animationFrame: 10,
-          },
-        ],
-      },
-    };
-  },
-  mounted() {
-    // this.deviceView();
-  },
-  methods: {},
-};
-</script>
-
-<style lang="scss">
-.user_Overview_nums {
-  width: 100px;
-  height: 100px;
-  text-align: center;
-  line-height: 100px;
-  font-size: 22px;
-  margin: 50px auto 30px;
-  background-size: cover;
-  background-position: center center;
-  position: relative;
-
-  &::before {
-    content: "";
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    top: 0;
-    left: 0;
-  }
-
-  &.bgdonghua::before {
-    animation: rotating 14s linear infinite;
-  }
-
-}
-  .allnum {
-    &::before {
-      background-image: url("./img/left_top_lan.png");
-    }
-  }
-
-.left-charts {
-  width: 100%;
-  height: 80%;
-  display: flex;
-  position: relative;
-
-  .left-chart-item {
-    width: 25%;
-    height: 100%;
-    box-sizing: border-box;
-    text-align: center;
-    .item-chart {
-      height: calc(100% - 80px);
-      position: relative;
-    }
-    .item-chart-word-num {
-      font-size: 20px;
-      margin-top: 15px;
-      font-weight: bold;
-    }
-    .zongshu {
-      color: rgb(0, 253, 250);
-    }
-    .zaixianshu {
-      color: rgb(7, 247, 168);
-    }
-    .lixianshu {
-      color: rgb(227, 179, 55);
-    }
-    .gaojingshu {
-      color: rgb(245, 2, 61);
-    }
-  }
-}
-</style>

+ 0 - 12
src/views/equBigData/index.vue

@@ -6,7 +6,6 @@
         <div class="left-top">
           <dv-border-box-13>
             <Border-Item title="设备总览">
-              <!-- <equTotal v-if="equDataFlag" :data="equTotalData" /> -->
               <leftTop :data="equTotalData" />
             </Border-Item>
           </dv-border-box-13>
@@ -85,7 +84,6 @@ import LeftChartUnder from "./LeftChartUnder";
 import equMap from "./Maps";
 
 import BorderItem from "./BottomCharts";
-import equTotal from "./equTotal";
 import equ from "./equ";
 
 import RightBottom from "./RightBottom";
@@ -116,7 +114,6 @@ export default {
     LeftChart2,
     BorderItem,
     equMap,
-    equTotal,
     equ,
     RightBottom,
     LeftChartUnder,
@@ -128,7 +125,6 @@ export default {
   data() {
     return {
       mapLoading: false,
-      equTotalData: {},
       equDataFlag: false,
       userAgeFlag: false,
       userTotalFlag: false,
@@ -148,7 +144,6 @@ export default {
     };
   },
   mounted() {
-    // this.deviceView();
     this.userAgeAll();
     this.userTotal();
     // this.getUserData();
@@ -208,13 +203,6 @@ export default {
         this.xylistFlag = true;
       });
     },
-    // deviceView() {
-    //   deviceView().then((res) => {
-    //     this.equTotalData = res.data;
-    //     this.equDataFlag = true;
-    //     this.swiper();
-    //   });
-    // },
     //轮询
     // swiper() {
     //   if (this.timer) {

+ 0 - 1
src/views/equBigData/left-top.vue

@@ -38,7 +38,6 @@
 
 <script>
 import { deviceView } from "@/api/system/equdata";
-// import { currentGET } from "api/modules";
 let style = {
   fontSize: 24,
 };