quanyawei
2024-01-15 e6196dac3ddc8643ca7e9359b4d2d7ffd8c48d77
fix:bug修复
1 files modified
21 ■■■■ changed files
src/views/charts/index.vue 21 ●●●● patch | view | raw | blame | history
src/views/charts/index.vue
@@ -1,5 +1,8 @@
<template>
  <div id="chartTableContent" style="width: 100%; height: 100%">
  <div
    id="chartTableContent"
    style="width: 100%; height: 100%"
  >
    <div class="topSelect">
      <!-- <el-cascader v-model="newMac" :options="options" clearable change-on-select :props="{ checkStrictly: true }" placeholder="选择设备" /> -->
      <el-cascader
@@ -50,7 +53,12 @@
        @sendPickerChild="showPickerChild"
      />
      <!--查询按钮-->
      <el-button class="btn1" @click="selectData"> 查询 </el-button>
      <el-button
        class="btn1"
        @click="selectData"
      >
        查询
      </el-button>
    </div>
    <div class="topTitle">
      <div style="position: absolute">
@@ -58,7 +66,10 @@
      </div>
      <!-- <div style="text-align: center;width: 100%;">{{ newData }}·{{ newMac?newMac[0]:'' }}·{{ newMac?newMac[newMac.length - 1][0]:'' }}·{{ value |sensorFilter }}·趋势图</div> -->
    </div>
    <LineChart :chart-data="lineChartData" style="height: 40rem" />
    <LineChart
      :chart-data="lineChartData"
      style="height: 40rem"
    />
    <div style="padding: 0px 10px; margin-bottom: 50px">
      <el-table
        v-if="searchData.length > 0"
@@ -237,7 +248,6 @@
            fobj['souceData' + index] = this.sortFind(item.deviceData)[0].name
            sobj['souceData' + index] = this.sortFind(item.deviceData)[1]?.name ? this.sortFind(item.deviceData)[1]?.name : '--'
          }
        })
      }
      data.push({ ...fobj, rankingTitle: '第一高值' }, { ...sobj, rankingTitle: '第二高值' })
@@ -353,7 +363,6 @@
          item.sensorValue = '0.0'
          return item
        }
      })
      const originalValue = _.orderBy(allData, ['sensorValue'], ['desc'])
@@ -513,6 +522,7 @@
              label: this.defaultData[i].name
            })
            this.options[i].children = []
            if (this.defaultData[i].devices) {
            for (let j = 0; j < this.defaultData[i].devices.length; j++) {
              this.options[i].children.push({
                value: [
@@ -523,6 +533,7 @@
              })
            }
          }
          }
        })
        .catch((error) => {
          console.log(error)