<template>
  <div class="box_w">
    <div class="box_ws">
      <el-form
      style="width:9000px"
        :inline="true"
      >
        <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>
    <div class="box_wx"
      v-loading="loading"
      id="scatter_diagram"
      style="height: 730px; width: 100%; margin-left: 9px; margin-bottom: 39px"
    ></div>
  </div>
</template>

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

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