<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
            @change="query_table"
            v-model="date_1"
            value-format="yyyy-MM-dd"
            type="date"
            placeholder="选择日期"
            :picker-options="pickerOptions"
          >
            >
          </el-date-picker>
        </el-form-item>

        <el-form-item style="margin-left: 190px">
          <el-button type="primary" @click="toExcel">导出</el-button>
        </el-form-item>
      </el-row>
    </el-form>
    <el-table
      class="table_sty"
      ref="singleTable"
      id="tableData"
      :data="tableData"
      border
      :cell-style="{ textAlign: 'center' }"
      :header-cell-style="{ textAlign:'center',background:'#F5F7FA'}"
      highlight-current-row
      style="width: 100%"
      max-height="759px"
    >
      <el-table-column label="单机信息总览列表">
        <el-table-column type="index" width="80"> </el-table-column>
        <el-table-column property="windtpowerstationid" label="风场">
        </el-table-column>
        <el-table-column property="windturbineid" label="风机">
        </el-table-column>
        <el-table-column property="modelid" label="型号"> </el-table-column>
        <el-table-column property="daytop" label="日排行榜"> </el-table-column>
        <el-table-column property="daygoodness" label="日拟合优度">
        </el-table-column>
        <el-table-column property="dayspeed" label="日风速"> </el-table-column>
        <el-table-column property="monthtop" label="月排行榜">
        </el-table-column>
        <el-table-column property="monthgoodness" label="月拟合优度">
        </el-table-column>
        <el-table-column property="monthspeed" label="月风速" width="120">
        </el-table-column>
        <el-table-column property="yeartop" label="年排行榜" width="120">
        </el-table-column>
        <el-table-column property="yeargoodness" label="年拟合优度">
        </el-table-column>
        <el-table-column property="yearspeed" label="年风速"> </el-table-column>
        <el-table-column property="address" label="操作" width="240">
          <template slot-scope="scope">
            <el-button size="mini" @click="handleEdit(scope.row)"
              >详情</el-button
            >

            <el-button size="mini" @click="history(scope.row)">历史</el-button>
          </template>
        </el-table-column>
      </el-table-column>
    </el-table>
  </el-card>
</template>

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

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