|
|
@@ -1,359 +1,659 @@
|
|
|
<template>
|
|
|
- <div class="decision-page-2">
|
|
|
- <!-- 查询样式统一处理 样式在 assets/styles/form.less 文件中 -->
|
|
|
- <div class="query mg-b-8">
|
|
|
- <div class="query-items">
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">场站:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select v-model="value1" clearable placeholder="请选择" popper-class="select">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">项目:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select v-model="value2" multiple placeholder="请选择" popper-class="select">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">线路:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select v-model="value3" multiple placeholder="请选择" popper-class="select">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">开始日期:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-date-picker v-model="value4" type="date" placeholder="选择日期" popper-class="date-select"> </el-date-picker>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">结束日期:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-date-picker v-model="value5" type="date" placeholder="选择日期" popper-class="date-select"> </el-date-picker>
|
|
|
- <div class="unit svg-icon svg-icon-gray">
|
|
|
- <svg-icon :svgid="''" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-actions">
|
|
|
- <button class="btn green">搜索</button>
|
|
|
- <button class="btn">明细信息</button>
|
|
|
- <button class="btn">导出</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="actions mg-b-8">
|
|
|
- <button class="btn green">风场</button>
|
|
|
- <button class="btn">项目</button>
|
|
|
- <button class="btn">集电线路</button>
|
|
|
- </div>
|
|
|
- <div class="mg-b-16">
|
|
|
- <div class="project-table">
|
|
|
- <Table :data="tableData"></Table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <el-row class="mg-b-16">
|
|
|
- <el-col :span="8">
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <dual-pie-chart height="21.296vh" />
|
|
|
- </panel>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <dual-pie-chart height="21.296vh" />
|
|
|
- </panel>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <dual-pie-chart height="21.296vh" />
|
|
|
- </panel>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <div>
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <multiple-bar-chart :list="barchart" height="240px" :customerTooltip="true" @tooltip="tooltip" />
|
|
|
- </panel>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="decision-page-2">
|
|
|
+ <div class="query mg-b-8">
|
|
|
+ <div class="query-items">
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">场站:</div>
|
|
|
+ <div class="search-input">
|
|
|
+ <el-select v-model="value1" @change="ChangZhanChange(value1)" clearable placeholder="请选择"
|
|
|
+ popper-class="select">
|
|
|
+ <el-option v-for="item in ChangZhan" :key="item.id" :value="item.id" :label="item.name">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">项目:</div>
|
|
|
+ <div class="search-input">
|
|
|
+ <el-select v-model="value2" @change="XiangMuChange(value2)" multiple placeholder="请选择"
|
|
|
+ popper-class="select">
|
|
|
+ <el-option v-for="item in XiangMu" :key="item.id" :value="item.id" :label="item.name">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">线路:</div>
|
|
|
+ <div class="search-input">
|
|
|
+ <el-select v-model="value3" @change="XianLuChange(value3)" multiple placeholder="请选择"
|
|
|
+ popper-class="select">
|
|
|
+ <el-option v-for="item in XianLu" :key="item.id" :label="item.name" :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">开始日期:</div>
|
|
|
+ <div class="search-input">
|
|
|
+ <el-date-picker v-model="value4" @change="BeginChange(value4)" type="date"
|
|
|
+ value-format="YYYY-MM-DD" placeholder="选择日期" popper-class="date-select">
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">结束日期:</div>
|
|
|
+ <div class="search-input">
|
|
|
+ <el-date-picker v-model="value5" @change="EndChange(value5)" type="date"
|
|
|
+ value-format="YYYY-MM-DD" placeholder="选择日期" popper-class="date-select">
|
|
|
+ </el-date-picker>
|
|
|
+ <div class="unit svg-icon svg-icon-gray">
|
|
|
+ <svg-icon :svgid="''" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="query-actions">
|
|
|
+ <button class="btn green">搜索</button>
|
|
|
+ <button class="btn" @click="dialogVisible = true">对标分析</button>
|
|
|
+ <button class="btn">导出</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mg-b-16">
|
|
|
+ <div class="project-table">
|
|
|
+ <Table :data="tableData" :canScroll="false"></Table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-row class="mg-b-16">
|
|
|
+ <el-col :span="8">
|
|
|
+ <panel title="发电量占比">
|
|
|
+ <dual-pie-chart height="21.296vh" :innerData="innerFdl" :outerData="outerFdl" />
|
|
|
+ </panel>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <panel title="各场站损失电量占比">
|
|
|
+ <dual-pie-chart height="21.296vh" :innerData="innerCz" :outerData="outerCz" />
|
|
|
+ </panel>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <panel title="理论发电量占比">
|
|
|
+ <dual-pie-chart height="21.296vh" :innerData="innerLl" :outerData="outerLl" />
|
|
|
+ </panel>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <div>
|
|
|
+ <panel title="损失电量分析">
|
|
|
+ <multiple-bar-chart height="240px" :list="analyis" :customerTooltip="true" @tooltip="tooltip"
|
|
|
+ :units='["(万KWh)"]' />
|
|
|
+ </panel>
|
|
|
+ </div>
|
|
|
+ <el-dialog title="对标排名分析" v-model="dialogVisible" width="70%" top="10vh" custom-class="modal"
|
|
|
+ :close-on-click-modal="false">
|
|
|
+ <dayinfo :radarValue="radarValue" :windNum="windNum" :windNum2="windNum2" :tabs="tabs" />
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import MultipleBarChart from "../../components/chart/bar/multiple-bar-chart.vue";
|
|
|
-import DualPieChart from "../../components/chart/pie/dual-pie-chart.vue";
|
|
|
-import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
|
-import Panel from "../../components/coms/panel/panel.vue";
|
|
|
-import Table from "../../components/coms/table/table.vue";
|
|
|
-export default {
|
|
|
- components: { Panel, Table, SvgIcon, DualPieChart, MultipleBarChart },
|
|
|
- data() {
|
|
|
- let that = this;
|
|
|
- return {
|
|
|
- tableData: {
|
|
|
- column: [
|
|
|
- {
|
|
|
- name: "",
|
|
|
- field: "index",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "",
|
|
|
- field: "check",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- template: function() {
|
|
|
- return "<input class='check' type='CheckBox' >";
|
|
|
- },
|
|
|
- click: function(event, data) {
|
|
|
- // checkbox 事件
|
|
|
- // event.target checkbox or td 需进行判断
|
|
|
- // event.target.checked 判断 checkbox 是否选中
|
|
|
- // data 当前数据
|
|
|
- // console.log(that);
|
|
|
- // console.log(event.target);
|
|
|
- // console.log(event.target.checked);
|
|
|
- // console.log(data);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- name: "名称",
|
|
|
- field: "name",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- sortable: true,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "理论发电量",
|
|
|
- field: "lqf",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "SCADA发电量",
|
|
|
- field: "yggl",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "风速",
|
|
|
- field: "yyy",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "非计划检修",
|
|
|
- field: "pcspp",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "计划检修",
|
|
|
- field: "u1",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "受累",
|
|
|
- field: "u2",
|
|
|
- is_num: false,
|
|
|
- is_light: true,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "限电",
|
|
|
- field: "v1",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "性能",
|
|
|
- field: "v2",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "操作",
|
|
|
- field: "w1",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- template: function() {
|
|
|
- return "<a class='action'>详情</a>";
|
|
|
- },
|
|
|
- click: function(event, data) {
|
|
|
- // checkbox 事件
|
|
|
- // data 判断 当前数据
|
|
|
- // console.log(that);
|
|
|
- // console.log(event.target);
|
|
|
- // console.log(data);
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- data: [
|
|
|
- {
|
|
|
- index: 1,
|
|
|
- name: "MG01-01",
|
|
|
- lqf: "0.1000",
|
|
|
- yggl: "0.1000",
|
|
|
- yyy: "0.10",
|
|
|
- pcspp: "0.1000",
|
|
|
- u1: "0.1000",
|
|
|
- u2: "0.1000",
|
|
|
- v1: "0.1000",
|
|
|
- v2: "0.1000",
|
|
|
- w1: "0.1000",
|
|
|
- w2: "0.1000",
|
|
|
- zca: "0.1000",
|
|
|
- zcb: "0.1000",
|
|
|
- clx: "0.1000",
|
|
|
- clx1: "0.1000",
|
|
|
- clx2: "0.1000",
|
|
|
- jc: "0.1000",
|
|
|
- hh: "0.1000",
|
|
|
- hj: "0.1000",
|
|
|
- is_light: false,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- options: [
|
|
|
- {
|
|
|
- value: "选项1",
|
|
|
- label: "黄金糕",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项2",
|
|
|
- label: "双皮奶",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项3",
|
|
|
- label: "蚵仔煎",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项4",
|
|
|
- label: "龙须面",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "选项5",
|
|
|
- label: "北京烤鸭",
|
|
|
- },
|
|
|
- ],
|
|
|
- value1: [],
|
|
|
- value2: [],
|
|
|
- value3: [],
|
|
|
- value4: "",
|
|
|
- value5: "",
|
|
|
- barchart: [
|
|
|
- {
|
|
|
- title: "故障损失电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [
|
|
|
- { text: "麻黄山风电场", value: 0.66 },
|
|
|
- { text: "牛首山风电场", value: 0.71 },
|
|
|
- { text: "石板泉风电场", value: 0.52 },
|
|
|
- { text: "青山风电场", value: 16.35 },
|
|
|
- { text: "香山风电场", value: 0.74 },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "检修损失电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [
|
|
|
- { text: "麻黄山风电场", value: 0.71 },
|
|
|
- { text: "牛首山风电场", value: 3.09 },
|
|
|
- { text: "石板泉风电场", value: 5.64 },
|
|
|
- { text: "青山风电场", value: 0.03 },
|
|
|
- { text: "香山风电场", value: 2.07 },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "性能损失电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [
|
|
|
- { text: "麻黄山风电场", value: 24.31 },
|
|
|
- { text: "牛首山风电场", value: 30.71 },
|
|
|
- { text: "石板泉风电场", value: 53.53 },
|
|
|
- { text: "青山风电场", value: 62.69 },
|
|
|
- { text: "香山风电场", value: 61.31 },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "限电损失电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [
|
|
|
- { text: "麻黄山风电场", value: 1.95 },
|
|
|
- { text: "牛首山风电场", value: 2.45 },
|
|
|
- { text: "石板泉风电场", value: 4.53 },
|
|
|
- { text: "青山风电场", value: 30.48 },
|
|
|
- { text: "香山风电场", value: 8.28 },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "受累损失电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [
|
|
|
- { text: "麻黄山风电场", value: 0 },
|
|
|
- { text: "牛首山风电场", value: 0 },
|
|
|
- { text: "石板泉风电场", value: 0 },
|
|
|
- { text: "青山风电场", value: 0 },
|
|
|
- { text: "香山风电场", value: 0 },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
- },
|
|
|
- methods: {
|
|
|
- // 自定义tooltip 显示内容
|
|
|
- tooltip(param, callback) {
|
|
|
- var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
|
|
|
+ import MultipleBarChart from "../../components/chart/bar/multiple-bar-chart.vue";
|
|
|
+ import DualPieChart from "../../components/chart/pie/dual-pie-chart.vue";
|
|
|
+ import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
|
+ import Panel from "../../components/coms/panel/panel.vue";
|
|
|
+ import Table from "../../components/coms/table/table.vue";
|
|
|
+ import Dayinfo from "./dayinfo.vue";
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ Panel,
|
|
|
+ Table,
|
|
|
+ SvgIcon,
|
|
|
+ DualPieChart,
|
|
|
+ MultipleBarChart,
|
|
|
+ Dayinfo
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ let that = this;
|
|
|
+ return {
|
|
|
+ tableId:[],
|
|
|
+ tableData: {
|
|
|
+ column: [{
|
|
|
+ name: "",
|
|
|
+ field: "index",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "",
|
|
|
+ field: "check",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ template: function() {
|
|
|
+ return "<input class='check' type='CheckBox'/>";
|
|
|
+ },
|
|
|
+ click: function(event, data) {
|
|
|
+ // checkbox 事件
|
|
|
+ // event.target checkbox or td 需进行判断
|
|
|
+ // event.target.checked 判断 checkbox 是否选中
|
|
|
+ // data 当前数据
|
|
|
+ // console.log(that);
|
|
|
+ // console.log(event.target);
|
|
|
+ // console.log(event.target.checked);
|
|
|
+ if(event.target.checked){
|
|
|
+ console.log(JSON.stringify(data));
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "名称",
|
|
|
+ field: "name",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "综合排名",
|
|
|
+ field: "zhpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "故障损失电量排名",
|
|
|
+ field: "gzssdlpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "故障损失电量",
|
|
|
+ field: "gzssdl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "检修损失电量排名",
|
|
|
+ field: "jxssdlpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "检修损失电量",
|
|
|
+ field: "jxssdl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "性能损失电量排名",
|
|
|
+ field: "xnssdlpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: true,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "性能损失电量",
|
|
|
+ field: "xnssdl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "限电损失电量排名",
|
|
|
+ field: "xdssdlpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "限电损失电量",
|
|
|
+ field: "xdssdl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "受累损失电量排名",
|
|
|
+ field: "slssdlpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "受累损失电量",
|
|
|
+ field: "slssdl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "故障损失率排名",
|
|
|
+ field: "gzsslpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "故障损失率(%)",
|
|
|
+ field: "gzssl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "检修损失率排名",
|
|
|
+ field: "jxsslpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "检修损失率(%)",
|
|
|
+ field: "jxssl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "弃风率排名",
|
|
|
+ field: "qflpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "弃风率(%)",
|
|
|
+ field: "qfl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "性能损失率排名",
|
|
|
+ field: "xnsslpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "性能损失率(%)",
|
|
|
+ field: "xnssl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "受累损失率排名",
|
|
|
+ field: "slsslpm",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "受累损失率(%)",
|
|
|
+ field: "slssl",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ sortable: true,
|
|
|
+ }, {
|
|
|
+ name: "操作",
|
|
|
+ field: "cz",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ template: function() {
|
|
|
+ return "<a class='action'>详情</a>";
|
|
|
+ },
|
|
|
+ click: function(event, data) {
|
|
|
+ // checkbox 事件
|
|
|
+ // data 判断 当前数据
|
|
|
+ // console.log(that);
|
|
|
+ // console.log(event.target);
|
|
|
+ // console.log(data);
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
+ checkLength:0,
|
|
|
+ options: [],
|
|
|
+ ChangZhan: [], //场站
|
|
|
+ XiangMu: [], //项目
|
|
|
+ XianLu: [], //线路
|
|
|
+ value1: [],
|
|
|
+ value2: [],
|
|
|
+ value3: [],
|
|
|
+ value4: "",
|
|
|
+ value5: "",
|
|
|
+ innerFdl: [], //发电量占比
|
|
|
+ outerFdl: [],
|
|
|
+ innerCz: [], //各场站损失电量占比
|
|
|
+ outerCz: [],
|
|
|
+ innerLl: [], //理论发电量占比
|
|
|
+ outerLl: [],
|
|
|
+ analyis: [], //损失电量分析
|
|
|
+ dialogVisible: false,
|
|
|
+ radarValue: [{
|
|
|
+ indicator: ["风能利用率", "故障损失率", "检修损失率", "弃风率", "性能损失率", "受累损失率", "复位及时率", "消缺及时率", "状态转换率"],
|
|
|
+ data: [{
|
|
|
+ value: [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
|
+ }, {
|
|
|
+ value: [9, 8, 5, 4, 5, 4, 7, 8, 9]
|
|
|
+ }]
|
|
|
+ }],
|
|
|
+ windNum: 'dd',
|
|
|
+ windNum2: 'dd',
|
|
|
+ tabs: []
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.ChangZhanVal();
|
|
|
+ this.value4 = this.getTime(1);
|
|
|
+ this.value5 = this.getTime(2);
|
|
|
+ this.AjaxCommon();
|
|
|
+ this.AjaxDbfx();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ChangZhanVal() {
|
|
|
+ var that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/wplist",
|
|
|
+ success(res) {
|
|
|
+ that.ChangZhan = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ ChangZhanChange(val) {
|
|
|
+ this.value1 = val;
|
|
|
+ this.value2 = [];
|
|
|
+ this.value3 = [];
|
|
|
+ this.AjaxCommon();
|
|
|
+ this.XiangMuVal(val);
|
|
|
+ },
|
|
|
+ XiangMuVal(val) {
|
|
|
+ var that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/projectList",
|
|
|
+ data: {
|
|
|
+ wpids: val
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ that.XiangMu = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ XiangMuChange(val) {
|
|
|
+ this.value2 = val;
|
|
|
+ this.value3 = [];
|
|
|
+ this.AjaxCommon();
|
|
|
+ this.XianLuVal(val);
|
|
|
+ },
|
|
|
+ XianLuVal(val) {
|
|
|
+ var that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/lineList",
|
|
|
+ data: {
|
|
|
+ projects: val
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ that.XianLu = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ XianLuChange(val) {
|
|
|
+ this.value3 = val;
|
|
|
+ this.AjaxCommon();
|
|
|
+ },
|
|
|
+ BeginChange(val) {
|
|
|
+ this.value4 = val;
|
|
|
+ this.AjaxCommon();
|
|
|
+ },
|
|
|
+ EndChange(val) {
|
|
|
+ this.value5 = val;
|
|
|
+ this.AjaxCommon();
|
|
|
+ },
|
|
|
+ getTime(val) { //时间戳处理,val=1是默认开始时间(当前月第一天),val=2是默认结束时间(今天)
|
|
|
+ var date = new Date();
|
|
|
+ var year = date.getFullYear(),
|
|
|
+ month = date.getMonth() + 1,
|
|
|
+ day = date.getDate();
|
|
|
+ month >= 1 && month <= 9 ? (month = '0' + month) : '';
|
|
|
+ day >= 0 && day <= 9 ? (day = '0' + day) : '';
|
|
|
+ var begin = year + '-' + month + '-01';
|
|
|
+ var end = year + '-' + month + '-' + day;
|
|
|
+ if (val == 1) {
|
|
|
+ return begin;
|
|
|
+ } else if (val == 2) {
|
|
|
+ return end;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ AjaxCommon() {
|
|
|
+ var that = this;
|
|
|
+ that.API.requestData({ //五项损失率
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/wxssl",
|
|
|
+ data: {
|
|
|
+ wpids: that.value1,
|
|
|
+ projectids: that.value2,
|
|
|
+ lineids: that.value3,
|
|
|
+ beginDate: that.value4,
|
|
|
+ endDate: that.value5,
|
|
|
+ target: '',
|
|
|
+ sort: ''
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ var dataTab = [], //表格
|
|
|
+ fdl = [],
|
|
|
+ cz = [],
|
|
|
+ ll = [],
|
|
|
+ analyis = [],
|
|
|
+ gzssdl = [],
|
|
|
+ jxssdl = [],
|
|
|
+ xnssdl = [],
|
|
|
+ xdssdl = [],
|
|
|
+ slssdl = [];
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
|
|
|
- var result = param[0].axisValue;
|
|
|
- param.forEach((value, index) => {
|
|
|
- result += "<br />" + `<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${color[index]};"></span>` + value.seriesName + ":" + value.value;
|
|
|
- });
|
|
|
- callback(result);
|
|
|
- return true;
|
|
|
- },
|
|
|
- },
|
|
|
- created() {
|
|
|
- for (let i = 1; i < 50; i++) {
|
|
|
- this.tableData.data.push(JSON.parse(JSON.stringify(this.tableData.data[0])));
|
|
|
- this.tableData.data[i].index = i + 1;
|
|
|
- this.tableData.data[i].name = this.tableData.data[i].name + i;
|
|
|
- }
|
|
|
- },
|
|
|
-};
|
|
|
+ dataTab.push({ //表格
|
|
|
+ index: index + 1,
|
|
|
+ name: item.name,
|
|
|
+ zhpm: item.zhpm,
|
|
|
+ gzssdlpm: item.gzssdlpm,
|
|
|
+ gzssdl: item.gzssdl,
|
|
|
+ jxssdlpm: item.jxssdlpm,
|
|
|
+ jxssdl: item.jxssdl,
|
|
|
+ xnssdlpm: item.xnssdlpm,
|
|
|
+ xnssdl: item.xnssdl,
|
|
|
+ xdssdlpm: item.xdssdlpm,
|
|
|
+ xdssdl: item.xdssdl,
|
|
|
+ slssdlpm: item.slssdlpm,
|
|
|
+ slssdl: item.slssdl,
|
|
|
+ gzsslpm: item.gzsslpm,
|
|
|
+ gzssl: item.gzssl,
|
|
|
+ jxsslpm: item.jxsslpm,
|
|
|
+ jxssl: item.jxssl,
|
|
|
+ qflpm: item.qflpm,
|
|
|
+ qfl: item.qfl,
|
|
|
+ xnsslpm: item.xnsslpm,
|
|
|
+ xnssl: item.xnssl,
|
|
|
+ slsslpm: item.slsslpm,
|
|
|
+ slssl: item.slssl,
|
|
|
+ // cz: '暂无按钮',
|
|
|
+ is_light: false
|
|
|
+ })
|
|
|
+
|
|
|
+ fdl.push({
|
|
|
+ value: item.fdl,
|
|
|
+ name: item.name
|
|
|
+ })
|
|
|
+
|
|
|
+ cz.push({
|
|
|
+ value: (item.gzssdl + item.jxssdl + item.xnssdl + item.xdssdl +
|
|
|
+ item.slssdl).toFixed(2),
|
|
|
+ name: item.name
|
|
|
+ })
|
|
|
+
|
|
|
+ ll.push({
|
|
|
+ value: item.llfdl,
|
|
|
+ name: item.name
|
|
|
+ })
|
|
|
+
|
|
|
+ gzssdl.push({
|
|
|
+ text: item.name,
|
|
|
+ value: item.gzssdl
|
|
|
+ });
|
|
|
+ jxssdl.push({
|
|
|
+ text: item.name,
|
|
|
+ value: item.jxssdl
|
|
|
+ });
|
|
|
+ xnssdl.push({
|
|
|
+ text: item.name,
|
|
|
+ value: item.xnssdl
|
|
|
+ });
|
|
|
+ xdssdl.push({
|
|
|
+ text: item.name,
|
|
|
+ value: item.xdssdl
|
|
|
+ });
|
|
|
+ slssdl.push({
|
|
|
+ text: 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
|
|
|
+ })
|
|
|
+ that.tableData.data = dataTab;
|
|
|
+
|
|
|
+ that.innerFdl = fdl;
|
|
|
+ that.outerFdl = fdl;
|
|
|
+
|
|
|
+ that.innerCz = cz;
|
|
|
+ that.outerCz = cz;
|
|
|
+
|
|
|
+ that.innerLl = ll;
|
|
|
+ that.outerLl = ll;
|
|
|
+
|
|
|
+ that.analyis = analyis;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ AjaxDbfx() {
|
|
|
+ var that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/wxssl",
|
|
|
+ data: {
|
|
|
+ // wpids: that.value1,
|
|
|
+ wpids: ['XS_FDC', 'MHS_FDC'],
|
|
|
+ projectids: '',
|
|
|
+ lineids: '',
|
|
|
+ beginDate: that.value4,
|
|
|
+ endDate: that.value5,
|
|
|
+ target: '',
|
|
|
+ sort: ''
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ var data = res.data;
|
|
|
+ that.windNum = data[0].name;
|
|
|
+ that.windNum2 = data[1].name;
|
|
|
+ that.tabs = [{
|
|
|
+ name: "发电量",
|
|
|
+ windData1: data[0].fdl,
|
|
|
+ windData2: data[1].fdl
|
|
|
+ }, {
|
|
|
+ name: "故障损失电量",
|
|
|
+ windData1: data[0].gzssdl,
|
|
|
+ windData2: data[1].gzssdl
|
|
|
+ }, {
|
|
|
+ name: "检修损失电量",
|
|
|
+ windData1: data[0].jxssdl,
|
|
|
+ windData2: data[1].jxssdl
|
|
|
+ }, {
|
|
|
+ name: "性能未达标损失电量",
|
|
|
+ windData1: data[0].xnssdl,
|
|
|
+ windData2: data[1].xnssdl
|
|
|
+ }, {
|
|
|
+ name: "受累损失电量",
|
|
|
+ windData1: data[0].slssdl,
|
|
|
+ windData2: data[1].slssdl
|
|
|
+ }, {
|
|
|
+ name: "风能利用率",
|
|
|
+ windData1: data[0].fnlyl,
|
|
|
+ windData2: data[1].fnlyl
|
|
|
+ }, {
|
|
|
+ name: "故障损失率",
|
|
|
+ windData1: data[0].gzssl,
|
|
|
+ windData2: data[1].gzssl
|
|
|
+ }, {
|
|
|
+ name: "检修损失率",
|
|
|
+ windData1: data[0].jxssl,
|
|
|
+ windData2: data[1].jxssl
|
|
|
+ }, {
|
|
|
+ name: "弃风率",
|
|
|
+ windData1: data[0].qfl,
|
|
|
+ windData2: data[1].qfl
|
|
|
+ }, {
|
|
|
+ name: "性能损失率",
|
|
|
+ windData1: data[0].xnssl,
|
|
|
+ windData2: data[1].xnssl
|
|
|
+ }, {
|
|
|
+ name: "受累损失率",
|
|
|
+ windData1: data[0].slssl,
|
|
|
+ windData2: data[1].slssl
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ tooltip(param, callback) {
|
|
|
+ var color = ["#05bb4c", "#4b55ae", "#fa8c16", "#f8de5b"];
|
|
|
+
|
|
|
+ var result = param[0].axisValue;
|
|
|
+ param.forEach((value, index) => {
|
|
|
+ result += "<br />" +
|
|
|
+ `<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${color[index]};"></span>` +
|
|
|
+ value.seriesName + ":" + value.value;
|
|
|
+ });
|
|
|
+ callback(result);
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ }
|
|
|
+ };
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
-.decision-page-2 {
|
|
|
- .project-table {
|
|
|
- overflow: auto;
|
|
|
+ .decision-page-2 {
|
|
|
+ .project-table {
|
|
|
+ overflow: auto;
|
|
|
+
|
|
|
+ tbody {
|
|
|
+ height: 189px;
|
|
|
+ }
|
|
|
+
|
|
|
+ th,
|
|
|
+ td {
|
|
|
+ color: #b2bdc0;
|
|
|
|
|
|
- tbody {
|
|
|
- height: 189px;
|
|
|
- }
|
|
|
+ &:nth-child(1) {
|
|
|
+ width: 50px;
|
|
|
+ }
|
|
|
|
|
|
- th,
|
|
|
- td {
|
|
|
- color: #b2bdc0;
|
|
|
- &:nth-child(1) {
|
|
|
- width: 50px;
|
|
|
- }
|
|
|
- &:nth-child(2) {
|
|
|
- width: 50px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ &:nth-child(2) {
|
|
|
+ width: 50px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- .action {
|
|
|
- text-decoration: underline;
|
|
|
- color: @green;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
-}
|
|
|
+ .action {
|
|
|
+ text-decoration: underline;
|
|
|
+ color: @green;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|