123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- <template>
- <div class="comprehensiveEvaluation">
- <div class="Evaluation_topall">
- <div class="Evaluation_top">
- <el-select
- size="mini"
- v-model="tabEvent"
- placeholder="请选择"
- @change="changeBtn"
- >
- <el-option
- v-for="item in tabOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- <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>
- <el-select
- size="mini"
- v-model="stationVal"
- placeholder="请选择"
- clearable
- @change="changeStation"
- >
- <el-option
- v-for="item in stationOptions"
- :key="item.id"
- :label="item.aname"
- :value="item.id"
- >
- </el-option>
- </el-select>
- <div class="station">
- 时间
- <div class="search-input">
- <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="contrastFn"
- :disabled="chooseList.length === 2 ? false : true"
- >信息对比</el-button
- >
- </div>
- </div>
- <div class="selections">
- <div
- class="selections_btn"
- @click="tabSelect(0)"
- :class="{ active: tabIndex == 0 }"
- >
- 日
- </div>
- <div
- class="selections_btn"
- @click="tabSelect(1)"
- :class="{ active: tabIndex == 1 }"
- >
- 月
- </div>
- <div
- class="selections_btn"
- @click="tabSelect(2)"
- :class="{ active: tabIndex == 2 }"
- >
- 年
- </div>
- </div>
- </div>
- <div style="background: rgba(0, 0, 0, 0.4)">
- <div class="Evaluation_title clearfix">
- <div class="leftContent floatLeft"><span>性能等级评估</span></div>
- <div class="rightContent floatRight"></div>
- </div>
- <div class="Evaluation_Table">
- <el-table
- :data="EvaluationData"
- stripe
- @selection-change="handleCurrentChange"
- size="mini"
- height="80vh"
- ref="Eval_table"
- style="width: 100%"
- >
- <el-table-column type="selection" width="55" align="center">
- </el-table-column>
- <el-table-column prop="nemCode" label="风机" align="center">
- </el-table-column>
- <el-table-column prop="dayLevel" label="等级" align="center">
- </el-table-column>
- <el-table-column prop="dayRank" label="综合排名" align="center">
- </el-table-column>
- <el-table-column
- v-for="(item, index) in tableHeader"
- :key="index"
- sortable
- :prop="item.code"
- :label="item.title"
- align="center"
- >
- <template #header="scope">
- <div>
- {{
- scope.column.label.slice(0, scope.column.label.indexOf("("))
- }}
- </div>
- <div>
- {{ scope.column.label.slice(scope.column.label.indexOf("(")) }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center">
- <template #default="scope">
- <span
- @click="seachHistoryData(scope.row)"
- style="cursor: pointer; color: #1c99ff"
- >历史</span
- >
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <el-dialog
- v-model="dialogVisible"
- width="100%"
- custom-class="EvaluationhistoryModel"
- :close-on-click-modal="false"
- >
- <template #title>
- <div class="dialog-title">
- <img
- class="dialog-title-img"
- src="@assets/img/images/dialog-title.png"
- />
- <div class="title">{{ dialogTitle }}</div>
- </div>
- </template>
- <div class="body">
- <historyDetailFd ref="windhistoryDetail" />
- </div>
- </el-dialog>
- <el-dialog
- v-model="contrastVisible"
- width="70%"
- top="5vh"
- custom-class="contrastModal"
- :close-on-click-modal="false"
- >
- <template #title>
- <div class="dialog-title">
- <img
- class="dialog-title-img"
- src="@assets/img/images/dialog-title.png"
- />
- <div class="title">信息对比</div>
- </div>
- </template>
- <div class="dialog-body">
- <img class="dialog-img" src="@assets/img/images/dialog.png" />
- <dayDetailInfoFd
- :chooseList="chooseList"
- :tabEvent="tabEvent"
- ref="MessageContrast"
- />
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import { getApiequipmentinfoDayList } from "@/api/monthlyPerformanceAnalysis";
- import { GetOrganization, GetStationByCompany } from "@/api/headerNav.js";
- import historyDetailFd from "./historyDetailFd.vue";
- import dayDetailInfoFd from "./dayDetailInfoFd.vue";
- export default {
- name: "performanceAssess",
- components: {
- historyDetailFd,
- dayDetailInfoFd,
- },
- data() {
- return {
- tabIndex: 0,
- companyVal: "",
- companyOptions: [],
- stationVal: "",
- stationOptions: [],
- pickerTimer: "",
- EvaluationData: [],
- tableHeader: [
- { title: "发电量(kWh)", code: "dayfdl" },
- { title: "理论发电量(kWh)", code: "dayllfdl" },
- { title: "平均风速(m/s)", code: "dayfs" },
- { title: "平均功率(KW)", code: "daygl" },
- { title: "故障损失(kWh)", code: "daygzssdl" },
- { title: "限电损失(kWh)", code: "dayxdssdl" },
- { title: "维护损失(kWh)", code: "daywhssdl" },
- { title: "性能损失(kWh)", code: "dayxnssdl" },
- { title: "利用小时数(h)", code: "daylyxs" },
- { title: "拟合优度(%)", code: "daynhyd" },
- { title: "可利用率(%)", code: "daysbklyl" },
- { title: "可用系数(%)", code: "daydxkyxs" },
- { title: "有效风时数(h)", code: "dayyxfss" },
- { title: "平均切入(m/s)", code: "dayxfqr" },
- { title: "静风频率(%)", code: "dayjfpl" },
- { title: "功率一致性(%)", code: "dayglyzxxs" },
- ],
- dialogVisible: false,
- dialogTitle: "",
- chooseList: [],
- contrastVisible: false,
- tabEvent: -1,
- tabOptions: [
- { id: -1, name: "风电" },
- { id: -2, name: "光伏" },
- ],
- };
- },
- created() {
- this.getCompanyData();
- },
- computed: {
- pageHeight() {
- return {
- height: document.documentElement.clientHeight - 130 + "px",
- };
- },
- },
- methods: {
- // 切换tab
- tabSelect(index) {
- this.tabIndex = index;
- this.seachData();
- },
- changeBtn() {
- this.$router.push({
- path: "/economicsOperation/performanceAnalyse/performanceAssess",
- });
- },
- // 获取公司列表
- async getCompanyData() {
- this.companyOptions = [];
- this.pickerTimer = this.getchangeTime(new Date());
- const datas = await GetOrganization({ type: this.tabEvent });
- this.companyOptions = datas.data;
- this.companyVal = datas.data[0]?.id;
- this.getStationData();
- },
- changeCompan(val) {
- this.companyVal = val;
- this.stationOptions = [];
- this.stationVal = "";
- this.getStationData();
- },
- // 获取场站列表
- async getStationData() {
- this.stationOptions = [];
- let params = {
- type: this.tabEvent,
- companyids: this.companyVal,
- };
- const datas = await GetStationByCompany(params);
- this.stationOptions = datas.data;
- this.stationVal = datas.data[0].id;
- this.getTableData();
- },
- changeStation(val) {
- this.stationVal = val;
- this.getTableData();
- },
- seachData() {
- this.getTableData();
- },
- async getTableData() {
- let params = {
- companyId: this.companyVal,
- date: this.pickerTimer,
- staType: -1,
- types: this.tabIndex * 1 + 1,
- wpId: this.stationVal,
- type: this.tabEvent,
- };
- const datas = await getApiequipmentinfoDayList(params);
- this.EvaluationData = datas.data;
- },
- handleCurrentChange(val) {
- if (val.length > 2) {
- let del_row = val.shift();
- this.$refs.Eval_table.toggleRowSelection(del_row, false);
- }
- let arr = [];
- val.forEach((item, index) => {
- if (index < 2) {
- arr.push(item);
- }
- });
- this.chooseList = arr;
- },
- //转换时间
- getchangeTime(date) {
- var y = date.getFullYear();
- var m = date.getMonth() + 1;
- m = m < 10 ? "0" + m : m;
- var d = date.getDate();
- d = d < 10 ? "0" + d : d;
- return y + "-" + m + "-" + d;
- },
- seachHistoryData(row) {
- this.dialogVisible = true;
- this.dialogTitle = "历史数据查询";
- this.$nextTick(() => {
- let startT =
- new Date(this.pickerTimer).getTime() - 10 * 24 * 60 * 60 * 1000;
- this.$refs.windhistoryDetail.pickerTimer = [
- this.getchangeTime(new Date(startT)),
- this.pickerTimer,
- ];
- this.$refs.windhistoryDetail.tabIndex = this.tabIndex * 1 + 1;
- this.$refs.windhistoryDetail.tabEvent = this.tabEvent;
- this.$refs.windhistoryDetail.init(row);
- });
- },
- contrastFn() {
- this.contrastVisible = true;
- this.$nextTick(() => {
- this.$refs.MessageContrast.tabIndex = this.tabIndex * 1 + 1;
- this.$refs.MessageContrast.init();
- });
- },
- },
- };
- </script>
- <style lang="less">
- .comprehensiveEvaluation {
- padding: 0 23px;
- .Evaluation_title {
- padding-left: 10px;
- .leftContent {
- width: 242px;
- height: 41px;
- line-height: 41px;
- background: url("../../../../../assets/imgs/title_left_bg.png");
- span {
- font-size: 16px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #ffffff;
- margin-left: 25px;
- }
- }
- .floatLeft {
- float: left;
- }
- .floatRight {
- float: right;
- }
- .rightContent {
- width: 212px;
- height: 28px;
- margin-top: 13px;
- background: url("../../../../../assets/imgs/title_right_bg.png");
- }
- }
- .clearfix::after {
- content: "";
- clear: both;
- height: 0;
- line-height: 0;
- visibility: hidden;
- display: block;
- }
- .clearfix {
- zoom: 1;
- }
- .Evaluation_topall {
- display: flex;
- justify-content: space-between;
- .selections {
- position: relative;
- right: 120px;
- display: flex;
- margin-top: 10px;
- .selections_btn {
- flex: 0 0 55px;
- text-align: center;
- height: 33px;
- line-height: 33px;
- margin-right: 8px;
- color: #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;
- }
- }
- }
- .Evaluation_top {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-top: 10px;
- margin-bottom: 10px;
- .el-select {
- width: 155px;
- margin-right: 15px;
- ::v-deep .el-input .el-input__inner {
- width: 150px;
- }
- }
- .station {
- display: flex;
- flex-direction: row;
- align-items: center;
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #b3b3b3;
- margin-right: 10px;
- margin-left: 10px;
- }
- .search-input {
- margin-left: 10px;
- .el-input__inner {
- width: 175px;
- }
- .el-input__suffix {
- right: -50px;
- }
- }
- .but {
- display: flex;
- flex-direction: row;
- align-content: center;
- margin-left: 20px;
- .buttons:nth-child(1) {
- background: rgba(0, 70, 199, 0.6);
- border: 1px solid #1f51ae;
- border-radius: 13px;
- color: #fff;
- &:hover {
- background: rgba(14, 90, 229, 0.9);
- border-radius: 13px;
- color: #fff;
- }
- }
- .buttons:nth-child(2) {
- background: rgba(67, 81, 107, 0.3);
- border: 1px solid #3b4c6c;
- border-radius: 13px;
- font-size: 14px;
- color: #b3b3b3;
- }
- }
- }
- }
- .Evaluation_Table {
- padding: 5px;
- padding-bottom: 10px;
- .el-table--mini {
- margin: 5px;
- .el-table__header-wrapper {
- tr {
- background: rgba(83, 89, 104, 0.3) !important;
- th {
- vertical-align: top !important;
- }
- .cell {
- color: #b3b3b3;
- font-family: MicrosoftYaHei;
- font-size: 14px;
- }
- }
- }
- .el-table__body-wrapper {
- tr {
- &:nth-child(2n) {
- background: rgba(83, 89, 104, 0.05) !important;
- }
- .cell {
- color: #d8d8d9;
- font-family: ArialMT;
- font-size: 13px;
- height: 25px !important;
- .el-checkbox {
- height: 25px;
- }
- }
- }
- }
- }
- .historyBtn {
- background: #43516b;
- border-radius: 15px;
- margin-top: 5px;
- border: 1px solid #43516b;
- span {
- color: #fff;
- }
- }
- }
- .el-overlay {
- .el-overlay-dialog {
- overflow-y: hidden !important;
- .EvaluationhistoryModel {
- margin-top: 0 !important;
- .el-dialog__body {
- padding-top: 10px;
- }
- }
- .contrastModal {
- .el-dialog__header {
- border: none;
- }
- .el-dialog__body {
- padding-top: 10px;
- }
- }
- }
- }
- .el-picker__popper .el-date-range-picker__header .el-picker-panel__icon-btn {
- color: #fff;
- }
- .el-picker__popper .el-date-table .in-range div {
- background: #43516b;
- }
- }
- </style>
|