quanyawei
2024-01-15 c9fc948cfa3cf91c072a13787aed5cb50fb31669
src/views/Equidata/index.vue
@@ -26,23 +26,33 @@
        :picker-options="pickerOptions"
        end-placeholder="结束日期"
        style="margin-left: 1rem"
      >
      </el-date-picker>
      />
      <el-button type="primary" @click="toExcel()" style="margin-left: 20px"
        >导出</el-button
      <el-button
        type="primary"
        style="margin-left: 20px"
        @click="toExcel()"
      >
      <el-button @click="exportMon">查询</el-button>
        导出
      </el-button>
      <el-button @click="exportMon">
        查询
      </el-button>
    </div>
    <el-table :data="dateList" id="exportTab" style="margin-top: 20px" border max-height="800">
    <el-table
      id="exportTab"
      :data="dateList"
      style="margin-top: 20px"
      border
      max-height="800"
    >
      <el-table-column
        v-for="item in columnList"
        :key="item"
        :prop="item"
        :label="item"
        width="180px"
        :key="item"
      >
      </el-table-column>
      />
    </el-table>
  </div>
</template>
@@ -127,6 +137,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: [
@@ -137,6 +148,7 @@
              })
            }
          }
          }
        })
        .catch((error) => {
          console.log(error)