<template>
  <div class="comprehensiveEvaluation">
    <div class="Evaluation_topall">
      <div class="Evaluation_top">
        <el-select
          size="mini"
          v-model="companyVal"
          placeholder="请选择"
          @change="changeCompan"
        >
          <el-option
            v-for="item in companyOptions"
            :key="item.id"
            :label="item.aname"
            :value="item.id"
          >
          </el-option>
        </el-select>
        <!-- <div class="tabCut">
          <div
            @click="changeBtn(val.id)"
            :class="tabEvent === val.id ? 'active' : ''"
            v-for="val in tabOptions"
            :key="val.id"
          >
            <span>{{ val.name }}</span>
          </div>
        </div> -->
        <div class="station">
          场站：
          <el-select
            size="mini"
            v-model="stationVal"
            placeholder="请选择"
            clearable
            @change="changeStation"
          >
            <el-option
              v-for="item in stationOptions"
              :key="item.id"
              :label="item.aname"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </div>
        <div class="station">
          时间:
          <div class="">
            <el-date-picker
              size="mini"
              v-model="pickerTimer"
              type="date"
              value-format="YYYY-MM-DD"
              placeholder="选择日期"
              popper-class="date-select"
              @change="historyTimer = pickerTimer"
            >
            </el-date-picker>
            <!-- <el-date-picker v-if="tabIndex == 0"
              v-if="tabIndex == 1"
              size="mini"
              v-model="pickerTimer"
              type="month"
              value-format="YYYY-MM"
              placeholder="选择月份"
              popper-class="date-select"
            >
            </el-date-picker>
            <el-date-picker
              v-if="tabIndex == 2"
              size="mini"
              v-model="pickerTimer"
              type="year"
              value-format="YYYY"
              placeholder="选择年份"
              popper-class="date-select"
            >
            </el-date-picker> -->
          </div>
        </div>
        <div class="but">
          <el-button round size="mini" class="buttons" @click="seachData"
            >搜 索</el-button
          >
          <el-button
            round
            size="mini"
            class="buttons"
            @click="contrastFn"
            :disabled="chooseList.length === 2 ? false : true"
            >信息对比</el-button
          >
        </div>
      </div>
      <div class="selections">
        <!-- <div
          class="selections_btn"
          @click="tabSelect(0)"
          :class="{ active: tabIndex == 0 }"
        >
          日
        </div> -->
        <!-- <div
          class="selections_btn"
          @click="tabSelect(1)"
          :class="{ active: tabIndex == 1 }"
        >
          月
        </div> -->
        <!-- <div
          class="selections_btn"
          @click="tabSelect(2)"
          :class="{ active: tabIndex == 2 }"
        >
          年
        </div> -->
      </div>
    </div>
    <div
      style="
        background: rgba(0, 0, 0, 0.4);
        height: calc(100% - 39px);
        padding-bottom: 15px;
      "
    >
      <div class="Evaluation_title clearfix">
        <div class="leftContent"><span>月度性能等级评估</span></div>
      </div>

      <div class="economicTable1">
        <el-table
          :data="EvaluationData"
          stripe
          @selection-change="handleCurrentChange"
          size="mini"
          height="calc(100% - 40px)"
          ref="Eval_table"
          style="width: 100%"
        >
          <el-table-column type="selection" width="60" align="center">
          </el-table-column>
          <el-table-column prop="nemCode" label="设备编号" align="center">
          </el-table-column>
          <el-table-column prop="dayLevel" label="等级" align="center">
          </el-table-column>
          <el-table-column
            prop="dayRank"
            label="综合排名"
            sortable
            align="center"
          >
          </el-table-column>
          <el-table-column
            v-for="(item, index) in tabEvent === -1
              ? tableHeader
              : tableHeaderGf"
            :key="index"
            sortable
            :prop="item.code"
            :label="item.title"
            align="right"
            header-align="center"
            show-overflow-tooltip
          >
            <template #header="scope">
              <div>
                {{
                  scope.column.label.slice(0, scope.column.label.indexOf("("))
                }}
              </div>
              <div>
                {{ scope.column.label.slice(scope.column.label.indexOf("(")) }}
              </div>
            </template>
          </el-table-column>
          <el-table-column label="操作" align="center">
            <template #default="scope">
              <span
                @click="seachHistoryData(scope.row)"
                style="cursor: pointer; color: #67b9ff"
                >历史</span
              >
            </template>
          </el-table-column>
        </el-table>
        <div style="text-align: right">
          <el-pagination
            @current-change="handlePageChange"
            :current-page="page.currentPage"
            :page-size="page.pagesize"
            @size-change="handleSizeChange"
            :page-sizes="[21, 50, 100, 500]"
            layout="total, sizes, prev, pager, next, jumper"
            :total="page.total"
          >
          </el-pagination>
        </div>
      </div>
    </div>
    <el-dialog
      v-model="dialogVisible"
      width="100%"
      custom-class="EvaluationhistoryModel"
      :close-on-click-modal="false"
      fullscreen
    >
      <template #title>
        <div class="dialog-title">
          <div class="title">{{ dialogTitle }}</div>
        </div>
      </template>
      <div style="height: 100%">
        <history-detail ref="windhistoryDetail"> </history-detail>
      </div>
    </el-dialog>
    <el-dialog
      v-model="contrastVisible"
      width="70%"
      top="120px"
      custom-class="contrastModal"
      :close-on-click-modal="false"
    >
      <template #title>
        <div class="dialog-title">
          <div class="title">信息对比</div>
        </div>
      </template>
      <div class="dialog-body">
        <img class="dialog-img" src="@assets/imgs/dialog.png" />
        <day-detail-info
          :chooseList="chooseList"
          :tabEvent="tabEvent"
          ref="MessageContrast"
        ></day-detail-info>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  getApicompanyslist,
  getApiwpByCplistlist,
  getApiequipmentinfoDayList,
} from "@/api/monthlyPerformanceAnalysis";
import historyDetail from "./historyDetail.vue";
import dayDetailInfo from "./dayDetailInfo.vue";
import dayjs from "dayjs";
export default {
  name: "PerformanceAssess",
  components: {
    historyDetail,
    dayDetailInfo,
  },
  data() {
    return {
      tabIndex: 1,
      companyVal: "",
      companyOptions: [],
      stationVal: "",
      stationOptions: [],
      pickerTimer: "",
      EvaluationData: [
        {
          id: "1801429605898219524",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0001_EQ",
          nemCode: "#1",
          recordDate: "2024-06-14",
          dayfdl: 23711.75,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 32973.69,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.95,
          monthfs: 9.0,
          yearfs: 7.0,
          daygl: 111.51,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 7258.51,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 2.0,
          yearxnssdl: 0.0,
          daygzsj: 43.26,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 183.1,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 43.26,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 18.97,
          monthlyxs: 10.0,
          yearlyxs: 7.0,
          daynhyd: 100.0,
          monthnhyd: 21.0,
          yearnhyd: 0.0,
          daysbklyl: 87.13,
          monthsbklyl: 17.0,
          yearsbklyl: 0.0,
          daydxkyxs: 87.13,
          monthdxkyxs: 17.0,
          yeardxkyxs: 0.0,
          dayyxfss: 299.79,
          monthyxfss: 17.0,
          yearyxfss: 5.0,
          dayxfqr: 3.85,
          monthxfqr: 32.0,
          yearxfqr: 0.0,
          dayjfpl: 13.34,
          monthjfpl: 11.0,
          yearjfpl: 6.67,
          dayglyzxxs: 100.0,
          monthglyzxxs: 2.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 15,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 56.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605889830916",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0002_EQ",
          nemCode: "#2",
          recordDate: "2024-06-14",
          dayfdl: 32117.25,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 34263.15,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.51,
          monthfs: 19.0,
          yearfs: 4.0,
          daygl: 153.73,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 579.21,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 3.0,
          yearxnssdl: 0.0,
          daygzsj: 6.57,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 191.91,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 6.57,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 25.69,
          monthlyxs: 5.0,
          yearlyxs: 8.0,
          daynhyd: 52.0,
          monthnhyd: 6.0,
          yearnhyd: 8.0,
          daysbklyl: 98.04,
          monthsbklyl: 8.0,
          yearsbklyl: 8.0,
          daydxkyxs: 98.04,
          monthdxkyxs: 8.0,
          yeardxkyxs: 8.0,
          dayyxfss: 329.43,
          monthyxfss: 8.0,
          yearyxfss: 8.0,
          dayxfqr: 3.64,
          monthxfqr: 21.0,
          yearxfqr: 4.0,
          dayjfpl: 16.81,
          monthjfpl: 15.0,
          yearjfpl: 5.45,
          dayglyzxxs: 100.0,
          monthglyzxxs: 3.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 5,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 73.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605889830917",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0003_EQ",
          nemCode: "#3",
          recordDate: "2024-06-14",
          dayfdl: 33826.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 44393.31,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 6.21,
          monthfs: 6.0,
          yearfs: 8.0,
          daygl: 198.52,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 8535.33,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 4.0,
          yearxnssdl: 0.0,
          daygzsj: 16.82,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 192.24,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 16.82,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 27.06,
          monthlyxs: 3.0,
          yearlyxs: 9.0,
          daynhyd: 58.0,
          monthnhyd: 8.0,
          yearnhyd: 8.0,
          daysbklyl: 94.99,
          monthsbklyl: 12.0,
          yearsbklyl: 6.0,
          daydxkyxs: 94.99,
          monthdxkyxs: 12.0,
          yeardxkyxs: 6.0,
          dayyxfss: 319.18,
          monthyxfss: 13.0,
          yearyxfss: 6.0,
          dayxfqr: 3.65,
          monthxfqr: 23.0,
          yearxfqr: 3.0,
          dayjfpl: 12.82,
          monthjfpl: 10.0,
          yearjfpl: 6.97,
          dayglyzxxs: 100.0,
          monthglyzxxs: 4.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 6,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 73.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605902413825",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0004_EQ",
          nemCode: "#4",
          recordDate: "2024-06-14",
          dayfdl: 21554.75,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 110204.83,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.92,
          monthfs: 10.0,
          yearfs: 7.0,
          daygl: 148.38,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 86538.46,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 5.0,
          yearxnssdl: 0.0,
          daygzsj: 104.61,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 127.74,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 104.61,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 17.24,
          monthlyxs: 17.0,
          yearlyxs: 5.0,
          daynhyd: 62.0,
          monthnhyd: 9.0,
          yearnhyd: 7.0,
          daysbklyl: 68.87,
          monthsbklyl: 25.0,
          yearsbklyl: 0.0,
          daydxkyxs: 68.87,
          monthdxkyxs: 25.0,
          yeardxkyxs: 0.0,
          dayyxfss: 231.39,
          monthyxfss: 26.0,
          yearyxfss: 2.0,
          dayxfqr: 3.4,
          monthxfqr: 10.0,
          yearxfqr: 0.0,
          dayjfpl: 17.12,
          monthjfpl: 16.0,
          yearjfpl: 5.15,
          dayglyzxxs: 100.0,
          monthglyzxxs: 5.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 16,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 56.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605906608130",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0005_EQ",
          nemCode: "#5",
          recordDate: "2024-06-14",
          dayfdl: 19479.63,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 64409.97,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.98,
          monthfs: 8.0,
          yearfs: 8.0,
          daygl: 0.0,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 44437.06,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 6.0,
          yearxnssdl: 0.0,
          daygzsj: 230.69,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 31.94,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 230.69,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 15.58,
          monthlyxs: 18.0,
          yearlyxs: 5.0,
          daynhyd: 100.0,
          monthnhyd: 22.0,
          yearnhyd: 0.0,
          daysbklyl: 31.34,
          monthsbklyl: 31.0,
          yearsbklyl: 0.0,
          daydxkyxs: 31.34,
          monthdxkyxs: 31.0,
          yeardxkyxs: 0.0,
          dayyxfss: 129.28,
          monthyxfss: 30.0,
          yearyxfss: 1.0,
          dayxfqr: 3.75,
          monthxfqr: 29.0,
          yearxfqr: 1.0,
          dayjfpl: 13.71,
          monthjfpl: 12.0,
          yearjfpl: 6.36,
          dayglyzxxs: 100.0,
          monthglyzxxs: 6.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 20,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 51.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605902413826",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0006_EQ",
          nemCode: "#6",
          recordDate: "2024-06-14",
          dayfdl: 6300.88,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 28985.33,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 6.01,
          monthfs: 7.0,
          yearfs: 8.0,
          daygl: 140.91,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 20520.61,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 7.0,
          yearxnssdl: 0.0,
          daygzsj: 109.48,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 107.08,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 109.48,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 5.04,
          monthlyxs: 26.0,
          yearlyxs: 2.0,
          daynhyd: 100.0,
          monthnhyd: 23.0,
          yearnhyd: 0.0,
          daysbklyl: 67.42,
          monthsbklyl: 26.0,
          yearsbklyl: 0.0,
          daydxkyxs: 67.42,
          monthdxkyxs: 26.0,
          yeardxkyxs: 0.0,
          dayyxfss: 240.55,
          monthyxfss: 25.0,
          yearyxfss: 2.0,
          dayxfqr: 3.54,
          monthxfqr: 15.0,
          yearxfqr: 5.0,
          dayjfpl: 6.21,
          monthjfpl: 7.0,
          yearjfpl: 7.88,
          dayglyzxxs: 100.0,
          monthglyzxxs: 7.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 17,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 55.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605906608131",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0007_EQ",
          nemCode: "#7",
          recordDate: "2024-06-14",
          dayfdl: 22083.63,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 29343.75,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.49,
          monthfs: 20.0,
          yearfs: 4.0,
          daygl: 116.79,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 4895.37,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 8.0,
          yearxnssdl: 0.0,
          daygzsj: 45.31,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 156.02,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 45.31,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 17.67,
          monthlyxs: 14.0,
          yearlyxs: 6.0,
          daynhyd: 100.0,
          monthnhyd: 24.0,
          yearnhyd: 0.0,
          daysbklyl: 86.51,
          monthsbklyl: 18.0,
          yearsbklyl: 0.0,
          daydxkyxs: 86.51,
          monthdxkyxs: 18.0,
          yeardxkyxs: 0.0,
          dayyxfss: 290.69,
          monthyxfss: 19.0,
          yearyxfss: 4.0,
          dayxfqr: 3.76,
          monthxfqr: 30.0,
          yearxfqr: 1.0,
          dayjfpl: 18.73,
          monthjfpl: 18.0,
          yearjfpl: 4.55,
          dayglyzxxs: 100.0,
          monthglyzxxs: 8.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 21,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 50.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605906608132",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0008_EQ",
          nemCode: "#8",
          recordDate: "2024-06-14",
          dayfdl: 13726.5,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 21465.39,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.14,
          monthfs: 29.0,
          yearfs: 1.0,
          daygl: 127.48,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 6418.72,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 9.0,
          yearxnssdl: 0.0,
          daygzsj: 46.0,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 149.39,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 46.0,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 10.98,
          monthlyxs: 22.0,
          yearlyxs: 3.0,
          daynhyd: 57.0,
          monthnhyd: 7.0,
          yearnhyd: 8.0,
          daysbklyl: 86.31,
          monthsbklyl: 19.0,
          yearsbklyl: 0.0,
          daydxkyxs: 86.31,
          monthdxkyxs: 19.0,
          yeardxkyxs: 0.0,
          dayyxfss: 290.0,
          monthyxfss: 20.0,
          yearyxfss: 4.0,
          dayxfqr: 3.48,
          monthxfqr: 14.0,
          yearxfqr: 0.0,
          dayjfpl: 21.69,
          monthjfpl: 23.0,
          yearjfpl: 3.03,
          dayglyzxxs: 100.0,
          monthglyzxxs: 9.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 22,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 49.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605885636610",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0009_EQ",
          nemCode: "#9",
          recordDate: "2024-06-14",
          dayfdl: 30236.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 32214.49,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.87,
          monthfs: 12.0,
          yearfs: 6.0,
          daygl: 174.99,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 646.22,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 10.0,
          yearxnssdl: 0.0,
          daygzsj: 3.57,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 177.13,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 3.57,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 24.19,
          monthlyxs: 6.0,
          yearlyxs: 8.0,
          daynhyd: 40.0,
          monthnhyd: 4.0,
          yearnhyd: 9.0,
          daysbklyl: 98.94,
          monthsbklyl: 6.0,
          yearsbklyl: 8.0,
          daydxkyxs: 98.94,
          monthdxkyxs: 6.0,
          yeardxkyxs: 8.0,
          dayyxfss: 332.43,
          monthyxfss: 6.0,
          yearyxfss: 8.0,
          dayxfqr: 3.43,
          monthxfqr: 12.0,
          yearxfqr: 0.0,
          dayjfpl: 18.53,
          monthjfpl: 17.0,
          yearjfpl: 4.85,
          dayglyzxxs: 100.0,
          monthglyzxxs: 10.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 2,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 82.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "A",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605894025218",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0010_EQ",
          nemCode: "#10",
          recordDate: "2024-06-14",
          dayfdl: 33815.25,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 38013.88,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 6.27,
          monthfs: 4.0,
          yearfs: 9.0,
          daygl: 187.97,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 2393.62,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 11.0,
          yearxnssdl: 0.0,
          daygzsj: 13.35,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 177.74,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 13.35,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 27.05,
          monthlyxs: 4.0,
          yearlyxs: 9.0,
          daynhyd: 77.0,
          monthnhyd: 18.0,
          yearnhyd: 5.0,
          daysbklyl: 96.03,
          monthsbklyl: 11.0,
          yearsbklyl: 7.0,
          daydxkyxs: 96.03,
          monthdxkyxs: 11.0,
          yeardxkyxs: 7.0,
          dayyxfss: 323.08,
          monthyxfss: 11.0,
          yearyxfss: 7.0,
          dayxfqr: 3.55,
          monthxfqr: 16.0,
          yearxfqr: 5.0,
          dayjfpl: 19.74,
          monthjfpl: 19.0,
          yearjfpl: 4.24,
          dayglyzxxs: 100.0,
          monthglyzxxs: 11.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 7,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 73.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605906608129",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0011_EQ",
          nemCode: "#11",
          recordDate: "2024-06-14",
          dayfdl: 11009.63,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 51543.47,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 7.4,
          monthfs: 2.0,
          yearfs: 9.0,
          daygl: 416.97,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 40159.82,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 12.0,
          yearxnssdl: 0.0,
          daygzsj: 208.09,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 60.06,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 208.09,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 8.81,
          monthlyxs: 23.0,
          yearlyxs: 3.0,
          daynhyd: 41.0,
          monthnhyd: 5.0,
          yearnhyd: 8.0,
          daysbklyl: 38.07,
          monthsbklyl: 29.0,
          yearsbklyl: 0.0,
          daydxkyxs: 38.07,
          monthdxkyxs: 29.0,
          yeardxkyxs: 0.0,
          dayyxfss: 127.91,
          monthyxfss: 31.0,
          yearyxfss: 1.0,
          dayxfqr: 3.6,
          monthxfqr: 17.0,
          yearxfqr: 5.0,
          dayjfpl: 12.16,
          monthjfpl: 9.0,
          yearjfpl: 7.27,
          dayglyzxxs: 100.0,
          monthglyzxxs: 12.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 19,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 53.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605914996739",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0012_EQ",
          nemCode: "#12",
          recordDate: "2024-06-14",
          dayfdl: 0.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 32786.39,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 6.26,
          monthfs: 5.0,
          yearfs: 8.0,
          daygl: 0.0,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 32127.26,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 13.0,
          yearxnssdl: 0.0,
          daygzsj: 229.88,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 34.37,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 229.88,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 0.0,
          monthlyxs: 30.0,
          yearlyxs: 0.0,
          daynhyd: 100.0,
          monthnhyd: 25.0,
          yearnhyd: 0.0,
          daysbklyl: 31.58,
          monthsbklyl: 30.0,
          yearsbklyl: 0.0,
          daydxkyxs: 31.58,
          monthdxkyxs: 30.0,
          yeardxkyxs: 0.0,
          dayyxfss: 129.99,
          monthyxfss: 29.0,
          yearyxfss: 1.0,
          dayxfqr: 3.61,
          monthxfqr: 18.0,
          yearxfqr: 5.0,
          dayjfpl: 14.59,
          monthjfpl: 13.0,
          yearjfpl: 6.06,
          dayglyzxxs: 100.0,
          monthglyzxxs: 13.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 29,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 40.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605894025222",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0013_EQ",
          nemCode: "#13",
          recordDate: "2024-06-14",
          dayfdl: 16640.5,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 25769.09,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.87,
          monthfs: 13.0,
          yearfs: 6.0,
          daygl: 173.66,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 7636.42,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 14.0,
          yearxnssdl: 0.0,
          daygzsj: 4.32,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 164.02,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 4.32,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 13.31,
          monthlyxs: 19.0,
          yearlyxs: 4.0,
          daynhyd: 73.0,
          monthnhyd: 16.0,
          yearnhyd: 5.0,
          daysbklyl: 98.71,
          monthsbklyl: 7.0,
          yearsbklyl: 8.0,
          daydxkyxs: 98.71,
          monthdxkyxs: 7.0,
          yeardxkyxs: 8.0,
          dayyxfss: 331.68,
          monthyxfss: 7.0,
          yearyxfss: 8.0,
          dayxfqr: 3.46,
          monthxfqr: 13.0,
          yearxfqr: 0.0,
          dayjfpl: 23.81,
          monthjfpl: 25.0,
          yearjfpl: 2.42,
          dayglyzxxs: 100.0,
          monthglyzxxs: 14.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 11,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 71.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605906608133",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0014_EQ",
          nemCode: "#14",
          recordDate: "2024-06-14",
          dayfdl: 30090.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 38833.82,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.76,
          monthfs: 17.0,
          yearfs: 5.0,
          daygl: 190.53,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 7487.48,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 15.0,
          yearxnssdl: 0.0,
          daygzsj: 74.8,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 122.77,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 74.8,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 24.07,
          monthlyxs: 7.0,
          yearlyxs: 8.0,
          daynhyd: 69.0,
          monthnhyd: 13.0,
          yearnhyd: 6.0,
          daysbklyl: 77.74,
          monthsbklyl: 22.0,
          yearsbklyl: 0.0,
          daydxkyxs: 77.74,
          monthdxkyxs: 22.0,
          yeardxkyxs: 0.0,
          dayyxfss: 261.25,
          monthyxfss: 22.0,
          yearyxfss: 3.0,
          dayxfqr: 3.74,
          monthxfqr: 27.0,
          yearxfqr: 2.0,
          dayjfpl: 20.37,
          monthjfpl: 20.0,
          yearjfpl: 3.94,
          dayglyzxxs: 100.0,
          monthglyzxxs: 15.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 23,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 48.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605898219521",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0015_EQ",
          nemCode: "#15",
          recordDate: "2024-06-14",
          dayfdl: 22531.63,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 30396.34,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.41,
          monthfs: 22.0,
          yearfs: 3.0,
          daygl: 55.39,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 5878.95,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 16.0,
          yearxnssdl: 0.0,
          daygzsj: 21.2,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 155.2,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 21.2,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 18.03,
          monthlyxs: 11.0,
          yearlyxs: 7.0,
          daynhyd: 87.0,
          monthnhyd: 20.0,
          yearnhyd: 0.0,
          daysbklyl: 93.69,
          monthsbklyl: 14.0,
          yearsbklyl: 6.0,
          daydxkyxs: 93.69,
          monthdxkyxs: 14.0,
          yeardxkyxs: 6.0,
          dayyxfss: 321.58,
          monthyxfss: 12.0,
          yearyxfss: 6.0,
          dayxfqr: 3.66,
          monthxfqr: 24.0,
          yearxfqr: 3.0,
          dayjfpl: 22.54,
          monthjfpl: 24.0,
          yearjfpl: 2.73,
          dayglyzxxs: 100.0,
          monthglyzxxs: 16.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 12,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 64.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "B",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605889830914",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0016_EQ",
          nemCode: "#16",
          recordDate: "2024-06-14",
          dayfdl: 58612.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 69222.8,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 4.81,
          monthfs: 30.0,
          yearfs: 1.0,
          daygl: 1.63,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 9560.3,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 17.0,
          yearxnssdl: 0.0,
          daygzsj: 0.0,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 0.0,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 0.0,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 46.89,
          monthlyxs: 1.0,
          yearlyxs: 10.0,
          daynhyd: 100.0,
          monthnhyd: 26.0,
          yearnhyd: 0.0,
          daysbklyl: 100.0,
          monthsbklyl: 1.0,
          yearsbklyl: 0.0,
          daydxkyxs: 100.0,
          monthdxkyxs: 1.0,
          yeardxkyxs: 0.0,
          dayyxfss: 336.0,
          monthyxfss: 1.0,
          yearyxfss: 10.0,
          dayxfqr: 0.0,
          monthxfqr: 1.0,
          yearxfqr: 0.0,
          dayjfpl: 0.0,
          monthjfpl: 1.0,
          yearjfpl: 0.0,
          dayglyzxxs: 100.0,
          monthglyzxxs: 17.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 3,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 81.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "A",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605894025221",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF02_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0017_EQ",
          nemCode: "#17",
          recordDate: "2024-06-14",
          dayfdl: 37724.38,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 40370.93,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.9,
          monthfs: 11.0,
          yearfs: 7.0,
          daygl: 188.14,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 880.84,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 1.0,
          yearxnssdl: 0.0,
          daygzsj: 11.28,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 119.99,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 11.28,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 30.18,
          monthlyxs: 2.0,
          yearlyxs: 9.0,
          daynhyd: 65.0,
          monthnhyd: 12.0,
          yearnhyd: 6.0,
          daysbklyl: 96.64,
          monthsbklyl: 10.0,
          yearsbklyl: 7.0,
          daydxkyxs: 96.64,
          monthdxkyxs: 10.0,
          yeardxkyxs: 7.0,
          dayyxfss: 324.72,
          monthyxfss: 10.0,
          yearyxfss: 7.0,
          dayxfqr: 3.62,
          monthxfqr: 19.0,
          yearxfqr: 4.0,
          dayjfpl: 20.51,
          monthjfpl: 21.0,
          yearjfpl: 3.64,
          dayglyzxxs: 100.0,
          monthglyzxxs: 1.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 10,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 71.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605894025220",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF01_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0018_EQ",
          nemCode: "#18",
          recordDate: "2024-06-14",
          dayfdl: 5341.5,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 60143.58,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 4.58,
          monthfs: 31.0,
          yearfs: 1.0,
          daygl: 0.0,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 54603.2,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 18.0,
          yearxnssdl: 0.0,
          daygzsj: 0.0,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 0.0,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 0.0,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 4.27,
          monthlyxs: 27.0,
          yearlyxs: 2.0,
          daynhyd: 100.0,
          monthnhyd: 27.0,
          yearnhyd: 0.0,
          daysbklyl: 100.0,
          monthsbklyl: 2.0,
          yearsbklyl: 0.0,
          daydxkyxs: 100.0,
          monthdxkyxs: 2.0,
          yeardxkyxs: 0.0,
          dayyxfss: 336.0,
          monthyxfss: 2.0,
          yearyxfss: 9.0,
          dayxfqr: 0.0,
          monthxfqr: 2.0,
          yearxfqr: 0.0,
          dayjfpl: 0.0,
          monthjfpl: 2.0,
          yearjfpl: 0.0,
          dayglyzxxs: 100.0,
          monthglyzxxs: 18.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 9,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 72.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "BB",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605885636609",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF02_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0019_EQ",
          nemCode: "#19",
          recordDate: "2024-06-14",
          dayfdl: 16502.1,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 16850.05,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 13.43,
          monthfs: 1.0,
          yearfs: 10.0,
          daygl: -1090.19,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 347.95,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 19.0,
          yearxnssdl: 0.0,
          daygzsj: 0.0,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 0.0,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 0.0,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 13.2,
          monthlyxs: 20.0,
          yearlyxs: 4.0,
          daynhyd: 100.0,
          monthnhyd: 28.0,
          yearnhyd: 0.0,
          daysbklyl: 100.0,
          monthsbklyl: 3.0,
          yearsbklyl: 0.0,
          daydxkyxs: 100.0,
          monthdxkyxs: 3.0,
          yeardxkyxs: 0.0,
          dayyxfss: 336.0,
          monthyxfss: 3.0,
          yearyxfss: 9.0,
          dayxfqr: 0.0,
          monthxfqr: 3.0,
          yearxfqr: 0.0,
          dayjfpl: 0.0,
          monthjfpl: 3.0,
          yearjfpl: 0.0,
          dayglyzxxs: 100.0,
          monthglyzxxs: 19.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 1,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 83.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "A",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605910802434",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF02_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0020_EQ",
          nemCode: "#20",
          recordDate: "2024-06-14",
          dayfdl: 23876.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 32454.98,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.86,
          monthfs: 14.0,
          yearfs: 6.0,
          daygl: 157.05,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 6779.07,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 20.0,
          yearxnssdl: 0.0,
          daygzsj: 77.94,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 129.17,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 77.94,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 19.1,
          monthlyxs: 9.0,
          yearlyxs: 7.0,
          daynhyd: 100.0,
          monthnhyd: 29.0,
          yearnhyd: 0.0,
          daysbklyl: 76.8,
          monthsbklyl: 23.0,
          yearsbklyl: 0.0,
          daydxkyxs: 76.8,
          monthdxkyxs: 23.0,
          yeardxkyxs: 0.0,
          dayyxfss: 258.06,
          monthyxfss: 23.0,
          yearyxfss: 3.0,
          dayxfqr: 3.99,
          monthxfqr: 33.0,
          yearxfqr: 0.0,
          dayjfpl: 24.59,
          monthjfpl: 26.0,
          yearjfpl: 2.12,
          dayglyzxxs: 100.0,
          monthglyzxxs: 20.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 24,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 48.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C",
          yearLevel: null,
          monthLevel: null,
        },
        {
          id: "1801429605919191043",
          windpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
          projectId: "SXJ_KGDL_XWTF01_EG",
          lineId: "SXJ_KGDL_XWTF02_LN",
          windturbineId: "SXJ_KGDL_XWT_F_WT_0021_EQ",
          nemCode: "#21",
          recordDate: "2024-06-14",
          dayfdl: 0.0,
          monthfdl: 0.0,
          yearfdl: 0.0,
          dayllfdl: 38652.25,
          monthllfdl: 0.0,
          yearllfdl: 0.0,
          dayfs: 5.59,
          monthfs: 18.0,
          yearfs: 5.0,
          daygl: 0.0,
          monthgl: 0.0,
          yeargl: 0.0,
          daygzssdl: 38652.25,
          monthgzssdl: 0.0,
          yeargzssdl: 0.0,
          dayxdssdl: 0.0,
          monthxdssdl: 0.0,
          yearxdssdl: 0.0,
          daywhssdl: 0.0,
          monthwhssdl: 0.0,
          yearwhssdl: 0.0,
          dayxnssdl: 0.0,
          monthxnssdl: 21.0,
          yearxnssdl: 0.0,
          daygzsj: 232.89,
          monthgzsj: 0.0,
          yeargzsj: 0.0,
          daywhsj: 0.0,
          monthwhsj: 0.0,
          yearwhsj: 0.0,
          dayyxsj: 0.0,
          monthyxsj: 0.0,
          yearyxsj: 0.0,
          daytjsj: 232.89,
          monthtjsj: 0.0,
          yeartjsj: 0.0,
          daylyxs: 0.0,
          monthlyxs: 31.0,
          yearlyxs: 0.0,
          daynhyd: 0.0,
          monthnhyd: 1.0,
          yearnhyd: 0.0,
          daysbklyl: 30.69,
          monthsbklyl: 32.0,
          yearsbklyl: 0.0,
          daydxkyxs: 30.69,
          monthdxkyxs: 32.0,
          yeardxkyxs: 0.0,
          dayyxfss: 127.09,
          monthyxfss: 32.0,
          yearyxfss: 0.0,
          dayxfqr: 0.0,
          monthxfqr: 4.0,
          yearxfqr: 0.0,
          dayjfpl: 33.58,
          monthjfpl: 33.0,
          yearjfpl: 0.0,
          dayglyzxxs: 100.0,
          monthglyzxxs: 21.0,
          yearglyzxxs: 0.0,
          types: 2,
          dayRank: 33,
          monthRank: null,
          yearRank: null,
          year: 2024,
          month: 6,
          dayScore: 25.0,
          monthScore: null,
          yearScore: null,
          dayLevel: "C-",
          yearLevel: null,
          monthLevel: null,
        },
      ],
      tableHeader: [
        { title: "发电量(kWh)", code: "dayfdl" },
        { title: "理论发电量(kWh)", code: "dayllfdl" },
        { title: "平均风速(m/s)", code: "dayfs" },
        { title: "平均功率(KW)", code: "daygl" },
        { title: "故障损失(kWh)", code: "daygzssdl" },
        { title: "限电损失(kWh)", code: "dayxdssdl" },
        { title: "检修损失(kWh)", code: "daywhssdl" },
        { title: "性能损失(kWh)", code: "dayxnssdl" },
        { title: "利用小时数(h)", code: "daylyxs" },
        { title: "拟合优度(%)", code: "daynhyd" },
        { title: "可利用率(%)", code: "daysbklyl" },
        { title: "等效可用系数(%)", code: "daydxkyxs" },
        { title: "有效风时数(h)", code: "dayyxfss" },
        { title: "平均切入(m/s)", code: "dayxfqr" },
        { title: "静风频率(%)", code: "dayjfpl" },
        { title: "功率一致性(%)", code: "dayglyzxxs" },
      ],
      tableHeaderGf: [
        { title: "发电量(kWh)", code: "dayfdl" },
        { title: "理论发电量(kWh)", code: "dayllfdl" },
        { title: "光照强度(W/㎡)", code: "dayfs" },
        { title: "平均功率(KW)", code: "daygl" },
        { title: "故障损失(kWh)", code: "daygzssdl" },
        { title: "限电损失(kWh)", code: "dayxdssdl" },
        { title: "检修损失(kWh)", code: "daywhssdl" },
        { title: "性能损失(kWh)", code: "dayxnssdl" },
        { title: "利用小时数(h)", code: "daylyxs" },
        { title: "拟合优度(%)", code: "daynhyd" },
        { title: "可利用率(%)", code: "daysbklyl" },
        { title: "等效可用系数(%)", code: "daydxkyxs" },
        { title: "有效光时数(h)", code: "dayyxfss" },
        { title: "功率一致性(%)", code: "dayglyzxxs" },
      ],
      dialogVisible: false,
      dialogTitle: "",
      chooseList: [],
      contrastVisible: false,
      tabEvent: -1,
      tabOptions: [
        { id: -1, name: "风电" },
        { id: -2, name: "光伏" },
      ],
      page: {
        currentPage: 1,
        pagesize: 21,
        total: 0,
      },
      historyTimer: "",
    };
  },
  created() {
    this.getCompanyData();
  },
  computed: {
    pageHeight() {
      return {
        height: document.documentElement.clientHeight - 130 + "px",
      };
    },
  },
  methods: {
    handleSizeChange(val) {
      this.page.currentPage = 1;
      this.page.pagesize = val;
      this.seachData();
    },
    handlePageChange(val) {
      this.page.currentPage = val;
      this.seachData();
    },
    // 切换tab
    tabSelect(index) {
      this.tabIndex = index;
      //   if (this.tabIndex == 0) {
      //   this.pickerTimer = dayjs().format("YYYY-MM-DD");
      //   } else if (this.tabIndex == 1) {
      //     this.pickerTimer = dayjs().format("YYYY-MM");
      //   } else if (this.tabIndex == 2) {
      //     this.pickerTimer = dayjs().format("YYYY");
      //   }
      //   this.historyTimer = dayjs().format("YYYY-MM-DD");
      this.page.currentPage = 1;
      this.seachData();
    },
    changeBtn(id) {
      this.tabEvent = id;
      this.stationVal = "";
      this.stationOptions = [];
      this.getStationData();
      this.seachData();
    },
    // 获取公司列表
    async getCompanyData() {
      this.companyOptions = [];
      this.pickerTimer = this.getchangeTime(new Date());
      this.historyTimer = this.getchangeTime(new Date());
      const { data: datas } = await getApicompanyslist();
      this.companyOptions = datas.data;
      this.companyVal = datas.data[0]?.id;
      this.getStationData();
    },
    changeCompan(val) {
      this.companyVal = val;
      this.stationOptions = [];
      this.stationVal = "";
      this.getStationData();
    },
    // 获取场站列表
    async getStationData() {
      this.stationOptions = [];
      let params = {
        type: this.tabEvent,
        companyid: this.companyVal,
      };
      const { data: datas } = await getApiwpByCplistlist(params);
      this.stationOptions = datas.data;
      this.stationVal = datas.data[0].id;
      this.getTableData();
    },
    changeStation(val) {
      this.stationVal = val;
      this.getTableData();
    },
    seachData() {
      this.getTableData();
    },
    async getTableData() {
      let params = {
        companyId: this.companyVal,
        date: this.pickerTimer,
        staType: -1,
        types: this.tabIndex * 1 + 1,
        wpId: this.stationVal,
        type: this.tabEvent,
        pageNum: this.page.currentPage,
        pageSize: this.page.pagesize,
      };
      const { data: datas } = await getApiequipmentinfoDayList(params);
      // this.EvaluationData = datas.data.records;
      this.page.total = datas.data.total;
    },
    handleCurrentChange(val) {
      if (val.length > 2) {
        let del_row = val.shift();
        this.$refs.Eval_table.toggleRowSelection(del_row, false);
      }
      let arr = [];
      val.forEach((item, index) => {
        if (index < 2) {
          arr.push(item);
        }
      });
      this.chooseList = arr;
    },
    //转换时间
    getchangeTime(date) {
      var y = date.getFullYear();
      var m = date.getMonth() + 1;
      m = m < 10 ? "0" + m : m;
      var d = date.getDate();
      d = d < 10 ? "0" + d : d;
      return y + "-" + m + "-" + d;
    },
    seachHistoryData(row) {
      this.dialogVisible = true;
      this.dialogTitle = "历史数据查询";
      this.$nextTick(() => {
        let startT =
          new Date(this.historyTimer).getTime() - 10 * 24 * 60 * 60 * 1000;
        this.$refs.windhistoryDetail.pickerTimer = [
          this.getchangeTime(new Date(startT)),
          this.historyTimer,
        ];
        this.$refs.windhistoryDetail.tabIndex = this.tabIndex * 1 + 1;
        this.$refs.windhistoryDetail.tabEvent = this.tabEvent;
        this.$refs.windhistoryDetail.init(row);
      });
    },
    contrastFn() {
      this.contrastVisible = true;
      this.$nextTick(() => {
        this.$refs.MessageContrast.tabIndex = this.tabIndex * 1 + 1;
        this.$refs.MessageContrast.init();
      });
    },
  },
};
</script>

