<template>
  <v-main>
    <v-card>
      <el-form
        :inline="true"
        class="demo-form-inline"
        style="margin-top: 1%; margin-left: 1%"
      >
        <el-form-item label="风场">
          <el-select
            v-model="fc"
            clearable
            placeholder="请选择"
            @change="query()"
          >
            <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-select v-model="fj" placeholder="请选择" :multiple-limit="5">
            <el-option
              v-for="item in wtIdslist"
              :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="year"
            type="year"
            value-format="yyyy"
            placeholder="选择年"
            :picker-options="pickerOptions">
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="月">
          <el-date-picker
            v-model="month"
            type="month"
            value-format="M"
            placeholder="选择月"
            :picker-options="pickerOptions">
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="query_scatter" :plain="true"
            >查询</el-button
          >
        </el-form-item>
      </el-form>
      <div
        v-loading="loading"
        id="scatter_diagram"
        style="
          height: 730px;
          width: 95%;
          margin-left: 9px;
          margin-bottom: 39px;
        "
      ></div>
    </v-card>
  </v-main>
</template>

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

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