|
@@ -67,56 +67,16 @@
|
|
|
<el-row :type="'flex'" class="content">
|
|
|
<el-col :span="12" class="pd-r-8">
|
|
|
<toolbar-panel title="风机绩效榜" :showLine="false">
|
|
|
- <bar-line-chart :height="'calc(100vh - 180px)'" :bardata="bardata" :lineData="lineData"
|
|
|
- :color="barColor" lineName="理论发电量" />
|
|
|
+ <bar-line-chart :height="'calc(100vh - 200px)'" :bardata="bardata" :lineData="lineData" :color="barColor" lineName="理论发电量"/>
|
|
|
</toolbar-panel>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="pd-l-8">
|
|
|
<panel :title="'项目列表'" :showLine="false">
|
|
|
- <div class="project-table">
|
|
|
+ <div class="project-table">
|
|
|
<!-- 分页Table -->
|
|
|
- <Table :data="tableData"
|
|
|
- :height="'calc(80vh - 50px)'">
|
|
|
- <template v-slot:tr v-if="tableData.data.length > 0">
|
|
|
- <tr>
|
|
|
- <td style="width: 50px;">
|
|
|
- {{tableDataEnd.index}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.name}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.llfdl}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.sjfdl}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.speed}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.fjhjx}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.jhjx}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.sl}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.xd}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.xn}}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- {{tableDataEnd.fnlly}}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
- </Table>
|
|
|
- <!-- <Table :data="tableData"></Table> -->
|
|
|
- </div>
|
|
|
+ <Table :data="tableData" :pageSize="20" @onPagging="onChangePage" :height="'calc(100vh - 32vh)'"></Table>
|
|
|
+ <!-- <Table :data="tableData"></Table> -->
|
|
|
+ </div>
|
|
|
</panel>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -128,7 +88,7 @@
|
|
|
import Panel from "../../components/coms/panel/panel.vue";
|
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
|
import ToolbarPanel from "../../components/coms/panel/toolbar-panel.vue";
|
|
|
- import Table from "./table.vue";
|
|
|
+ import Table from "../../components/coms/table/table.vue";
|
|
|
import partten from "@/helper/partten.js";
|
|
|
export default {
|
|
|
components: {
|
|
@@ -147,7 +107,7 @@
|
|
|
field: "index",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- width: "50px",
|
|
|
+ width: "50px",
|
|
|
},
|
|
|
{
|
|
|
name: "名称",
|
|
@@ -160,68 +120,67 @@
|
|
|
field: "llfdl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "SCADA发电量",
|
|
|
field: "sjfdl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "风速",
|
|
|
field: "speed",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "非计划检修",
|
|
|
field: "fjhjx",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "计划检修",
|
|
|
field: "jhjx",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "受累",
|
|
|
field: "sl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "限电",
|
|
|
field: "xd",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "性能",
|
|
|
field: "xn",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
},
|
|
|
{
|
|
|
name: "风能利用率%",
|
|
|
field: "fnlly",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true
|
|
|
+ sortable:true
|
|
|
}
|
|
|
],
|
|
|
data: [],
|
|
|
},
|
|
|
- tableDataEnd: [], //合计
|
|
|
ChangZhan: [], //场站
|
|
|
XiangMu: [], //项目
|
|
|
XianLu: [], //线路
|
|
@@ -230,7 +189,9 @@
|
|
|
value3: [],
|
|
|
value4: "",
|
|
|
value5: "",
|
|
|
- barColor:['#4b55ae','#e17e23','#ba3237','#c531c7','#ffffff','#05bb4c'],
|
|
|
+ barColor: [partten.getColor("purple"), partten.getColor("green"), partten.getColor("red"), partten
|
|
|
+ .getColor("pink"), partten.getColor("grayl"), partten.getColor("orange")
|
|
|
+ ],
|
|
|
TypeClass: 1, //风场,项目,集电线路 的按钮颜色,默认第一个
|
|
|
bardata: [],
|
|
|
lineData: [],
|
|
@@ -247,7 +208,7 @@
|
|
|
var that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
+ baseURL : "http://10.155.32.4:9001/",
|
|
|
subUrl: "benchmarking/wplist",
|
|
|
success(res) {
|
|
|
that.ChangZhan = res.data;
|
|
@@ -266,7 +227,7 @@
|
|
|
var that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
+ baseURL : "http://10.155.32.4:9001/",
|
|
|
subUrl: "benchmarking/projectList",
|
|
|
data: {
|
|
|
wpids: val
|
|
@@ -287,7 +248,7 @@
|
|
|
var that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
+ baseURL : "http://10.155.32.4:9001/",
|
|
|
subUrl: "benchmarking/lineList",
|
|
|
data: {
|
|
|
projects: val
|
|
@@ -340,7 +301,7 @@
|
|
|
var that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
+ baseURL : "http://10.155.32.4:9001/",
|
|
|
subUrl: "benchmarking/fjjxb",
|
|
|
data: {
|
|
|
wpids: that.value1,
|
|
@@ -399,8 +360,6 @@
|
|
|
};
|
|
|
|
|
|
}
|
|
|
- that.tableDataEnd = data2[data2.length - 1];
|
|
|
- data2.pop();
|
|
|
that.tableData.data = data2;
|
|
|
}
|
|
|
});
|
|
@@ -408,9 +367,9 @@
|
|
|
mxClick() {
|
|
|
this.$router.push("/decision/decision1Mx")
|
|
|
},
|
|
|
- onChangePage(params) {
|
|
|
- console.log(params);
|
|
|
- },
|
|
|
+ onChangePage(params) {
|
|
|
+ console.log(params);
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|