1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588 |
- <template>
- <div class="parcel-box">
- <div class="form-wrapper">
- <el-select
- size="mini"
- :disabled="displayDetail"
- v-model="company"
- placeholder="请选择"
- @change="handleCompanyChange(company)"
- >
- <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="tabClick(val.id)"
- :class="[
- tabIndex === val.id ? 'active' : '',
- displayDetail ? 'disabled' : '',
- ]"
- v-for="val in tabOptions"
- :key="val.id"
- >
- <span>{{ val.name }}</span>
- </div>
- </div>
- <div class="station">
- 场站:
- <el-select
- size="mini"
- :disabled="displayDetail"
- v-model="stationObj"
- placeholder="请选择"
- @change="handleStationChange(stationObj)"
- clearable
- >
- <el-option
- v-for="item in stationList"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </div>
- <div class="station">
- 开始日期
- <div class="search-input">
- <el-date-picker
- :disabled="displayDetail"
- v-model="starTime"
- type="date"
- value-format="YYYY-MM-DD"
- placeholder="选择日期"
- popper-class="date-select"
- >
- </el-date-picker>
- </div>
- </div>
- <div class="station">
- 结束日期
- <div class="search-input">
- <el-date-picker
- :disabled="displayDetail"
- v-model="endTime"
- 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"
- :disabled="displayDetail"
- @click="gerCndb"
- >搜索</el-button
- >
- <el-button
- round
- size="mini"
- class="buttons"
- @click="dbfx"
- :disabled="
- chooseList.length <= 5 && chooseList.length > 1 ? false : true
- "
- >对标分析</el-button
- >
- <el-button
- round
- size="mini"
- class="buttons"
- @click="goBack"
- v-if="displayDetail"
- >返回</el-button
- >
- <el-button round size="mini" class="buttons" @click="funthb"
- >同环比</el-button
- >
- </div>
- </div>
- <div class="bodys" v-if="!displayDetail">
- <div class="line">
- <div class="leftContent"><span>场内对标</span></div>
- </div>
- <div class="economicTable">
- <el-table
- :data="tableData"
- ref="multipleTable"
- size="mini"
- height="calc(100% - 40px)"
- :cell-style="{ padding: '4px' }"
- :row-style="{ height: '0' }"
- stripe
- @selection-change="handleCurrentChange"
- >
- <el-table-column type="selection" width="60" align="center">
- </el-table-column>
- <el-table-column
- align="center"
- prop="zhpm"
- show-overflow-tooltip
- label="综合排名"
- width="80"
- sortable
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="date"
- label="日期"
- sortable
- width="100"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="fdlpm"
- label="发电量排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="fdl"
- label="发电量"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="gzssdlpm"
- label="故障损失排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="gzssdl"
- label="故障损失"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="jxssdlpm"
- label="检修损失排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="jxssdl"
- label="检修损失"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="xnssdlpm"
- label="性能损失排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="xnssdl"
- label="性能损失"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="xdssdlpm"
- label="限电损失排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="xdssdl"
- label="限电损失"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="slssdlpm"
- label="受累损失排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="slssdl"
- label="受累损失"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="fnlylpm"
- :label="(tabIndex === -1 ? '风能' : '光能') + '利用率排名'"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="fnlyl"
- :label="(tabIndex === -1 ? '风能' : '光能') + '利用率(%)'"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- show-overflow-tooltip
- prop="gzsslpm"
- label="故障损失率排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="gzssl"
- show-overflow-tooltip
- label="故障损失率(%)"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="jxsslpm"
- show-overflow-tooltip
- label="检修损失率排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="jxssl"
- show-overflow-tooltip
- label="检修损失率(%)"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="qflpm"
- show-overflow-tooltip
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="qfl"
- show-overflow-tooltip
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="xnsslpm"
- show-overflow-tooltip
- label="性能损失率排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="xnssl"
- show-overflow-tooltip
- label="性能损失率(%)"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="slsslpm"
- show-overflow-tooltip
- label="受累损失率排名"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column
- align="center"
- prop="slssl"
- show-overflow-tooltip
- label="受累损失率(%)"
- sortable
- width="65"
- >
- </el-table-column>
- <el-table-column align="center" prop="" label="操作">
- <template v-slot="scope">
- <span
- @click="goDetail(scope.row)"
- style="cursor: pointer; color: #05bb4c"
- >详情</span
- >
- </template>
- </el-table-column>
- </el-table>
- <div class="pagination-class">
- <el-pagination
- @current-change="handlePageChange"
- :current-page="page.currentPage"
- :page-size="page.pagesize"
- layout="total, prev, pager, next, jumper"
- :total="page.total"
- >
- </el-pagination>
- </div>
- </div>
- </div>
- <div class="echarts" v-if="!displayDetail">
- <div class="pie-echarts">
- <div class="chart-name">
- <div class="point point-left bottom"></div>
- <div class="point point-right bottom"></div>
- 损失电量分析
- </div>
- <PieChart
- :lossPower="lossPower"
- width="100%"
- height="calc(100% - 39px)"
- :showLable="false"
- ></PieChart>
- </div>
- <div class="bar-echarts">
- <div class="chart-name">
- <div class="point point-left bottom"></div>
- <div class="point point-right bottom"></div>
- 五项损失
- </div>
- <BarCharts
- :list="barList"
- width="100%"
- height="calc(100% - 39px)"
- :showLegend="true"
- :xdate="false"
- :colorIndex="true"
- ></BarCharts>
- </div>
- </div>
- <div
- v-if="displayDetail"
- style="height: calc(100% - 43px - 35px); padding-bottom: 10px"
- >
- <el-table
- :data="detailTable"
- ref="multipleTable"
- size="mini"
- height="100%"
- :cell-style="{ padding: '0px' }"
- :row-style="{ height: '0' }"
- stripe
- @selection-change="handleCurrentChange"
- >
- <el-table-column type="selection" width="60" align="center">
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="name"
- label="风机名称"
- width="150"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="zhpm"
- label="综合排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="gzssdl"
- label="故障损失"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="jxssdlpm"
- label="检修损失排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="jxssdl"
- label="检修损失"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xnssdlpm"
- label="性能损失排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xnssdl"
- label="性能损失"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xdssdlpm"
- label="限电损失排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xdssdl"
- label="限电损失"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="slssdlpm"
- label="受累损失排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="slssdl"
- label="受累损失"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="gzsslpm"
- label="故障损失率排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="gzssl"
- label="故障损失率(%)"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="jxsslpm"
- label="检修损失率排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="jxssl"
- label="检修损失率(%)"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="qflpm"
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="qfl"
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xnsslpm"
- label="性能损失率排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="xnssl"
- label="性能损失率(%)"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="slsslpm"
- label="受累损失率排名"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- prop="slssl"
- label="受累损失率(%)"
- sortable
- >
- </el-table-column>
- </el-table>
- <div class="pagination-class">
- <el-pagination
- @current-change="handlePageDChange"
- :current-page="pageD.currentPage"
- :page-size="pageD.pagesize"
- layout="total, prev, pager, next, jumper"
- :total="pageD.total"
- >
- </el-pagination>
- </div>
- </div>
- <el-dialog
- class="dialogs"
- width="90%"
- top="40px"
- v-model="dialogVisible"
- :show-close="true"
- >
- <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" />
- <dayinfo
- :radarValue="radarValue"
- :title="[windNum, windNum2]"
- :windNum="windNum"
- :windNum2="windNum2"
- :windNum3="windNum3"
- :windNum4="windNum4"
- :windNum5="windNum5"
- :tabs="tabs"
- :analyisDialog="analyisDialog"
- />
- </div>
- </el-dialog>
- <el-dialog
- class="dialogs"
- width="94%"
- top="120px"
- v-model="thbVisible"
- :show-close="true"
- >
- <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" />
- <div class="economicTable" style="height: 300px">
- <el-table
- :data="thbData"
- ref="multipleTable1"
- size="mini"
- height="100%"
- :cell-style="{ padding: '4px' }"
- :row-style="{ height: '0' }"
- stripe
- >
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="zhpm"
- label="综合排名"
- minWidth="80"
- sortable
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="name"
- label="类型"
- sortable
- minWidth="100"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="fdlpm"
- label="发电量排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="fdl"
- label="发电量"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="gzssdlpm"
- label="故障损失排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="gzssdl"
- label="故障损失"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="jxssdlpm"
- label="检修损失排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="jxssdl"
- label="检修损失"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xnssdlpm"
- label="性能损失排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xnssdl"
- label="性能损失"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xdssdlpm"
- label="限电损失排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xdssdl"
- label="限电损失"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="slssdlpm"
- label="受累损失排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="slssdl"
- label="受累损失"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="fnlylpm"
- :label="(tabIndex === -1 ? '风能' : '光能') + '利用率排名'"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="fnlyl"
- :label="(tabIndex === -1 ? '风能' : '光能') + '利用率(%)'"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="gzsslpm"
- label="故障损失率排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="gzssl"
- label="故障损失率(%)"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="jxsslpm"
- label="检修损失率排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="jxssl"
- label="检修损失率(%)"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="qflpm"
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="qfl"
- :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xnsslpm"
- label="性能损失率排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="xnssl"
- label="性能损失率(%)"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="slsslpm"
- label="受累损失率排名"
- sortable
- minWidth="65"
- >
- </el-table-column>
- <el-table-column
- show-overflow-tooltip
- align="center"
- label-class-name="s-tb-th"
- prop="slssl"
- label="受累损失率(%)"
- sortable
- minWidth="65"
- >
- </el-table-column>
- </el-table>
- </div>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import dayjs from "dayjs";
- import { companys } from "@/api/curveAnalyse";
- import { getStation, cndb, thb, details } from "@/api/performance";
- import PieChart from "../../homePage/components/pieChart.vue";
- import BarCharts from "../../homePage/components/barCharts.vue";
- import dayinfo from "../compontent/dayinfo.vue";
- export default {
- name: "siteBenchmarking", //场内对标
- components: {
- PieChart,
- BarCharts,
- dayinfo,
- },
- data() {
- return {
- page: {
- pagesize: 9,
- currentPage: 1,
- total: 0,
- },
- pageD: {
- pagesize: 19,
- currentPage: 1,
- total: 0,
- },
- company: "",
- companyOptions: [],
- stationObj: "",
- stationList: [],
- starTime: "",
- endTime: "",
- tabIndex: -1,
- tabOptions: [
- { id: -1, name: "风电" },
- { id: -2, name: "光伏" },
- ],
- tableData: [],
- detailTable: [],
- chooseList: [],
- lossPower: [],
- barList: [],
- displayDetail: false,
- dialogVisible: false,
- radarValue: [],
- windNum: "",
- windNum2: "",
- windNum3: "",
- windNum4: "",
- windNum5: "",
- tabs: [],
- analyisDialog: [],
- //同环比
- thbVisible: false,
- thbData: [],
- };
- },
- created() {
- // let date = new Date();
- // date.setDate(1);
- // let month = parseInt(date.getMonth() + 1);
- // let day = date.getDate();
- // if (month < 10) {
- // month = '0' + month;
- // }
- // if (day < 10) {
- // day = '0' + day;
- // }
- // this.starTime = date.getFullYear() + '-' + month + '-' + day;
- this.starTime = dayjs(new Date().getTime() - 60000 * 60 * 24 * 7).format(
- "YYYY-MM-DD"
- );
- this.endTime = dayjs(new Date().getTime()).format("YYYY-MM-DD");
- this.initialization();
- },
- methods: {
- handlePageChange(val) {
- this.page.currentPage = val;
- this.gerCndb();
- },
- handlePageDChange(val) {
- this.pageD.currentPage = val;
- this.goDetail();
- },
- funthb() {
- thb({
- companys: this.company,
- type: this.tabIndex,
- // beginDate: this.starTime,
- // endDate: this.endTime,
- pageNum: 1,
- pageSize: 10,
- wpids: this.stationObj,
- }).then(({ data: res }) => {
- if (res.data) {
- this.thbData = res.data;
- this.thbVisible = true;
- }
- });
- },
- tabClick(val) {
- this.tabIndex = val;
- this.getStation(this.company);
- this.gerCndb();
- // this.initialization();
- },
- initialization() {
- companys().then(({ data: res }) => {
- if (res.data) {
- this.company = res.data[0].id;
- this.companyOptions = res.data;
- this.getStation(res.data[0].id);
- }
- });
- },
- getStation(companyids) {
- getStation({
- companyids: companyids,
- type: this.tabIndex,
- }).then(({ data: res }) => {
- if (res.data.length) {
- this.stationList = res.data;
- this.stationObj = res.data[0].id;
- this.gerCndb();
- } else {
- this.stationList = [];
- this.stationObj = "";
- this.gerCndb();
- }
- });
- },
- gerCndb() {
- cndb({
- companys: this.company,
- type: this.tabIndex,
- beginDate: this.starTime,
- endDate: this.endTime,
- wpids: this.stationObj,
- pageSize: this.page.pagesize,
- pageNum: this.page.currentPage,
- target: "",
- sort: "",
- }).then(({ data: res }) => {
- if (res.data) {
- let barList = [
- {
- name: "故障损失电量",
- children: [],
- date: [],
- },
- {
- name: "检修损失电量",
- children: [],
- },
- {
- name: "性能损失电量",
- children: [],
- },
- {
- name: "限电损失电量",
- children: [],
- },
- {
- name: "受累损失电量",
- children: [],
- },
- ];
- this.tableData = res.data.resultList;
- this.page.total = res.data.total;
- let lossPower = [];
- res.data.resultList.forEach((item) => {
- let obj = {
- name: item.date,
- value: item.zssdl,
- };
- lossPower.push(obj);
- barList[0].date.push(item.date);
- barList[0].children.push(item.gzssdl);
- barList[1].children.push(item.jxssdl);
- barList[2].children.push(item.xnssdl);
- barList[3].children.push(item.xdssdl);
- barList[4].children.push(item.slssdl);
- });
- this.lossPower = lossPower;
- this.barList = barList;
- }
- });
- },
- handleStationChange(val) {
- this.stationObj = val;
- this.gerCndb();
- },
- handleCompanyChange(val) {
- this.company = val;
- this.getStation(val);
- this.gerCndb();
- },
- handleCurrentChange(val) {
- if (val.length > 5) {
- let del_row = val.shift();
- this.$refs.multipleTable.toggleRowSelection(del_row, false);
- }
- let arr = [];
- val.forEach((item, index) => {
- if (index < 5) {
- arr.push(item);
- }
- });
- this.chooseList = arr;
- },
- goDetail(row) {
- this.displayDetail = true;
- details({
- id: this.stationObj,
- beginDate: this.starTime,
- endDate: this.endTime,
- pageSize: this.pageD.pagesize,
- pageNum: this.pageD.currentPage,
- target: "",
- sort: "",
- }).then(({ data: res }) => {
- if (res.data) {
- this.detailTable = res.data.resultList;
- this.pageD.total = res.data.total;
- }
- });
- },
- goBack() {
- this.displayDetail = false;
- },
- dbfx() {
- if (this.chooseList.length <= 5) {
- this.dialogVisible = true;
- this.AjaxDbfx();
- }
- },
- AjaxDbfx() {
- var data = this.chooseList;
- this.windNum = data[0]?.date || data[0]?.name;
- this.windNum2 = data[1]?.date || data[1]?.name;
- this.windNum3 = data[2]?.date || data[2]?.name;
- this.windNum4 = data[3]?.date || data[3]?.name;
- this.windNum5 = data[4]?.date || data[4]?.name;
- let tabs = [
- {
- name: "发电量",
- code: "fdl",
- },
- {
- name: "故障损失电量",
- code: "gzssdl",
- },
- {
- name: "检修损失电量",
- code: "jxssdl",
- },
- {
- name: "性能未达标损失电量",
- code: "xnssdl",
- },
- {
- name: "受累损失电量",
- code: "slssdl",
- },
- {
- name: "风能利用率",
- code: "fnlyl",
- },
- {
- name: "故障损失率",
- code: "gzssl",
- },
- {
- name: "检修损失率",
- code: "jxssl",
- },
- {
- name: "弃风率",
- code: "qfl",
- },
- {
- name: "性能损失率",
- code: "xnssl",
- },
- {
- name: "受累损失率",
- code: "slssl",
- },
- ];
- tabs = tabs.map((item) => {
- if (item.code == "fnlyl") {
- if (this.tabIndex == -1) {
- item.name = "风能利用率";
- } else {
- item.name = "光能利用率";
- }
- }
- if (item.code == "qfl") {
- if (this.tabIndex == -1) {
- item.name = "弃风率";
- } else {
- item.name = "弃光率";
- }
- }
- return item;
- });
- tabs.forEach((val) => {
- data.forEach((item, index) => {
- val["windData" + (index + 1)] = item[val.code];
- });
- });
- this.tabs = tabs;
- let radarValue = [];
- data.forEach((item, index) => {
- let data = {
- indicator: [
- "风能利用率排名",
- "故障损失率排名",
- "检修损失率排名",
- "弃风率排名",
- "性能损失率排名",
- "受累损失率排名",
- ],
- data: [
- {
- value: [
- item.fnlylpm,
- item.gzsslpm,
- item.jxsslpm,
- item.qflpm,
- item.xnsslpm,
- item.slsslpm,
- ],
- name: item.name,
- },
- ],
- };
- if (this.tabIndex == -1) {
- data.indicator = [
- "风能利用率排名",
- "故障损失率排名",
- "检修损失率排名",
- "弃风率排名",
- "性能损失率排名",
- "受累损失率排名",
- ];
- } else {
- data.indicator = [
- "光能利用率排名",
- "故障损失率排名",
- "检修损失率排名",
- "弃光率排名",
- "性能损失率排名",
- "受累损失率排名",
- ];
- }
- radarValue.push(data);
- });
- this.radarValue = radarValue;
- var analyis = [],
- gzssdl = [],
- jxssdl = [],
- xnssdl = [],
- xdssdl = [],
- slssdl = [];
- data.forEach((item, index) => {
- gzssdl.push({
- text: item.date || item.name,
- value: item.gzssdl,
- });
- jxssdl.push({
- text: item.date || item.name,
- value: item.jxssdl,
- });
- xnssdl.push({
- text: item.date || item.name,
- value: item.xnssdl,
- });
- xdssdl.push({
- text: item.date || item.name,
- value: item.xdssdl,
- });
- slssdl.push({
- text: item.date || item.name,
- value: item.slssdl,
- });
- });
- analyis.push(
- {
- title: "故障损失电量",
- yAxisIndex: 0,
- value: gzssdl,
- },
- {
- title: "检修损失电量",
- yAxisIndex: 0,
- value: jxssdl,
- },
- {
- title: "性能损失电量",
- yAxisIndex: 0,
- value: xnssdl,
- },
- {
- title: "限电损失电量",
- yAxisIndex: 0,
- value: xdssdl,
- },
- {
- title: "受累损失电量",
- yAxisIndex: 0,
- value: slssdl,
- }
- );
- this.analyisDialog = analyis;
- },
- },
- watch: {
- screenHeight(val) {
- this.screenHeight = val;
- if (val > 1100) {
- this.echartsHeight = "58vh";
- } else {
- this.echartsHeight = "55vh";
- }
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .pagination-class {
- text-align: right;
- margin-top: 5px;
- }
- .parcel-box {
- height: 100%;
- width: 100%;
- padding: 0 30px;
- padding-bottom: 10px;
- }
- /deep/ .s-tb-th {
- height: 50px;
- }
- .form-wrapper {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-top: 10px;
- margin-bottom: 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;
- }
- .disabled {
- cursor: not-allowed;
- pointer-events: none;
- }
- }
- .tabCut1 {
- 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;
- }
- div:nth-child(3) {
- border-radius: 0px 13px 13px 0px;
- }
- .active {
- background-color: rgba(5, 187, 76, 0.9);
- color: #fff;
- }
- }
- .station {
- display: flex;
- flex-direction: row;
- align-items: center;
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #b3b3b3;
- margin-right: 10px;
- }
- .search-input {
- margin-left: 10px;
- }
- .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 {
- background-color: rgba(5, 187, 76, 0.5);
- color: #ffffff;
- }
- }
- }
- .bodys {
- width: 100%;
- height: calc(100% - 350px - 43px - 20px);
- background-color: rgba(0, 0, 0, 0.45);
- padding-bottom: 20px;
- border-radius: 5px;
- }
- .economicTable {
- width: 100%;
- height: calc(100% - 36px);
- }
- .line {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- padding-bottom: 5px;
- .leftContent {
- width: 242px;
- height: 41px;
- display: flex;
- align-items: center;
- 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;
- }
- }
- .rightContent {
- width: 212px;
- height: 28px;
- margin-top: 13px;
- background: url("../../../../assets/imgs/title_right_bg.png");
- }
- }
- .echarts {
- width: 100%;
- height: 350px;
- display: flex;
- flex-direction: row;
- align-items: center;
- .chart-name {
- display: flex;
- align-items: center;
- padding-left: 20px;
- position: relative;
- height: 39px;
- width: 98%;
- margin-left: 1%;
- border-bottom: 1px solid rgba(153, 153, 153, 0.5);
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #ffffff;
- }
- .pie-echarts {
- width: 30%;
- height: 100%;
- background: rgba(0, 0, 0, 0.45);
- border-radius: 5px;
- }
- .bar-echarts {
- width: 69%;
- margin-left: 1%;
- height: 100%;
- background: rgba(0, 0, 0, 0.45);
- border-radius: 5px;
- }
- }
- .point {
- width: 6px;
- height: 1px;
- background-color: #ffffff;
- position: absolute;
- &.point-left {
- left: 0;
- }
- &.point-right {
- right: 0;
- }
- &.top {
- top: -1px;
- }
- &.bottom {
- bottom: -1px;
- }
- }
- /*去除表头全选框*/
- ::v-deep .el-table__header-wrapper .el-checkbox {
- display: none;
- }
- ::v-deep .el-table__body-wrapper .el-checkbox {
- .el-checkbox__input {
- display: block;
- }
- }
- </style>
|