12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109 |
- <template>
- <div class="singleMachine">
- <div class="singleMachine_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="tabIndex === 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="请选择"
- @change="changeStation"
- clearable
- >
- <el-option
- v-for="item in stationOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </div>
- <div class="station">
- 时间:
- <div>
- <el-date-picker
- v-model="pickerTimer"
- type="date"
- value-format="YYYY-MM-DD"
- 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="downXlsxFn"
- >导出</el-button
- >
- </div>
- </div>
- <div class="singleMachine_content">
- <div class="singleMachine_title clearfix">
- <div class="leftContent floatLeft"><span>单机性能分析</span></div>
- </div>
- <div class="economicTable1">
- <el-table
- :data="singleMachineData"
- size="mini"
- stripe
- ref="stand_table"
- height="calc(100% - 40px)"
- style="width: 100%"
- >
- <el-table-column
- align="center"
- prop="wtcode"
- :label="tabIndex == -1 ? '风机' : '逆变器'"
- show-overflow-tooltip
- width="80"
- sortable
- >
- <template #default="scope">
- <span
- @click="seachDetail(scope.row)"
- style="cursor: pointer; color: #05bb4c"
- >{{ scope.row.wtcode }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- v-for="(item, index) in tabIndex === -1
- ? tableHeader
- : tableHeaderGf"
- :key="index"
- sortable
- :prop="item.code"
- :label="item.title"
- show-overflow-tooltip
- header-align="center"
- :align="item.align ? item.align : 'center'"
- >
- <!-- <template #header="scope">
- <div v-if="scope.column.label.indexOf('(') > 0">
- <div>
- {{
- scope.column.label.slice(0, scope.column.label.indexOf("("))
- }}
- </div>
- <div>
- {{
- scope.column.label.slice(scope.column.label.indexOf("("))
- }}
- </div>
- </div>
- <div v-else>{{ scope.column.label }}</div>
- </template> -->
- <template #default="scope">
- <span>{{ scope.row[item.code] }}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="80">
- <template #default="scope">
- <span class="historyBtn" @click="seachHistoryData(scope.row)"
- >历史</span
- >
- </template>
- </el-table-column>
- </el-table>
- <el-pagination
- @current-change="handleCurrentChange"
- :current-page="page.currentPage"
- :page-size="page.pagesize"
- @size-change="handleSizeChange"
- :page-sizes="[23, 50, 100, 500]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page.total"
- >
- </el-pagination>
- </div>
- </div>
- <el-dialog
- v-model="dialogVisible"
- width="100%"
- custom-class="windhistoryDetailModel"
- destroy-on-close
- fullscreen
- >
- <template #title>
- <div class="dialog-title">
- <div class="title">{{ dialogTitle }}</div>
- </div>
- </template>
- <div style="height: 100%">
- <history-detail
- ref="windhistoryDetail"
- :tabIndex="tabIndex"
- :historyStationOptions="stationOptions"
- >
- </history-detail>
- </div>
- </el-dialog>
- <el-dialog
- v-model="dialogDetail"
- width="100%"
- custom-class="windDetailmodal"
- fullscreen
- destroy-on-close
- >
- <template #title>
- <div class="dialog-title">
- <div class="title">详情</div>
- </div>
- </template>
- <div style="height: 100%">
- <wind-detail-dialog
- ref="windDetail"
- :wpArray="stationOptions"
- ></wind-detail-dialog>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- getApicompanyslist,
- getApiwpByCplistlist,
- getApiwindturbinegoodnesslist,
- getApiwindturbinegoodnesslistGf,
- } from "@/api/monthlyPerformanceAnalysis";
- import historyDetail from "./historyDetail.vue";
- import WindDetailDialog from "./windDetailDialog.vue";
- import utils from "@/utills/downXlsx";
- import dayjs from "dayjs";
- export default {
- name: "SingleWindAnasyle", //单机性能分析
- components: {
- historyDetail,
- WindDetailDialog,
- },
- data() {
- return {
- companyVal: "",
- companyOptions: [],
- stationVal: "",
- stationOptions: [],
- pickerTimer: "",
- singleMachineData: [
- {
- id: 1800988576912949254,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0001_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 30.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 421,
- monthTop: 421,
- yearTop: 421,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.98,
- monthSpeed: 5.97,
- yearSpeed: 5.97,
- wtcode: "#1",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576820674561,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0017_EQ",
- dayGoodness: 58.0,
- monthGoodness: 65.0,
- yearGoodness: 27.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 1,
- monthTop: 1,
- yearTop: 1,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.87,
- monthSpeed: 5.87,
- yearSpeed: 5.87,
- wtcode: "#17",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143563,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0019_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 444,
- monthTop: 444,
- yearTop: 444,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 13.45,
- monthSpeed: 13.43,
- yearSpeed: 13.43,
- wtcode: "#19",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143564,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0016_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 445,
- monthTop: 445,
- yearTop: 445,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.81,
- monthSpeed: 4.81,
- yearSpeed: 4.81,
- wtcode: "#16",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143565,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0015_EQ",
- dayGoodness: 98.0,
- monthGoodness: 87.0,
- yearGoodness: 12.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 446,
- monthTop: 446,
- yearTop: 446,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 6.33,
- monthSpeed: 6.33,
- yearSpeed: 6.33,
- wtcode: "#15",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143566,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0024_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 447,
- monthTop: 447,
- yearTop: 447,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 6.79,
- monthSpeed: 6.76,
- yearSpeed: 6.76,
- wtcode: "#24",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143567,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0018_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 448,
- monthTop: 448,
- yearTop: 448,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.58,
- monthSpeed: 4.58,
- yearSpeed: 4.58,
- wtcode: "#18",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143568,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0021_EQ",
- dayGoodness: 0.0,
- monthGoodness: 0.0,
- yearGoodness: 0.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 449,
- monthTop: 449,
- yearTop: 449,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.94,
- monthSpeed: 4.94,
- yearSpeed: 4.94,
- wtcode: "#21",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143569,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0020_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 17.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 450,
- monthTop: 450,
- yearTop: 450,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.49,
- monthSpeed: 5.48,
- yearSpeed: 5.48,
- wtcode: "#20",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143570,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0023_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 451,
- monthTop: 451,
- yearTop: 451,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 9.62,
- monthSpeed: 9.62,
- yearSpeed: 9.62,
- wtcode: "#23",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143571,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0031_EQ",
- dayGoodness: 0.0,
- monthGoodness: 0.0,
- yearGoodness: 0.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 452,
- monthTop: 452,
- yearTop: 452,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 0.0,
- monthSpeed: 0.0,
- yearSpeed: 0.0,
- wtcode: "#31",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576917143572,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0025_EQ",
- dayGoodness: 67.0,
- monthGoodness: 63.0,
- yearGoodness: 45.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 453,
- monthTop: 453,
- yearTop: 453,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.58,
- monthSpeed: 4.58,
- yearSpeed: 4.58,
- wtcode: "#25",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337857,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0022_EQ",
- dayGoodness: 82.0,
- monthGoodness: 80.0,
- yearGoodness: 19.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 454,
- monthTop: 454,
- yearTop: 454,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.21,
- monthSpeed: 4.22,
- yearSpeed: 4.22,
- wtcode: "#22",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337858,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0026_EQ",
- dayGoodness: 75.0,
- monthGoodness: 64.0,
- yearGoodness: 42.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 455,
- monthTop: 455,
- yearTop: 455,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.49,
- monthSpeed: 4.49,
- yearSpeed: 4.49,
- wtcode: "#26",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337859,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0027_EQ",
- dayGoodness: 65.0,
- monthGoodness: 69.0,
- yearGoodness: 32.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 456,
- monthTop: 456,
- yearTop: 456,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 9.07,
- monthSpeed: 9.07,
- yearSpeed: 9.07,
- wtcode: "#27",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337861,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0029_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 458,
- monthTop: 458,
- yearTop: 458,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.87,
- monthSpeed: 4.87,
- yearSpeed: 4.87,
- wtcode: "#29",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337862,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0028_EQ",
- dayGoodness: 76.0,
- monthGoodness: 76.0,
- yearGoodness: 12.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 459,
- monthTop: 459,
- yearTop: 459,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.69,
- monthSpeed: 4.7,
- yearSpeed: 4.7,
- wtcode: "#28",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337863,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0030_EQ",
- dayGoodness: 60.0,
- monthGoodness: 72.0,
- yearGoodness: 26.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 460,
- monthTop: 460,
- yearTop: 460,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 4.86,
- monthSpeed: 4.86,
- yearSpeed: 4.86,
- wtcode: "#30",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337869,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0033_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 100.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 466,
- monthTop: 466,
- yearTop: 466,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.89,
- monthSpeed: 5.9,
- yearSpeed: 5.9,
- wtcode: "#33",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576921337871,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0032_EQ",
- dayGoodness: 39.0,
- monthGoodness: 39.0,
- yearGoodness: 20.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 468,
- monthTop: 468,
- yearTop: 468,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.32,
- monthSpeed: 5.32,
- yearSpeed: 5.32,
- wtcode: "#32",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576912949255,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0002_EQ",
- dayGoodness: 49.0,
- monthGoodness: 52.0,
- yearGoodness: 10.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 422,
- monthTop: 422,
- yearTop: 422,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 5.99,
- monthSpeed: 5.98,
- yearSpeed: 5.98,
- wtcode: "#2",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576912949265,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0006_EQ",
- dayGoodness: 100.0,
- monthGoodness: 100.0,
- yearGoodness: 25.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 432,
- monthTop: 432,
- yearTop: 432,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 6.79,
- monthSpeed: 6.79,
- yearSpeed: 6.79,
- wtcode: "#6",
- regionId: "SXJ_RGN",
- },
- {
- id: 1800988576912949266,
- windturbineId: "SXJ_KGDL_XWT_F_WT_0004_EQ",
- dayGoodness: 100.0,
- monthGoodness: 62.0,
- yearGoodness: 8.0,
- recordDate: "2024-06-12T16:00:00.000+0000",
- windtpowerstationId: "SXJ_KGDL_XWT_FDC_STA",
- modelId: "SEC-W02B-1250kW",
- dayCoefficient: 100.0,
- monthCoefficient: 100.0,
- yearCoefficient: 100.0,
- dayTop: 433,
- monthTop: 433,
- yearTop: 433,
- companyId: "SXJ_KGDL_FLFD_ZGS",
- types: "-1",
- daySpeed: 10.32,
- monthSpeed: 10.31,
- yearSpeed: 10.31,
- wtcode: "#4",
- regionId: "SXJ_RGN",
- },
- ],
- showBtn: true,
- dialogTitle: "",
- tabIndex: -1,
- tabOptions: [
- { id: -1, name: "风电" },
- { id: -2, name: "光伏" },
- ],
- tableHeader: [
- // { title: "风机", code: "wtcode" },
- { title: "型号", code: "modelId", align: "left" },
- { title: "日排行榜", code: "dayTop", align: "right" },
- { title: "日拟合优度(%)", code: "dayGoodness", align: "right" },
- { title: "日风速(m/s)", code: "daySpeed", align: "right" },
- { title: "月排行榜", code: "monthTop", align: "right" },
- { title: "月拟合优度(%)", code: "monthGoodness", align: "right" },
- { title: "月风速(m/s)", code: "monthSpeed", align: "right" },
- { title: "年排行榜", code: "yearTop", align: "right" },
- { title: "年拟合优度(%)", code: "yearGoodness", align: "right" },
- { title: "年风速(m/s)", code: "yearSpeed", align: "right" },
- // { title: "操作" },
- ],
- tableHeaderGf: [
- { title: "逆变器", code: "wtname" },
- { title: "型号", code: "model", align: "left" },
- { title: "日系统效率", code: "rxtxl", align: "right" },
- { title: "日离散率", code: "rlsl", align: "right" },
- { title: "日转换效率", code: "rzhxl", align: "right" },
- { title: "月系统效率", code: "yxtxl", align: "right" },
- { title: "月离散率", code: "ylsl", align: "right" },
- { title: "月转换效率", code: "yzhxl", align: "right" },
- { title: "年系统效率", code: "nxtxl", align: "right" },
- { title: "年离散率", code: "nlsl", align: "right" },
- { title: "年转换效率", code: "nzhxl", align: "right" },
- // { title: "操作" },
- ],
- page: {
- pagesize: 23,
- currentPage: 1,
- total: 0,
- },
- dialogVisible: false,
- dialogDetail: false,
- isFullScreen: false,
- };
- },
- created() {
- this.pickerTimer = dayjs().add(-1, "day").format("YYYY-MM-DD");
- this.getCompanyData();
- },
- mounted() {},
- computed: {
- pageHeight() {
- return {
- height: document.documentElement.clientHeight - 130 + "px",
- };
- },
- pagewindHeight() {
- return {
- height: document.documentElement.clientHeight - 100 + "px",
- };
- },
- },
- methods: {
- // 获取公司列表
- async getCompanyData() {
- this.companyOptions = [];
- const { data: datas } = await getApicompanyslist();
- this.companyOptions = datas.data;
- this.companyVal = datas.data[0]?.id;
- this.getStationData(this.companyVal);
- },
- changeBtn(id) {
- this.tabIndex = id;
- this.stationVal = "";
- this.singleMachineData = [];
- this.getStationData(this.companyVal);
- },
- changeCompan(val) {
- this.companyVal = val;
- this.stationVal = "";
- this.singleMachineData = [];
- this.getStationData(this.companyVal);
- },
- // 获取场站
- async getStationData(companyVal) {
- this.stationOptions = [];
- let params = {
- type: this.tabIndex,
- companyid: companyVal,
- };
- const { data } = await getApiwpByCplistlist(params);
- if (data.data.length) {
- this.stationOptions = data.data;
- this.stationVal = data.data[0].id || "";
- } else {
- this.stationOptions = [];
- this.stationVal = "";
- }
- this.getTableData();
- },
- changeStation(val) {
- this.stationVal = val;
- this.getTableData();
- },
- seachData() {
- this.getTableData();
- },
- async getTableData() {
- let params = {
- cmId: this.companyVal,
- type: this.tabIndex,
- pageNum: this.page.currentPage,
- pageSize: this.page.pagesize,
- recorddate: this.pickerTimer,
- wpId: this.stationVal,
- };
- let datas = {};
- if (this.tabIndex == -2) {
- datas = await getApiwindturbinegoodnesslistGf(params);
- // this.singleMachineData = datas.data.data;
- this.page.total = datas.data.data.length;
- } else {
- datas = await getApiwindturbinegoodnesslist(params);
- // this.singleMachineData = datas.data.data.records;
- this.page.total = datas.data.data.total;
- }
- },
- handleSizeChange(val) {
- this.page.currentPage = 1;
- this.page.pagesize = val;
- this.getTableData();
- },
- handleCurrentChange(val) {
- this.page.currentPage = val;
- this.getTableData();
- },
- //转换时间
- 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;
- },
- seachDetail(row) {
- this.dialogDetail = true;
- this.$nextTick(() => {
- this.$refs.windDetail.recorddate = this.pickerTimer;
- this.$refs.windDetail.init(row);
- });
- },
- seachHistoryData(row) {
- this.dialogVisible = true;
- this.dialogTitle = "历史数据查询";
- this.$nextTick(() => {
- let startT = dayjs(this.pickerTimer)
- .add(-10, "day")
- .format("YYYY-MM-DD");
- this.$refs.windhistoryDetail.pickerTimer = [startT, this.pickerTimer];
- if (this.tabIndex == -1) {
- this.$refs.windhistoryDetail.init(row);
- } else {
- row.windtpowerstationId = this.stationVal;
- this.$refs.windhistoryDetail.init(row);
- }
- // this.$refs.windhistoryDetail.getWindPowerStation();
- });
- },
- downXlsxFn() {
- let header = [];
- this.tableHeader.forEach((it) => {
- if (it.title !== "操作") {
- header.push(it.title);
- }
- });
- if (this.singleMachineData.length > 0) {
- utils.exportExcel(
- this.$refs["stand_table"].$el,
- header,
- "单机性能分析"
- );
- }
- },
- },
- };
- </script>
- <style lang="less">
- .singleMachine {
- height: 100%;
- padding: 0 20px;
- .singleMachine_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;
- }
- }
- .floatLeft {
- float: left;
- }
- .floatRight {
- float: right;
- }
- }
- .singleMachine_content {
- background: rgba(0, 0, 0, 0.45);
- height: calc(100% - 48px);
- }
- .clearfix::after {
- content: "";
- clear: both;
- height: 0;
- line-height: 0;
- visibility: hidden;
- display: block;
- }
- .clearfix {
- zoom: 1;
- }
- .singleMachine_top {
- display: flex;
- flex-direction: row;
- align-items: center;
- padding-top: 5px;
- padding-bottom: 5px;
- .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;
- }
- .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;
- }
- }
- .search-input {
- margin-left: 10px;
- .el-input__inner {
- width: 175px;
- }
- .el-input__suffix {
- right: -50px;
- }
- }
- .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% - 42px);
- .el-table__fixed,
- .el-table__fixed-right {
- background: rgba(0, 0, 0, 1);
- border-left: 2px solid #000;
- height: calc(100% - 15px) !important;
- }
- .el-table__fixed::before {
- background-color: #2a2a2a;
- }
- .el-table__fixed-right::before {
- background-color: #2a2a2a;
- }
- .el-pagination {
- display: flex;
- justify-content: flex-end;
- padding-top: 5px;
- .el-pagination__total,
- .el-pagination__jump {
- color: #fff;
- }
- }
- .historyBtn {
- cursor: pointer;
- color: #05bb4c;
- margin-right: 15px;
- }
- }
- .el-overlay {
- .el-overlay-dialog {
- overflow-y: hidden !important;
- .windhistoryDetailModel,
- .windDetailmodal {
- margin-top: 0 !important;
- .el-dialog__body {
- padding: 10px 20px 20px 20px;
- height: calc(100% - 80px);
- }
- }
- }
- }
- }
- </style>
|