<style lang="less" scoped>
.comprehensiveEvaluation {
  padding: 0 20px;
  height: 100%;

  .Evaluation_title {
    .leftContent {
      width: 242px;
      height: 41px;
      line-height: 41px;
      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
      span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #05bb4c;
        margin-left: 25px;
      }
    }
  }
  .clearfix::after {
    content: "";
    clear: both;
    height: 0;
    line-height: 0;
    visibility: hidden;
    display: block;
  }
  .clearfix {
    zoom: 1;
  }
  .Evaluation_topall {
    display: flex;
    justify-content: space-between;
    .selections {
      position: relative;
      right: 120px;
      display: flex;
      margin-top: 10px;
      .selections_btn {
        flex: 0 0 55px;
        text-align: center;
        height: 33px;
        line-height: 33px;
        margin-right: 8px;
        color: #b9b9b9;
        font-size: 1.296vh;
        background: fade(#606769, 20);
        border: 1px solid fade(#606769, 20);
        border-radius: 20px;
        &:hover,
        &.active {
          background: fade(#05bb4c, 80);
          border: 1px solid #05bb4c;
          color: #fff;
          cursor: pointer;
        }
      }
    }
    .Evaluation_top {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding-top: 10px;
      padding-bottom: 10px;

      .station {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #b3b3b3;
        margin-right: 10px;
        margin-left: 10px;
      }

      .search-input {
        margin-left: 10px;
        .el-input__inner {
          width: 175px;
        }
        .el-input__suffix {
          right: -50px;
        }
      }
      .tabCut {
        display: inline-block;
        margin: 0 10px;

        div {
          display: inline-block;
          width: 60px;
          height: 27px;
          border: 1px solid #274934;
          text-align: center;
          line-height: 25px;
          cursor: pointer;
        }

        div:nth-child(1) {
          border-radius: 13px 0px 0px 13px;
          border-right-width: 0;
        }

        div:nth-child(2) {
          border-radius: 0px 13px 13px 0px;
        }

        .active {
          background-color: rgba(5, 187, 76, 0.9);
          color: #fff;
        }
      }

      .but {
        display: flex;
        flex-direction: row;
        align-content: center;
        margin-left: 20px;
        .buttons {
          background-color: rgba(5, 187, 76, 0.2);
          border: 1px solid #3b6c53;
          color: #b3b3b3;
          font-size: 14px;

          &:hover,
          &.active {
            background-color: rgba(5, 187, 76, 0.5);
            color: #ffffff;
          }
        }
      }
    }
  }
  .economicTable1 {
    height: calc(100% - 40px);
    .el-table--mini ::v-deep {
      .el-table__header-wrapper {
        .el-checkbox {
          display: none;
        }
      }
      .el-table__body-wrapper {
        .el-checkbox {
          .el-checkbox__input {
            display: block;
          }
        }
      }
    }

    .historyBtn {
      background: #43516b;
      border-radius: 15px;
      margin-top: 5px;
      border: 1px solid #43516b;
      span {
        color: #fff;
      }
    }
  }
  .el-overlay {
    .el-overlay-dialog {
      overflow-y: hidden !important;
      .EvaluationhistoryModel {
        margin-top: 0 !important;
        .el-dialog__body {
          height: calc(100% - 51px - 50px);
        }
      }
      .contrastModal {
        .el-dialog__header {
          border: none;
        }
        .el-dialog__body {
          padding-top: 10px;
        }
      }
    }
  }

  .el-picker__popper .el-date-range-picker__header .el-picker-panel__icon-btn {
    color: #fff;
  }
  .el-picker__popper .el-date-table .in-range div {
    background: #43516b;
  }
}
</style>
