|
@@ -46,7 +46,7 @@
|
|
|
dialogData1: [],
|
|
|
dialogData2: [],
|
|
|
column: [],
|
|
|
- indicator: ["复位及时率(%)", "mttf", "缺陷下单及时率(%)", "缺陷验收及时率(%)", "设备利用小时", "限电损失率(%)","性能损失率(%)", "综合场用电量", "状态转换及时率(%)"],
|
|
|
+ indicator: ["风能利用率(%)","计划检修损失率(%)","非计划检修损失率(%)","缺陷下单及时率(%)","到达消缺地点及时率(%)","真实消缺及时率(%)","MTBF(小时)","MTTR(小时)"],
|
|
|
tableData: {
|
|
|
column: [{
|
|
|
name: "",
|
|
@@ -73,7 +73,7 @@
|
|
|
},
|
|
|
{
|
|
|
name: "场站",
|
|
|
- field: "wpid",
|
|
|
+ field: "wpid",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
},
|
|
@@ -93,96 +93,74 @@
|
|
|
width: '70px',
|
|
|
},
|
|
|
{
|
|
|
- name: "风能利用率(%)",
|
|
|
+ name: "风能利用率(%)",
|
|
|
field: "fnlyl",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- sortable: true,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "复位及时率(%)",
|
|
|
- field: "fwjsl",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- sortable: true,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "mttf",
|
|
|
- field: "mttf",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "平均小风切入风速",
|
|
|
- field: "pjxfqrfs",
|
|
|
+ name: "计划检修损失率(%)",
|
|
|
+ field: "jhjxssl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
- name: "缺陷下单及时率(%)",
|
|
|
- field: "qxxdjsl",
|
|
|
+ name: "非计划检修损失率(%)",
|
|
|
+ field: "fjhjxssl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "缺陷验收及时率(%)",
|
|
|
- field: "qxysjsl",
|
|
|
+ name: "缺陷单接单及时率(%)",
|
|
|
+ field: "qxdjdjsl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "设备利用小时",
|
|
|
- field: "sblyxs",
|
|
|
+ name: "到达消缺地点及时率(%)",
|
|
|
+ field: "ddxqddjsl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "限电损失率(%)",
|
|
|
- field: "xdssl",
|
|
|
+ name: "真实消缺及时率(%)",
|
|
|
+ field: "zsxqjsl",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "性能损失率(%)",
|
|
|
- field: "xnssl",
|
|
|
+ name: "MTBF(小时)",
|
|
|
+ field: "mtbf",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- sortable: true,
|
|
|
+ sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "综合场用电量",
|
|
|
- field: "zhcydl",
|
|
|
+ name: "MTTR(小时)",
|
|
|
+ field: "mttr",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: "状态转换及时率(%)",
|
|
|
- field: "ztzhjsl",
|
|
|
+ name: "操作",
|
|
|
+ field: "sjbz",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
sortable: true,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "操作",
|
|
|
- field: "sjbz",
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- sortable: true,
|
|
|
- id: "id",
|
|
|
- template: () => {
|
|
|
- return "<el-button type='text' style='cursor: pointer;'>详情</el-button>";
|
|
|
- },
|
|
|
- click: function (event, data) {
|
|
|
- that.contrast(that.dataIds.add(data.id))
|
|
|
- },
|
|
|
+ id: "id",
|
|
|
+ template: () => {
|
|
|
+ return "<el-button type='text' style='cursor: pointer;'>详情</el-button>";
|
|
|
+ },
|
|
|
+ click: function(event, data) {
|
|
|
+ that.contrast(that.dataIds.add(data.id))
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
data: [],
|
|
@@ -237,11 +215,11 @@
|
|
|
if (that.dataIds.size == 2 || one) {
|
|
|
that.dialogVisible = true;
|
|
|
const tmpArr = Array.from(that.dataIds);
|
|
|
- if(one){
|
|
|
+ if (one) {
|
|
|
const data = {
|
|
|
gaid1: tmpArr[0]
|
|
|
};
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
const data = {
|
|
|
gaid1: tmpArr[0],
|
|
|
gaid2: tmpArr[1],
|
|
@@ -272,7 +250,8 @@
|
|
|
rank: ele2.field + 'pm',
|
|
|
score: ele2.field + 'pf'
|
|
|
})
|
|
|
- let data1Name = '',data2Name = '';
|
|
|
+ let data1Name = '',
|
|
|
+ data2Name = '';
|
|
|
dialogData1.forEach((ele3, index3) => {
|
|
|
if (index3 == 0) {
|
|
|
data1.push({
|
|
@@ -281,8 +260,8 @@
|
|
|
})
|
|
|
data1Name = ele3.wpid
|
|
|
}
|
|
|
-
|
|
|
- if(that.dataIds.size == 2){
|
|
|
+
|
|
|
+ if (that.dataIds.size == 2) {
|
|
|
if (index3 == 1) {
|
|
|
data2.push({
|
|
|
name: ele,
|
|
@@ -292,27 +271,31 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- data1.push({name: data1Name});
|
|
|
- if(that.dataIds.size == 2){
|
|
|
- data2.push({name: data2Name});
|
|
|
+ data1.push({
|
|
|
+ name: data1Name
|
|
|
+ });
|
|
|
+ if (that.dataIds.size == 2) {
|
|
|
+ data2.push({
|
|
|
+ name: data2Name
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
that.column = column;
|
|
|
if (data1) {
|
|
|
- chartData[0].data.push(that.getChartData(data1,chartData[0].indicator));
|
|
|
+ chartData[0].data.push(that.getChartData(data1, chartData[0].indicator));
|
|
|
}
|
|
|
- if(that.dataIds.size == 2){
|
|
|
+ if (that.dataIds.size == 2) {
|
|
|
if (data2) {
|
|
|
- chartData[0].data.push(that.getChartData(data2,chartData[0].indicator));
|
|
|
+ chartData[0].data.push(that.getChartData(data2, chartData[0].indicator));
|
|
|
}
|
|
|
}
|
|
|
that.dialogData2 = chartData;
|
|
|
}
|
|
|
this.clearCheckBox();
|
|
|
},
|
|
|
- getChartData(resData,indicator) {
|
|
|
+ getChartData(resData, indicator) {
|
|
|
const chartData = {};
|
|
|
const rowMap = {};
|
|
|
resData.forEach(function(rowData, index) {
|
|
@@ -320,7 +303,7 @@
|
|
|
});
|
|
|
chartData["name"] = resData[resData.length - 1]["name"];
|
|
|
chartData["value"] = [];
|
|
|
- indicator.forEach(ele=>{
|
|
|
+ indicator.forEach(ele => {
|
|
|
chartData["value"].push(rowMap[ele]);
|
|
|
})
|
|
|
return chartData;
|