|
@@ -87,34 +87,34 @@
|
|
|
{{ tableDataEnd.index }}
|
|
|
</td>
|
|
|
<td style="width: 150px">
|
|
|
- {{ tableDataEnd.name }}
|
|
|
+ {{ tableDataEnd.uniformCode }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.llfdl }}
|
|
|
+ {{ tableDataEnd.theoryGeneration }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.sjfdl }}
|
|
|
+ {{ tableDataEnd.generatingCapacity }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.speed }}
|
|
|
+ {{ tableDataEnd.meanWindSpeed }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.fjhjx }}
|
|
|
+ {{ tableDataEnd.faultLossPower }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.jhjx }}
|
|
|
+ {{ tableDataEnd.maintainLossPower }}
|
|
|
</td>
|
|
|
<td style="width: 80px">
|
|
|
- {{ tableDataEnd.sl }}
|
|
|
+ {{ tableDataEnd.implicateLossPower }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.xd }}
|
|
|
+ {{ tableDataEnd.limitLossPower }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.xn }}
|
|
|
+ {{ tableDataEnd.performanceLossPower }}
|
|
|
</td>
|
|
|
<td>
|
|
|
- {{ tableDataEnd.fnlly }}
|
|
|
+ {{ tableDataEnd.category }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
</template>
|
|
@@ -134,7 +134,7 @@
|
|
|
import ToolbarPanel from "../../components/coms/panel/toolbar-panel.vue";
|
|
|
import Table from "./table.vue";
|
|
|
import partten from "@/helper/partten.js";
|
|
|
-import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
+ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
export default {
|
|
|
components: {
|
|
|
ToolbarPanel,
|
|
@@ -157,49 +157,49 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
},
|
|
|
{
|
|
|
name: "名称",
|
|
|
- field: "name",
|
|
|
+ field: "uniformCode",
|
|
|
width: "150px",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "理论发电量",
|
|
|
- field: "llfdl",
|
|
|
+ field: "theoryGeneration",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "SCADA发电量",
|
|
|
- field: "sjfdl",
|
|
|
+ field: "generatingCapacity",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "风速",
|
|
|
- field: "speed",
|
|
|
+ field: "meanWindSpeed",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "非计划检修",
|
|
|
- field: "fjhjx",
|
|
|
+ field: "faultLossPower",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "计划检修",
|
|
|
- field: "jhjx",
|
|
|
+ field: "maintainLossPower",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "受累",
|
|
|
- field: "sl",
|
|
|
+ field: "implicateLossPower",
|
|
|
width: "80px",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
@@ -207,21 +207,21 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
},
|
|
|
{
|
|
|
name: "限电",
|
|
|
- field: "xd",
|
|
|
+ field: "limitLossPower",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "性能",
|
|
|
- field: "xn",
|
|
|
+ field: "performanceLossPower",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
name: "风能利用率%",
|
|
|
- field: "fnlly",
|
|
|
+ field: "category",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
@@ -355,45 +355,9 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
|
|
|
AjaxCommon() {
|
|
|
var that = this;
|
|
|
- that.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://192.168.1.67:8133/",
|
|
|
- subUrl: "benchmarking/fjjxb",
|
|
|
- data: {
|
|
|
- wpids: that.value1,
|
|
|
- projectids: that.value2,
|
|
|
- lineids: that.value3,
|
|
|
- beginDate: that.value4,
|
|
|
- endDate: that.value5,
|
|
|
- type: that.TypeClass,
|
|
|
- target: "",
|
|
|
- sort: "",
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- console.log('661',res);
|
|
|
- res.data.forEach((ele)=>{
|
|
|
- that.nbdata.push({
|
|
|
- uniformCode: ele.uniformCode,
|
|
|
- theoryGeneration:ele.theoryGeneration,
|
|
|
- meanWindSpeed: ele.meanWindSpeed,
|
|
|
- generatingCapacity:ele.generatingCapacity,
|
|
|
- faultLossPower:ele.faultLossPower,
|
|
|
- maintainLossPower:ele.maintainLossPower,
|
|
|
- implicateLossPower:ele.implicateLossPower,
|
|
|
- limitLossPower:ele.limitLossPower,
|
|
|
- performanceLossPower:ele.performanceLossPower,
|
|
|
- category:ele.category
|
|
|
- });
|
|
|
- })
|
|
|
- },
|
|
|
- // fail(error){
|
|
|
- // console.log('01',error);
|
|
|
- // that.nbdata=null
|
|
|
- // }
|
|
|
- })
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
+ baseURL: "http://192.168.1.67:8133/",
|
|
|
subUrl: "benchmarking/fjjxb",
|
|
|
data: {
|
|
|
wpids: that.value1,
|
|
@@ -407,23 +371,6 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
},
|
|
|
success(res) {
|
|
|
console.log('666',res);
|
|
|
- // if(that.nbdata!=null){
|
|
|
- res.data.forEach((item1)=>{
|
|
|
- that.nbdata.forEach((item2)=>{
|
|
|
- if(item1.name === item2.uniformCode){
|
|
|
- item1.llfdl=item2.theoryGeneration,
|
|
|
- item1.sjfdl=item2.generatingCapacity,
|
|
|
- item1.speed = item2.meanWindSpeed,
|
|
|
- item1.fjhjx=item2.faultLossPower,
|
|
|
- item1.jhjx= item2.maintainLossPower,
|
|
|
- item1.sl=item2.implicateLossPower,
|
|
|
- item1.xd=item2.limitLossPower,
|
|
|
- item1.xn= item2.performanceLossPower,
|
|
|
- item1.fnlly= item2.category
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- // }
|
|
|
var name = [],
|
|
|
data = [],
|
|
|
llfdl = [],
|
|
@@ -436,38 +383,38 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
"性能损失",
|
|
|
],
|
|
|
data2 = []; //项目列表
|
|
|
- if (that.value1.length) {
|
|
|
- let arr = [];
|
|
|
- let hj = res.data.pop();
|
|
|
- res.data.forEach((ele, index) => {
|
|
|
- arr[ele.id.split('_')[1] - 1] = ele
|
|
|
- })
|
|
|
- arr.push(hj);
|
|
|
- res.data = arr;
|
|
|
- }
|
|
|
+ // if (that.value1.length) {
|
|
|
+ // let arr = [];
|
|
|
+ // let hj = res.data.pop();
|
|
|
+ // res.data.forEach((ele, index) => {
|
|
|
+ // arr[ele.id.split('_')[1] - 1] = ele
|
|
|
+ // })
|
|
|
+ // arr.push(hj);
|
|
|
+ // res.data = arr;
|
|
|
+ // }
|
|
|
res.data.forEach((item, index) => {
|
|
|
- name.push(item.name);
|
|
|
+ name.push(item.uniformCode);
|
|
|
data.push([
|
|
|
- item.sjfdl,
|
|
|
- item.jhjx,
|
|
|
- item.fjhjx,
|
|
|
- item.xd,
|
|
|
- item.sl,
|
|
|
- item.xn,
|
|
|
+ item.generatingCapacity,
|
|
|
+ item.maintainLossPower,
|
|
|
+ item.faultLossPower,
|
|
|
+ item.limitLossPower,
|
|
|
+ item.implicateLossPower,
|
|
|
+ item.performanceLossPower,
|
|
|
]);
|
|
|
- llfdl.push(item.llfdl);
|
|
|
+ llfdl.push(item.theoryGeneration);
|
|
|
data2.push({
|
|
|
index: index + 1,
|
|
|
- name: item.name,
|
|
|
- llfdl: item.llfdl,
|
|
|
- sjfdl: item.sjfdl,
|
|
|
- speed: item.speed,
|
|
|
- fjhjx: item.fjhjx,
|
|
|
- jhjx: item.jhjx,
|
|
|
- sl: item.sl,
|
|
|
- xd: item.xd,
|
|
|
- xn: item.xn,
|
|
|
- fnlly: item.fnlly,
|
|
|
+ uniformCode: item.uniformCode,
|
|
|
+ theoryGeneration: item.theoryGeneration,
|
|
|
+ generatingCapacity: item.generatingCapacity,
|
|
|
+ meanWindSpeed: item.meanWindSpeed,
|
|
|
+ faultLossPower: item.faultLossPower,
|
|
|
+ maintainLossPower: item.maintainLossPower,
|
|
|
+ implicateLossPower: item.implicateLossPower,
|
|
|
+ limitLossPower: item.limitLossPower,
|
|
|
+ performanceLossPower: item.performanceLossPower,
|
|
|
+ category: item.category,
|
|
|
is_light: false,
|
|
|
});
|
|
|
});
|
|
@@ -490,6 +437,7 @@ import { cacher } from '@antv/x6/lib/util/function/function';
|
|
|
legend: legend,
|
|
|
data: arr1,
|
|
|
};
|
|
|
+ console.log(that.lineData,that.bardata);
|
|
|
}
|
|
|
that.tableDataEnd = data2[data2.length - 1];
|
|
|
data2.pop();
|