1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035 |
- <template>
- <div class="windDetail" :class="$store.state.isLeft ? 'windDetailWidth' : ''">
- <div class="action-bar">
- <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
- class="selections_btn"
- @click="tabSelect(3)"
- :class="{ active: tabIndex == 3 }"
- >
- 风机玫瑰图
- </div>
- <div
- class="selections_btn"
- @click="tabSelect(4)"
- :class="{ active: tabIndex == 4 }"
- >
- 风机切入切出分析
- </div>
- </div>
- <div class="windDetailseach">
- <div class="query-items">
- <div class="query-item">
- <div class="label">风场:</div>
- <div class="search-input">
- <el-select
- v-model="wpId"
- clearable
- placeholder="请选择"
- popper-class="select"
- @change="changeStationsVal"
- >
- <el-option
- v-for="item in wpArray"
- :key="item.id"
- :value="item.id"
- :label="item.name"
- />
- </el-select>
- </div>
- </div>
- <div class="query-item">
- <div class="label">风机:</div>
- <div class="search-input">
- <el-select
- v-model="wtId"
- clearable
- placeholder="请选择"
- popper-class="select"
- >
- <el-option
- v-for="item in wtArray"
- :key="item.id"
- :value="item.id"
- :label="item.aname"
- />
- </el-select>
- </div>
- </div>
- <div class="query-item">
- <div class="label">日期:</div>
- <div class="search-input ssTime">
- <el-date-picker
- v-model="recorddate"
- type="date"
- value-format="YYYY-MM-DD"
- placeholder="选择日期"
- popper-class="date-select"
- >
- </el-date-picker>
- </div>
- </div>
- </div>
- <div class="query-actions">
- <el-button class="seach" @click="search">搜索</el-button>
- </div>
- </div>
- </div>
- <!-- tab1 -->
- <div v-if="tabIndex == 0" class="TabOne">
- <panel :title="'损失电量分析'" class="TabOne_topChart">
- <area-line-chart
- :height="'22vh'"
- :lineData="lostChartData"
- :units="lostChartUnit"
- :areaData="LostChartBgColorData"
- @areaClick="areaBarChartClick"
- :showLegend="true"
- />
- </panel>
- <panel :title="'电量'" class="TabOne_centerChart">
- <multiple-bar-line-chart
- :height="'15vh'"
- :newbarData="powerChartData"
- :newlineData="powerChartLineData"
- :units="['(kWh)']"
- :showLegend="true"
- />
- </panel>
- <div class="table-info">
- <panel class="table-panel" :title="'当日报警记录'" :showLine="false">
- <Table :data="warnTableData" :canScroll="true" :height="'32.5vh'" />
- </panel>
- <panel class="table-panel" :title="'当日故障记录'" :showLine="false">
- <Table :data="stopTableData" :canScroll="true" :height="'32.5vh'" />
- </panel>
- <panel class="table-panel" :title="'当日限电记录'" :showLine="false">
- <Table :data="xdTableData" :canScroll="true" :height="'32.5vh'" />
- </panel>
- </div>
- </div>
- <!-- tab2 -->
- <div v-if="tabIndex == 1" class="tab-2">
- <el-row>
- <el-col :span="15" style="padding-right: 10px">
- <panel :title="'功率曲线'" class="mg-b-16">
- <marker-line-chart
- :height="'23vh'"
- :list="powerLineChartData"
- :units="['(MW)', '(功率)']"
- :showLegend="true"
- />
- </panel>
- <panel
- :title="'日发电量信息'"
- class="mg-b-16 outline"
- :showLine="false"
- >
- <div class="power-info">
- <div class="info-item">
- <div class="text">发电量:</div>
- <div class="value green">{{ dayPowerInfo.rfdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">理论发电量:</div>
- <div class="value green">{{ dayPowerInfo.ryfdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">平均功率:</div>
- <div class="value green">{{ dayPowerInfo.rpjgl }}</div>
- </div>
- <div class="info-item">
- <div class="text">平均风速:</div>
- <div class="value green">{{ dayPowerInfo.rpjfs }}</div>
- </div>
- <div class="info-item">
- <div class="text">拟合优度:</div>
- <div class="value green">{{ dayPowerInfo.rnhyd }}</div>
- </div>
- <div class="info-item">
- <div class="text">运行小时:</div>
- <div class="value green">{{ dayPowerInfo.ryxxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">停机小时:</div>
- <div class="value green">
- {{ Number(dayPowerInfo.rgzxs) + Number(dayPowerInfo.rjxxs) }}
- </div>
- </div>
- <div class="info-item">
- <div class="text">故障小时:</div>
- <div class="value green">{{ dayPowerInfo.rgzxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">维护小时:</div>
- <div class="value green">{{ dayPowerInfo.rjxxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">中断小时:</div>
- <div class="value green">{{ dayPowerInfo.rzdxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">有效风时数:</div>
- <div class="value green">{{ dayPowerInfo.ryxfs }}</div>
- </div>
- <div class="info-item">
- <div class="text">损失电量:</div>
- <div class="value green">{{ dayPowerInfo.rssdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">报警次数:</div>
- <div class="value green">{{ dayPowerInfo.rbjcs }}</div>
- </div>
- <div class="info-item">
- <div class="text">停机次数:</div>
- <div class="value green">{{ dayPowerInfo.rtjcs }}</div>
- </div>
- <div class="info-item">
- <div class="text">不饱和次数:</div>
- <div class="value green">{{ dayPowerInfo.rbbhcs }}</div>
- </div>
- <div class="info-item">
- <div class="text">设备可利用率:</div>
- <div class="value green">{{ dayPowerInfo.rsbklyl }}</div>
- </div>
- <div class="info-item">
- <div class="text">实际/保证偏差率:</div>
- <div class="value green">{{ dayPowerInfo.rsjbz }}</div>
- </div>
- <div class="info-item">
- <div class="text">平均温度:</div>
- <div class="value green">{{ dayPowerInfo.rpjwd }}</div>
- </div>
- <div class="info-item">
- <div class="text">平均湿度:</div>
- <div class="value green">{{ dayPowerInfo.rpjsd }}</div>
- </div>
- <div class="info-item">
- <div class="text">平均压强:</div>
- <div class="value green">{{ dayPowerInfo.rpjyq }}</div>
- </div>
- </div>
- </panel>
- <div class="month-info">
- <div class="month-info-left">
- <panel
- :title="'月发电量信息'"
- class="mg-b-16 outline"
- :showLine="false"
- >
- <div class="power-info month-3">
- <div class="info-item">
- <div class="text">月发电量:</div>
- <div class="value green">{{ dayPowerInfo.yfdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">月理论发电量:</div>
- <div class="value green">{{ dayPowerInfo.yyfdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">月平均功率:</div>
- <div class="value green">{{ dayPowerInfo.ypjgl }}</div>
- </div>
- <div class="info-item">
- <div class="text">月平均风速:</div>
- <div class="value green">{{ dayPowerInfo.ypjfs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月拟合优度:</div>
- <div class="value green">{{ dayPowerInfo.ynhyd }}</div>
- </div>
- <div class="info-item">
- <div class="text">月运行小时:</div>
- <div class="value green">{{ dayPowerInfo.yyxxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月停机小时:</div>
- <div class="value green">
- {{
- Number(dayPowerInfo.ygzxs) + Number(dayPowerInfo.yjxxs)
- }}
- </div>
- </div>
- <div class="info-item">
- <div class="text">月故障小时:</div>
- <div class="value green">{{ dayPowerInfo.ygzxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月维护小时:</div>
- <div class="value green">{{ dayPowerInfo.yjxxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月中断小时:</div>
- <div class="value green">{{ dayPowerInfo.yzdxs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月有效风时数:</div>
- <div class="value green">{{ dayPowerInfo.yyxfs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月报警次数:</div>
- <div class="value green">{{ dayPowerInfo.ybjcs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月停机次数:</div>
- <div class="value green">{{ dayPowerInfo.ytjcs }}</div>
- </div>
- <div class="info-item">
- <div class="text">月实际/保证:</div>
- <div class="value green">{{ dayPowerInfo.ysjbz }}</div>
- </div>
- <div class="info-item">
- <div class="text">设备可利用率:</div>
- <div class="value green">{{ dayPowerInfo.ysbklyl }}</div>
- </div>
- </div>
- </panel>
- </div>
- <div class="month-info-right">
- <panel
- :title="'年发电量信息'"
- class="mg-b-16 outline"
- :showLine="false"
- >
- <div class="power-info month-2">
- <div class="info-item">
- <div class="text">年发电量:</div>
- <div class="value green">{{ dayPowerInfo.nfdl }}</div>
- </div>
- <div class="info-item">
- <div class="text">年拟合优度:</div>
- <div class="value green">{{ dayPowerInfo.nnhyd }}</div>
- </div>
- </div>
- </panel>
- <panel
- :title="'风资源'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span style="color: #fff">{{ jfplStr }}</span>
- </div>
- <direction-radar-chart
- :width="'80%'"
- :height="'180px'"
- :value="windResourcesData"
- :showLegend="true"
- />
- </div>
- </panel>
- </div>
- </div>
- </el-col>
- <el-col :span="9">
- <panel
- class="table-panel outline mg-b-16"
- :title="'当日报警记录'"
- :showLine="false"
- >
- <Table :data="warnTableData" :canScroll="true" :height="'23vh'" />
- </panel>
- <panel
- class="table-panel outline mg-b-16"
- :title="'当日故障记录'"
- :showLine="false"
- >
- <Table :data="stopTableData" :canScroll="true" :height="'23vh'" />
- </panel>
- <panel
- class="table-panel outline"
- :title="'当月报警排行'"
- :showLine="false"
- >
- <Table
- :data="monthWarnRecordData"
- :canScroll="true"
- :height="'23vh'"
- />
- </panel>
- </el-col>
- </el-row>
- </div>
- <!-- tab3 -->
- <div v-if="tabIndex == 2" class="tab-3">
- <el-row>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'日最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ rzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="rzdfsData"
- title="日最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="rzdfsLen"
- :xAxis="rzdfsxaisx"
- :series="rzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'月最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ yzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="yzdfsData"
- title="月最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="yzdfsLen"
- :xAxis="yzdfsxaisx"
- :series="yzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'年最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ nzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="nzdfsData"
- title="年最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="nzdfsLen"
- :xAxis="nzdfsxaisx"
- :series="nzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'日风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ rfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="rfxplData"
- title="日风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="rfxplLen"
- :xAxis="rfxplxaisx"
- :series="rfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'月风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ yfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="yfxplData"
- title="月风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="yfxplLen"
- :xAxis="yfxplxaisx"
- :series="yfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'年风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ nfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="nfxplData"
- title="年风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="nfxplLen"
- :xAxis="nfxplxaisx"
- :series="nfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- </el-row>
- </div>
- <!-- tab4 -->
- <div v-if="tabIndex == 3" class="tab-4">
- <el-row>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'日最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ rzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="rzdfsData"
- title="日最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="rzdfsLen"
- :xAxis="rzdfsxaisx"
- :series="rzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'月最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ yzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="yzdfsData"
- title="月最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="yzdfsLen"
- :xAxis="yzdfsxaisx"
- :series="yzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'年最大风速'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ nzdfsStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="nzdfsData"
- title="年最大风速"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="nzdfsLen"
- :xAxis="nzdfsxaisx"
- :series="nzdfsData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'日风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ rfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="rfxplData"
- title="日风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="rfxplLen"
- :xAxis="rfxplxaisx"
- :series="rfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'月风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ yfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="yfxplData"
- title="月风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="yfxplLen"
- :xAxis="yfxplxaisx"
- :series="yfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- <el-col :span="8" class="tabColSty">
- <panel
- :title="'年风向频率'"
- class="radar-panel"
- :icon="'svg-wind-site'"
- >
- <div class="wind-info">
- <div class="legend mg-r-16">
- <span class="dot"></span>
- <span class="titSty">{{ nfxplStr }}</span>
- </div>
- <!-- <radar-chart
- :width="'100%'"
- :height="'350px'"
- :value="nfxplData"
- title="年风向频率"
- /> -->
- <rander-new-chart
- width="100%"
- height="350px"
- :lenged="nfxplLen"
- :xAxis="nfxplxaisx"
- :series="nfxplData"
- :isRadar="false"
- />
- </div>
- </panel>
- </el-col>
- </el-row>
- </div>
- <!-- tab5 -->
- <div v-if="tabIndex == 4" class="tab-5">
- <el-row>
- <el-col :span="8">
- <panel title="日小风切入">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="dayWindPieData"
- />
- </panel>
- </el-col>
- <el-col :span="8">
- <panel title="月小风切入">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="monthWindPieData"
- />
- </panel>
- </el-col>
- <el-col :span="8">
- <panel title="年小风切入">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="yearWindPieData"
- />
- </panel>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <panel title="日小风停机">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="dayStopPieData"
- />
- </panel>
- </el-col>
- <el-col :span="8">
- <panel title="月小风停机">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="monthStopPieData"
- />
- </panel>
- </el-col>
- <el-col :span="8">
- <panel title="年小风停机">
- <dual-pie-chart
- width="100%"
- height="350px"
- :series="yearStopPieData"
- />
- </panel>
- </el-col>
- </el-row>
- </div>
- <el-dialog
- title="区域详情查看"
- v-model="dialogShow"
- width="85%"
- top="10vh"
- custom-class="dialogShowmodal"
- :close-on-click-modal="true"
- >
- <el-form ref="form" label-width="100px" inline>
- <el-form-item style="width: 32%" label="开始时间:">{{
- form.ks
- }}</el-form-item>
- <el-form-item style="width: 32%" label="结束时间:">{{
- form.js
- }}</el-form-item>
- <el-form-item style="width: 32%" label="时长:"
- >{{ form.sc }}(小时)</el-form-item
- >
- <el-form-item style="width: 32%" label="风速:"
- >{{ form.fs }}(m/s)</el-form-item
- >
- <el-form-item style="width: 32%" label="功率:"
- >{{ form.gl }}(KW)</el-form-item
- >
- <el-form-item style="width: 32%" label="理论发电量:"
- >{{ form.llfdl }}(KWh)</el-form-item
- >
- <el-form-item style="width: 32%" label="发电量:"
- >{{ form.fdl }}(KWh)</el-form-item
- >
- <el-form-item style="width: 32%" label="损失电量:"
- >{{ form.ssdl }}(KWh)</el-form-item
- >
- <el-form-item style="width: 32%" label="风机状态:">{{
- form.fjzt
- }}</el-form-item>
- </el-form>
- </el-dialog>
- </div>
- </template>
- <script>
- import AreaLineChart from "@/components/chart/combination/area-line-chart.vue";
- import MultipleBarLineChart from "@/components/chart/combination/multiple-bar-line-chart.vue";
- import MarkerLineChart from "@/components/chart/line/multiple-line-chart.vue";
- import DualPieChart from "@/components/chart/pie/dual-pie-chart.vue";
- import DirectionRadarChart from "@/components/chart/radar/direction-radar-chart.vue";
- import RadarChart from "@/components/chart/radar/radar-chart.vue";
- import panel from "@/components/coms/panel/panel.vue";
- import Table from "@/components/coms/table/table.vue";
- import randerNewChart from "./raderswithhart.vue";
- import {
- getApifindWtRealPowerChar,
- getApigetplotBands,
- getApiplotBandAjax,
- getApifindRealPowerCharBy24,
- getApibjjllist,
- getApigzjllist,
- getApixdjllist,
- getApiwadAjax,
- getApibjphlist,
- getApiglchat,
- getApifjfzy,
- getApiequipmentList,
- getApiComMGTWP,
- getApiComMGTWT,
- getApiComPie,
- } from "@/api/monthlyPerformanceAnalysis";
- import * as echarts from "echarts";
- export default {
- components: {
- panel,
- AreaLineChart,
- MultipleBarLineChart,
- Table,
- MarkerLineChart,
- DirectionRadarChart,
- DualPieChart,
- RadarChart,
- randerNewChart,
- },
- props: {
- wpArray: {
- type: Array,
- default: [],
- },
- },
- data() {
- return {
- tabIndex: 0,
- tableData: {
- column: [
- {
- name: "风机",
- field: "name",
- is_num: false,
- is_light: false,
- },
- {
- name: "描述",
- field: "desc",
- is_num: false,
- is_light: false,
- },
- {
- name: "报警时间",
- field: "date",
- is_num: false,
- is_light: false,
- },
- ],
- data: [],
- },
- wpId: "",
- wtArray: [],
- wtId: "",
- recorddate: "",
- lostChartData: [
- {
- text: "",
- value: [],
- },
- ],
- lostChartUnit: [],
- LostChartBgColorData: [
- {
- name: "",
- },
- ],
- powerChartData: [],
- powerChartLineData: {},
- warnTableData: {
- column: [
- {
- name: "风机",
- field: "windturbineid",
- is_num: false,
- is_light: false,
- },
- {
- name: "描述",
- field: "warnDesc",
- is_num: false,
- is_light: false,
- },
- {
- name: "报警时间",
- field: "warningtime",
- is_num: false,
- is_light: false,
- },
- ],
- data: [],
- },
- stopTableData: {
- column: [
- {
- name: "风机",
- field: "windTurbineId",
- is_num: false,
- is_light: false,
- },
- {
- name: "停机时间",
- field: "stopTime",
- is_num: false,
- is_light: false,
- },
- {
- name: "恢复时间",
- field: "starttime",
- is_num: false,
- is_light: false,
- },
- ],
- data: [],
- },
- xdTableData: {
- column: [
- {
- name: "风机",
- field: "windturbineid",
- is_num: false,
- is_light: false,
- },
- {
- name: "停机时间",
- field: "stoptime",
- is_num: false,
- is_light: false,
- },
- {
- name: "恢复时间",
- field: "starttime",
- is_num: false,
- is_light: false,
- },
- {
- name: "损失电量",
- field: "losspower",
- is_num: false,
- is_light: false,
- },
- {
- name: "限电时长",
- field: "stophours",
- is_num: false,
- is_light: false,
- },
- ],
- data: [],
- },
- powerLineChartData: [
- {
- title: "",
- yAxisIndex: 0,
- value: [],
- },
- ],
- dayPowerInfo: {},
- monthWarnRecordData: {
- column: [
- {
- name: "名字",
- field: "name",
- is_num: false,
- is_light: false,
- },
- {
- name: "次数",
- field: "frequency",
- is_num: true,
- is_light: false,
- },
- ],
- data: [],
- },
- jfplStr: "",
- windResourcesData: {
- indicator: ["N0", "N1", "N2", "N3", "N4", "N5"],
- data: [
- {
- value: [44200, 14200, 20000, 35000, 50000, 38000],
- name: "",
- },
- ],
- },
- rzdfsStr: "",
- rzdfsLen: [],
- rzdfsData: [],
- rzdfsxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- yzdfsStr: "",
- yzdfslen: [],
- yzdfsData: [],
- yzdfsxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- nzdfsStr: "",
- nzdfsLen: [],
- nzdfsData: [],
- nzdfsxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- rfxplStr: "",
- rfxplLen: [],
- rfxplData: [],
- rfxplxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- yfxplStr: "",
- yfxplLen: [],
- yfxplData: [],
- yfxplxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- nfxplStr: "",
- nfxplLen: [],
- nfxplData: [],
- nfxplxaisx: {
- type: "category",
- boundaryGap: false,
- data: [],
- splitLine: {
- show: true,
- },
- },
- dayWindPieData: [],
- monthWindPieData: [],
- yearWindPieData: [],
- dayStopPieData: [],
- monthStopPieData: [],
- yearStopPieData: [],
- dialogShow: false,
- form: {},
- };
- },
- methods: {
- init(row) {
- this.wpId = row.windtpowerstationId;
- // this.wtId = row.windturbineId.substring(row.windturbineId.indexOf('_F'))
- this.wtId = row.windturbineId;
- this.tabIndex = 0;
- this.getWindData();
- this.search();
- },
- // 切换风场
- changeStationsVal(val) {
- this.wpId = val;
- this.getWindData();
- },
- // 获取风机
- async getWindData() {
- let params = {
- companyId: "",
- wpIds: this.wpId,
- projectIds: "",
- lineIds: "",
- type: 0,
- };
- const { data: datas } = await getApiequipmentList(params);
- this.wtArray = datas.data;
- this.wtId = datas.data[0].id;
- },
- // tab1 ----------------------------------------
- // tab1 - 获取损失电量分析图表数据
- async getLostChartData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApifindWtRealPowerChar(params);
- if (datas && datas.data.length > 0) {
- const keyArray = ["value1", "value2", "value3"];
- let lostChartData = [
- {
- text: "实发功率",
- value: [
- {
- text: "1",
- value: 1,
- },
- ],
- },
- {
- text: "保证功率",
- value: [],
- },
- {
- text: "风速",
- value: [],
- },
- ];
- const lostChartUnit = ["实发功率", "保证功率", "风速", "状态"];
- keyArray.forEach((key, keyIndex) => {
- datas.data.forEach((ele) => {
- lostChartData[keyIndex].value.push({
- text: new Date(ele.time).formatDate("hh:mm"),
- value: ele[key],
- });
- });
- });
- that.lostChartData = lostChartData;
- that.lostChartUnit = lostChartUnit;
- that.getLostChartBgColorData();
- }
- },
- // tab1 - 获取损失电量分析图表背景颜色
- async getLostChartBgColorData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApigetplotBands(params);
- if (datas && datas.data.length > 0) {
- let LostChartBgColorData = [];
- datas.data.forEach((pEle, pIndex) => {
- LostChartBgColorData.push({
- name: pEle[0].name,
- start: pIndex ? LostChartBgColorData[pIndex - 1].end : 0,
- end:
- (pIndex ? LostChartBgColorData[pIndex - 1].end : 0) +
- (new Date(pEle[0].time2).getTime() / 1000 -
- new Date(pEle[0].time1).getTime() / 1000),
- color: pEle[0].itemStyle.color,
- beginDate: pEle[0].time1,
- endDate: pEle[0].time2,
- wtId: that.wtId,
- });
- });
- that.LostChartBgColorData = LostChartBgColorData;
- }
- },
- // 损失电量分析图背景颜色区域点击事件
- async areaBarChartClick(item) {
- let that = this;
- let params = {
- wtId: item.data.wtId,
- beginDate: item.data.beginDate,
- endDate: item.data.endDate,
- };
- const { data: datas } = await getApiplotBandAjax(params);
- if (datas && datas.data) {
- that.form = datas.data || {};
- that.dialogShow = true;
- }
- },
- // tab1 - 获取电量图表数据
- async getPowerChartData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApifindRealPowerCharBy24(params);
- if (datas && datas.data.length > 0) {
- const keyArray = ["value1", "value2", "value3", "value4", "value5"];
- let powerChartData = [
- {
- title: "scada发电量",
- type: "bar",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "维护损失",
- type: "bar",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "故障损失",
- type: "bar",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "限电损失",
- type: "bar",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "欠发损失",
- type: "bar",
- yAxisIndex: 0,
- value: [],
- },
- ];
- let powerChartLineData = {
- name: "风速",
- unit: "(m/s)",
- type: "line",
- data: [],
- };
- for (let i = 0; i < keyArray.length; i++) {
- let keyEle = keyArray[i];
- for (let j = 0; j < datas.data.length; j++) {
- let ele = datas.data[j];
- powerChartData[i].value.push({
- text: new Date(ele.time).formatDate("hh:mm"),
- value: ele[keyEle],
- });
- powerChartLineData.data.push(ele.value6);
- }
- }
- that.powerChartData = powerChartData;
- that.powerChartLineData = powerChartLineData;
- }
- },
- // tab1 - 获取当日报警数据
- async getWarnData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- pageNum: "1",
- pageSize: "5",
- };
- const { data: datas } = await getApibjjllist(params);
- if (datas && datas.data && datas.data.records.length > 0) {
- datas.data.records.forEach((ele) => {
- ele.warningtime = new Date(ele.warningtime).formatDate(
- "yyyy-MM-dd hh:mm:ss"
- );
- });
- that.warnTableData.data = datas.data.records;
- }
- },
- // tab1 - 获取当日故障数据
- async getStopData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- pageNum: "1",
- pageSize: "5",
- };
- const { data: datas } = await getApigzjllist(params);
- if (datas && datas.data && datas.data.records.length > 0) {
- datas.data.records.forEach((ele) => {
- ele.stopTime = new Date(ele.stopTime).formatDate(
- "yyyy-MM-dd hh:mm:ss"
- );
- ele.starttime = ele.starttime
- ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
- : "";
- });
- that.stopTableData.data = datas.data.records;
- }
- },
- // tab1 - 获取当日限电数据
- async getXdData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- pageNum: "1",
- pageSize: "5",
- };
- const { data: datas } = await getApixdjllist(params);
- if (datas && datas.data && datas.data.records.length > 0) {
- datas.data.records.forEach((ele) => {
- ele.stopTime = new Date(ele.stopTime).formatDate(
- "yyyy-MM-dd hh:mm:ss"
- );
- ele.starttime = ele.starttime
- ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
- : "";
- });
- that.xdTableData.data = datas.data.records;
- }
- },
- // tab2 ----------------------------------------
- // tab2 - 获取日发电量信息
- async getDayPowerInfo() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApiwadAjax(params);
- if (datas && datas.data) {
- that.dayPowerInfo = datas.data;
- }
- },
- // tab2 - 获取当月报警排行
- async getMonthWarnRecord() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- pageNum: "1",
- pageSize: "5",
- };
- const { data: datas } = await getApibjphlist(params);
- if (datas && datas.data) {
- that.monthWarnRecordData.data = datas.data;
- }
- },
- // tab2 - 获取当月报警排行
- async getPowerLineChartData() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApiglchat(params);
- if (datas && datas.data.length > 0) {
- const keyArray = ["value2", "value3", "value4"];
- let powerLineChartData = [
- {
- title: "实际拟合功率",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "最优功率",
- yAxisIndex: 0,
- value: [],
- },
- {
- title: "保证功率",
- yAxisIndex: 0,
- value: [],
- },
- ];
- keyArray.forEach((keyEle, keyIndex) => {
- datas.data.forEach((ele, index) => {
- powerLineChartData[keyIndex].value.push({
- text: index + 1,
- value: ele[keyEle],
- });
- });
- });
- that.powerLineChartData = powerLineChartData;
- }
- },
- // tab2 - 获取当月报警排行
- async getWindResources() {
- let that = this;
- let params = {
- wtId: that.wtId,
- recorddate: that.recorddate,
- };
- const { data: datas } = await getApifjfzy(params);
- if (datas && datas.data) {
- that.jfplStr = datas.data.jfpl || "";
- let windResourcesData = {
- indicator: [],
- data: [
- {
- name: "",
- value: [],
- },
- ],
- };
- if (datas.data.data) {
- datas.data.data.forEach((ele) => {
- windResourcesData.indicator.push(ele.name);
- windResourcesData.data[0].value.push(ele.data1);
- });
- }
- that.windResourcesData = windResourcesData;
- }
- },
- // tab3,tab4 - 获取玫瑰图
- async getMgt(subUrl, data, dataKey, logFlg) {
- let that = this;
- let params = {};
- if (logFlg === "wp") {
- params.url = subUrl;
- params.recorddate = data.recorddate;
- params.wpId = data.wpId;
- const datas = await getApiComMGTWP(params);
- // this.changeAllMsg(datas, dataKey)
- this.changeAllMsgNewChart(datas, dataKey);
- } else {
- params.url = subUrl;
- params.recorddate = data.recorddate;
- params.wtId = data.wtId;
- const datas = await getApiComMGTWT(params);
- // this.changeAllMsg(datas, dataKey)
- this.changeAllMsgNewChart(datas, dataKey);
- }
- },
- //整合数据
- changeAllMsg(datas, dataKey) {
- if (datas && datas.data) {
- let strrt = dataKey.split("Data")[0] + "Str";
- this[strrt] = datas.data.jfpl || "";
- let mgtData = {
- indicator: [],
- data: [
- {
- name: "",
- value: [],
- },
- ],
- };
- let indicatorArr = [
- { nameZn: "北", nameEn: "N" },
- { nameZn: "北北西", nameEn: "NNW" },
- { nameZn: "北西", nameEn: "NW" },
- { nameZn: "西北西", nameEn: "WNW" },
- { nameZn: "西", nameEn: "W" },
- { nameZn: "西南西", nameEn: "WSW" },
- { nameZn: "南西", nameEn: "SW" },
- { nameZn: "南南西", nameEn: "SSW" },
- { nameZn: "南", nameEn: "S" },
- { nameZn: "南南东", nameEn: "SSE" },
- { nameZn: "南东", nameEn: "SE" },
- { nameZn: "东南东", nameEn: "ESE" },
- { nameZn: "东", nameEn: "E" },
- { nameZn: "东北东", nameEn: "ENE" },
- { nameZn: "北东", nameEn: "NE" },
- { nameZn: "北北东", nameEn: "NNE" },
- ];
- if (datas.data.data.length > 0) {
- datas.data.data.forEach((ele) => {
- mgtData.data[0].value.push(ele.data1);
- indicatorArr.forEach((itc) => {
- let str = "";
- if (ele.name.substring(0, ele.name.indexOf(" ")) === itc.nameEn) {
- str = ele.name.replace(itc.nameEn, itc.nameZn);
- str = str.substring(0, str.indexOf(" "));
- mgtData.indicator.push(str);
- }
- });
- });
- }
- this[dataKey] = mgtData;
- }
- },
- changeAllMsgNewChart(datas, dataKey) {
- if (datas && datas.data) {
- let strrt = dataKey.split("Data")[0] + "Str";
- let strLen = dataKey.split("Data")[0] + "Len";
- let strxaisx = dataKey.split("Data")[0] + "xaisx";
- this[strrt] = datas.data.jfpl || "";
- this[strxaisx].data = [];
- this[strLen] = [];
- this[dataKey] = [];
- let lengedSer = [];
- let series = [];
- let objsxArrAll = [];
- if (datas.data.data.length > 0) {
- datas.data.data.forEach((item) => {
- let str = item.name.substring(
- item.name.indexOf(" ") + 1,
- item.name.length
- );
- if (lengedSer.indexOf(str) === -1) {
- lengedSer.push(str);
- }
- });
- for (let i = 0; i < lengedSer.length; i++) {
- // debugger
- let ia = lengedSer[i];
- let objsxArr = [];
- let objsxArrObj = {
- name: "",
- data: [],
- };
- for (let j = 0; j < datas.data.data.length; j++) {
- let ic = datas.data.data[j];
- let objsx = {
- fx: "",
- data: "",
- };
- objsx.fx = ic.name.substring(0, ic.name.indexOf(" "));
- if (ic.name.indexOf(ia) > 0) {
- objsx.data = ic.data1;
- } else {
- objsx.data = 0;
- }
- objsxArr.push(objsx);
- }
- objsxArrObj.name = ia;
- objsxArrObj.data = objsxArr;
- objsxArrAll.push(objsxArrObj);
- }
- objsxArrAll.forEach((iiv, index) => {
- let barObj = {
- type: "bar",
- data: [],
- coordinateSystem: "polar",
- name: iiv.name,
- stack: "a",
- emphasis: {
- focus: "series",
- },
- };
- if (index === 0) {
- iiv.data.forEach((iu) => {
- this[strxaisx].data.push(iu.fx);
- });
- }
- iiv.data.forEach((iu) => {
- barObj.data.push(iu.data);
- });
- series.push(barObj);
- });
- }
- // let lineObj = {
- // type: 'line',
- // coordinateSystem: 'polar',
- // tooltip: {
- // trigger: 'item'
- // },
- // name: '对风频次',
- // data: linSer
- // }
- // series.push(lineObj)
- this[strLen] = lengedSer;
- this[dataKey] = series;
- }
- },
- // tab5 - 获取饼图
- async getPieChart(subUrl, type, dataKey) {
- let that = this;
- let params = {
- url: subUrl,
- wtId: that.wtId,
- recorddate: that.recorddate,
- type: type,
- };
- const { data: datas } = await getApiComPie(params);
- // const datas = await request({
- // method: "GET",
- // url: subUrl + `?recorddate=${params.recorddate}&wtId=${params.wtId}&type=${params.type}`
- // })
- // if (datas && datas.data.length>0) {
- // let pieChart = [];
- // datas.data.forEach((ele) => {
- // pieChart.push({
- // name: ele.name,
- // value: ele.value2,
- // unit: "(m/s)",
- // });
- // });
- // that[dataKey] = pieChart;
- // }
- if (datas && datas.data.length > 0) {
- let series = [];
- let color1 = [
- "#da0d68",
- "#da1d23",
- "#ebb40f",
- "#187a2f",
- "#0aa3b5",
- "#c94930",
- "#ad213e",
- ];
- let color2 = [
- "#cc7b6a",
- "#db646a",
- "#80a89d",
- "#794752",
- "#7a9bae",
- "#039fb8",
- "#5e777b",
- ];
- let color3 = [
- "#62aa3c",
- "#03a653",
- "#038549",
- "#28b44b",
- "#a3a830",
- "#7ac141",
- "#a2bb2b",
- ];
- let color4 = [
- "#e65832",
- "#da1d23",
- "#4b55ae",
- "#3aa255",
- "#0aa3b5",
- "#1c99ff",
- "#ebb40f",
- ];
- datas.data.forEach((ele, idx) => {
- let obj = {
- name: ele.value1,
- itemStyle: {
- color: color4[idx],
- },
- children: [
- {
- name: ele.value2 + "%",
- value: 1,
- itemStyle: {
- color: color4[idx],
- },
- children: [
- {
- name: ele.name,
- value: 1,
- label: {
- color: "#A0A0A0",
- },
- labelLine: {
- itemStyle: {
- width: 1,
- type: "dashed",
- color: color4[idx],
- },
- },
- },
- ],
- },
- ],
- };
- series.push(obj);
- });
- that[dataKey] = series;
- }
- },
- // 切换tab
- tabSelect(index) {
- this.tabIndex = index;
- this.search();
- },
- // 搜索
- search() {
- if (this.tabIndex === 0) {
- this.getLostChartData();
- this.getPowerChartData();
- this.getWarnData();
- this.getStopData();
- this.getXdData();
- } else if (this.tabIndex === 1) {
- this.getWarnData();
- this.getStopData();
- this.getDayPowerInfo();
- this.getMonthWarnRecord();
- this.getPowerLineChartData();
- this.getWindResources();
- } else if (this.tabIndex === 2) {
- const xhrParam = { wpId: this.wpId, recorddate: this.recorddate };
- this.getMgt(`/goodness/wprzdfs`, xhrParam, "rzdfsData", "wp");
- this.getMgt(`/goodness/wpyzdfs`, xhrParam, "yzdfsData", "wp");
- this.getMgt(`/goodness/wpnzdfs`, xhrParam, "nzdfsData", "wp");
- this.getMgt(`/goodness/wprfxpl`, xhrParam, "rfxplData", "wp");
- this.getMgt(`/goodness/wpyfxpl`, xhrParam, "yfxplData", "wp");
- this.getMgt(`/goodness/wpnfxpl`, xhrParam, "nfxplData", "wp");
- } else if (this.tabIndex === 3) {
- const xhrParam = { wtId: this.wtId, recorddate: this.recorddate };
- this.getMgt(`/goodness/wtrzdfs`, xhrParam, "rzdfsData", "wt");
- this.getMgt(`/goodness/wtyzdfs`, xhrParam, "yzdfsData", "wt");
- this.getMgt(`/goodness/wtnzdfs`, xhrParam, "nzdfsData", "wt");
- this.getMgt(`/goodness/wtrfxpl`, xhrParam, "rfxplData", "wt");
- this.getMgt(`/goodness/wtyfxpl`, xhrParam, "yfxplData", "wt");
- this.getMgt(`/goodness/wtnfxpl`, xhrParam, "nfxplData", "wt");
- } else if (this.tabIndex === 4) {
- this.getPieChart(`/goodness/pieChart`, "1", "dayWindPieData");
- this.getPieChart(`/goodness/pieChart`, "2", "monthWindPieData");
- this.getPieChart(`/goodness/pieChart`, "3", "yearWindPieData");
- this.getPieChart(`/goodness/pieChart`, "4", "dayStopPieData");
- this.getPieChart(`/goodness/pieChart`, "5", "monthStopPieData");
- this.getPieChart(`/goodness/pieChart`, "6", "yearStopPieData");
- }
- },
- },
- };
- </script>
- <style lang="less">
- .windDetailWidth {
- width: calc(100%-50px);
- margin-left: 50px;
- }
- .windDetail {
- .action-bar {
- display: flex;
- margin: 10px 0 20px 0;
- .selections {
- flex: 1 0 auto;
- display: flex;
- .selections_btn {
- flex: 0 0 164px;
- text-align: center;
- height: 33px;
- line-height: 33px;
- margin-right: 8px;
- color: #fff;
- font-size: 1.296vh;
- background: fade(#606769, 20);
- border: 1px solid fade(#606769, 20);
- border-radius: 20px;
- &:hover,
- &.active {
- background: fade(#0046c7, 80);
- border: 1px solid #0046c7;
- color: #b9b9b9;
- cursor: pointer;
- }
- }
- }
- .windDetailseach {
- display: flex;
- .query-items {
- flex: 0 0 auto;
- display: flex;
- .query-item {
- flex: 0 0 auto;
- display: flex;
- margin: 0 1.4815vh;
- .label {
- color: #fff;
- position: relative;
- top: 2px;
- }
- .ssTime {
- position: relative;
- top: -8px;
- }
- }
- }
- .query-actions {
- .el-button {
- height: 25px;
- line-height: 25px;
- background: fade(#0046c7, 20);
- border: 1px solid #0046c7;
- color: #b9b9b9;
- border-radius: 20px;
- span {
- position: relative;
- top: -10px;
- }
- }
- }
- }
- }
- .outline {
- outline: 1px solid fade(#606769, 50);
- }
- .TabOne {
- .TabOne_topChart {
- margin-bottom: 10px;
- }
- .TabOne_centerChart {
- margin-bottom: 10px;
- }
- .table-info {
- display: flex;
- .table-panel {
- flex: 1 0 calc(100% / 3 - 8px);
- outline: 1px solid fade(#606769, 50);
- height: 100%;
- & + .table-panel {
- margin-left: 8px;
- }
- }
- }
- }
- .tab-2 {
- .power-info {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- &.month-3 {
- .info-item {
- flex: 0 0 calc(100% / 3 - 6px);
- &:nth-child(-n + 5) {
- margin-top: 8px;
- }
- &:nth-child(-n + 3) {
- margin-top: 0px;
- }
- }
- }
- &.month-2 {
- .info-item {
- flex: 0 0 calc(100% / 2 - 4px);
- &:nth-child(-n + 5) {
- margin-top: 8px;
- }
- &:nth-child(-n + 2) {
- margin-top: 0px;
- }
- }
- }
- .info-item {
- display: flex;
- align-items: center;
- flex: 0 0 calc(100% / 5 - 8px);
- background: fade(#606769, 20);
- height: 4.6296vh;
- line-height: 4.6296vh;
- margin-top: 8px;
- &:nth-child(-n + 5) {
- margin-top: 0px;
- }
- .text {
- font-size: 12px;
- flex: 0 0 110px;
- text-align: right;
- margin-right: 24px;
- color: #fff;
- }
- .value {
- font-size: 16px;
- color: #1c99ff;
- }
- }
- }
- .mg-b-16 {
- margin-bottom: 1.481vh;
- }
- .month-info {
- display: flex;
- .month-info-left {
- flex: 0 0 705px;
- margin-right: 10px;
- }
- .month-info-right {
- flex: 1 0 auto;
- }
- }
- .moon-other {
- flex: 1 0 auto;
- }
- .radar-panel {
- height: 22.5vh;
- .panel-body {
- height: 100%;
- }
- }
- .wind-info {
- display: flex;
- .legend {
- font-size: 12px;
- height: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 32px;
- margin-bottom: 16px;
- .dot {
- width: 7px;
- height: 7px;
- background: #0046c7;
- display: inline-block;
- margin-right: 8px;
- }
- }
- }
- }
- .tab-3,
- .tab-4 {
- .tabColSty {
- margin-bottom: 20px;
- height: 40vh;
- }
- .wind-info {
- position: relative;
- .legend {
- position: absolute;
- left: 500px;
- top: 0;
- font-size: 12px;
- flex: 0 0 140px;
- height: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 32px;
- margin-bottom: 16px;
- .dot {
- width: 7px;
- height: 7px;
- background: #0046c7;
- display: inline-block;
- margin-right: 8px;
- }
- .titSty {
- color: #fff;
- }
- }
- }
- }
- .tab-5 {
- .panel-body {
- padding: 16px;
- }
- }
- .el-overlay {
- .el-overlay-dialog {
- .dialogShowmodal {
- margin-top: 10vh !important;
- }
- }
- }
- }
- </style>
|