<template>
  <el-card>
    <el-form :inline="true"  class="demo-form-inline">
      <el-row>
        <el-form-item label="风场">
          <el-select v-model="fc" clearable @change="query_table" placeholder="请选择">
            <el-option
              v-for="item in wpIdslist"
              :key="item.id"
              :label="item.name"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </el-form-item>

        <el-form-item label="开始日期">
              <el-date-picker
                v-model="data_01"
                value-format="yyyy-MM-dd"
                type="date"
                placeholder="日期"
                :picker-options="pickerOptions">
              >
              </el-date-picker>
            </el-form-item>

          <el-form-item label="结束日期">
              <el-date-picker
                v-model="data_02"
                value-format="yyyy-MM-dd"
                type="date"
                placeholder="选择日期"
                :picker-options="pickerOptions">
              >
              </el-date-picker>
            </el-form-item>

        <el-form-item >
          <el-button type="primary" @click="query_table">查询</el-button>
        </el-form-item>
        <el-form-item >
          <el-button type="primary" @click="goback">返回</el-button>
        </el-form-item>
      </el-row>
    </el-form>
    <el-table
      ref="singleTable"
      :data="tableData"
       border
      highlight-current-row
      style="width: 100%"
    >
      <el-table-column label="单机历史性能分析">
      <el-table-column type="index" width="50"> </el-table-column>
      <el-table-column property="recorddate" :formatter="data_formatter" label="日期" width="120">
      </el-table-column>
      <el-table-column property="windturbineid" label="风机" width="120">
      </el-table-column>
      <el-table-column property="c1" label="日发电量" width="120">
      </el-table-column>
      <el-table-column property="c4" label="日理论发电量" width="120">
      </el-table-column>
      <el-table-column property="c7" label="日平均功率" width="120">
      </el-table-column>
      <el-table-column property="c13" label="日运行小时" width="120">
      </el-table-column>
      <el-table-column property="c19" label="日故障小时" width="120">
      </el-table-column>
      <el-table-column property="c22" label="日维护小时" width="120">
      </el-table-column>
      <el-table-column property="c25" label="日中断小时" width="120">
      </el-table-column>
      <el-table-column property="c10" label="日有效风速" width="120">
      </el-table-column>
      <el-table-column property="c31" label="日损失电量" width="120">
      </el-table-column>
      <el-table-column property="c34" label="日报警次数" width="120">
      </el-table-column>
      <el-table-column property="c37" label="日停机次数" width="120">
      </el-table-column>
      <el-table-column property="c40" label="日不饱和次数" width="120">
      </el-table-column>
      <el-table-column property="c43" label="日设备可利用率" width="120">
      </el-table-column>
      <el-table-column property="c46" label="日平均温度" width="120">
      </el-table-column>
      <el-table-column property="c49" label="日平均湿度" width="120">
      </el-table-column>
      <el-table-column property="c52" label="日平均压强" width="120">
      </el-table-column>
      <el-table-column property="c55" label="日拟合优度" width="120">
      </el-table-column>
      <el-table-column property="c58" label="日实际/保证" width="120">
      </el-table-column>
      </el-table-column>
    </el-table>
  </el-card>
</template>

<script>
import individualHistoryinformation from "@assets/js/singlePerformanceAnalysis/individualHistoryinformation";
export default individualHistoryinformation;
</script>

<style lang="scss" scoped>
 @import "@assets/css/singlePerformanceAnalysis/individualHistoryinformation.scss";
</style>
