|
@@ -930,7 +930,7 @@ export default {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var v = data[i]['alarm'];
|
|
|
var tv = data[i]['time'].split("-")
|
|
|
- times.push(tv[1] + "-" + tv[2])
|
|
|
+ times.push([tv[2],data[i]['time']]);
|
|
|
if (v != null) tmpWeek.push(v);
|
|
|
}
|
|
|
alarmWeek.value = tmpWeek;
|
|
@@ -967,7 +967,8 @@ export default {
|
|
|
let xv='';
|
|
|
let result = '';
|
|
|
params.forEach(function (item) {
|
|
|
- xv=`${item.name}<br/>`;
|
|
|
+ xv=`${item.name}`;
|
|
|
+ xv = xv.split(',')[1]+'<br/>';
|
|
|
result += ` ${item.marker} ${item.value}(次)<br/>`;
|
|
|
});
|
|
|
return xv+result;
|
|
@@ -991,8 +992,11 @@ export default {
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
axisLabel: {
|
|
|
- rotate: 45,
|
|
|
- color: "#fff"
|
|
|
+ rotate: 0,
|
|
|
+ color: "#26e2fb",
|
|
|
+ formatter:function(v){
|
|
|
+ return v.split(',')[0];
|
|
|
+ }
|
|
|
},
|
|
|
data: times
|
|
|
},
|
|
@@ -1002,7 +1006,7 @@ export default {
|
|
|
color: "#fff"
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- color: "rgb(203,215,235)"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -1025,7 +1029,7 @@ export default {
|
|
|
var v_series = [];
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var tv = data[i]['time'].split("-")
|
|
|
- times.push(tv[1] + "-" + tv[2])
|
|
|
+ times.push([tv[2],data[i]['time']]);
|
|
|
for (var k1 in week) {
|
|
|
week[k1].push(data[i][k1])
|
|
|
}
|
|
@@ -1051,7 +1055,8 @@ export default {
|
|
|
let xv='';
|
|
|
let result = '';
|
|
|
params.forEach(function (item) {
|
|
|
- xv=`${item.name}<br/>`;
|
|
|
+ xv=`${item.name}`;
|
|
|
+ xv = xv.split(',')[1]+'<br>';
|
|
|
result += ` ${item.marker} ${item.seriesName}: ${item.value}(次)<br/>`;
|
|
|
});
|
|
|
return xv+result;
|
|
@@ -1077,8 +1082,11 @@ export default {
|
|
|
boundaryGap: true,
|
|
|
data: times,
|
|
|
axisLabel: {
|
|
|
- rotate: 45,
|
|
|
- color: "#fff"
|
|
|
+ rotate: 0,
|
|
|
+ color: "#26e2fb",
|
|
|
+ formatter:function(v){
|
|
|
+ return v.split(',')[0];
|
|
|
+ }
|
|
|
},
|
|
|
axisPointer: {snap: false}
|
|
|
}],
|
|
@@ -1086,7 +1094,7 @@ export default {
|
|
|
type: 'value',
|
|
|
axisPointer: {snap: false},
|
|
|
axisLabel: {
|
|
|
- color: "rgb(203,215,235)"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -1143,14 +1151,18 @@ export default {
|
|
|
var week_befficiency = [];
|
|
|
var times = [];
|
|
|
var v_series = [];
|
|
|
+ var minValue = 100;
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var v = data[i]['efficiency'];
|
|
|
var tv = data[i]['time'].split("-")
|
|
|
- times.push(tv[1] + "-" + tv[2])
|
|
|
+ times.push([tv[2],data[i]['time']]);
|
|
|
if (v != null) week_efficiency.push(v);
|
|
|
- week_aefficiency.push(data[i]['aefficiency'])
|
|
|
- week_befficiency.push(data[i]['befficiency'])
|
|
|
+ week_aefficiency.push(data[i]['aefficiency']);
|
|
|
+ week_befficiency.push(data[i]['befficiency']);
|
|
|
+ if(data[i]['aefficiency']<minValue) minValue = data[i]['aefficiency'];
|
|
|
+ if(data[i]['befficiency']<minValue) minValue = data[i]['befficiency'];
|
|
|
}
|
|
|
+ minValue = minValue-10;
|
|
|
if (week_efficiency.length == 0) {
|
|
|
return
|
|
|
}
|
|
@@ -1204,7 +1216,8 @@ export default {
|
|
|
let xv='';
|
|
|
let result = '';
|
|
|
params.forEach(function (item) {
|
|
|
- xv=`${item.name}<br/>`;
|
|
|
+ xv=`${item.name}`;
|
|
|
+ xv = xv.split(',')[1]+'<br>';
|
|
|
result += ` ${item.marker} ${item.seriesName}: ${item.value} %<br/>`;
|
|
|
});
|
|
|
return xv+result;
|
|
@@ -1229,18 +1242,22 @@ export default {
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
axisLabel: {
|
|
|
- rotate: 45,
|
|
|
- color: "#fff"
|
|
|
+ rotate: 0,
|
|
|
+ color: "#26e2fb",
|
|
|
+ formatter:function(v){
|
|
|
+ return v.split(',')[0];
|
|
|
+ }
|
|
|
},
|
|
|
data: times
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: 'value',
|
|
|
+ min:minValue,
|
|
|
nameTextStyle: {
|
|
|
- color: "#fff"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- color: "rgb(203,215,235)"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -1266,7 +1283,7 @@ export default {
|
|
|
var v_series = [];
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var tv = data[i]['time'].split("-")
|
|
|
- times.push(tv[1] + "-" + tv[2])
|
|
|
+ times.push([tv[2],data[i]['time']]);
|
|
|
week_efficiency.push(data[i]['length'])
|
|
|
week_aefficiency.push(data[i]['lengthA'])
|
|
|
week_befficiency.push(data[i]['lengthB'])
|
|
@@ -1338,7 +1355,8 @@ export default {
|
|
|
let xv='';
|
|
|
let result = '';
|
|
|
params.forEach(function (item) {
|
|
|
- xv=`${item.name}<br/>`;
|
|
|
+ xv=`${item.name}`;
|
|
|
+ xv = xv.split(',')[1]+'<br>';
|
|
|
result += ` ${item.marker} ${item.seriesName}: ${item.value}(米/日)<br/>`;
|
|
|
});
|
|
|
return xv+result;
|
|
@@ -1355,18 +1373,21 @@ export default {
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
axisLabel: {
|
|
|
- rotate: 45,
|
|
|
- color: "#fff"
|
|
|
+ rotate: 0,
|
|
|
+ color: "#26e2fb",
|
|
|
+ formatter:function(v){
|
|
|
+ return v.split(',')[0]
|
|
|
+ }
|
|
|
},
|
|
|
data: times
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: 'value',
|
|
|
nameTextStyle: {
|
|
|
- color: "#fff"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- color: "rgb(203,215,235)"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -1393,7 +1414,7 @@ export default {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
var v = data[i]['kwh'];
|
|
|
var tv = data[i]['time'].split("-")
|
|
|
- times.push(tv[1] + "-" + tv[2])
|
|
|
+ times.push([tv[2],data[i]['time']]);
|
|
|
if (v != null) week_efficiency.push(v);
|
|
|
week_aefficiency.push(data[i]['akwh'])
|
|
|
week_befficiency.push(data[i]['bkwh'])
|
|
@@ -1451,7 +1472,8 @@ export default {
|
|
|
let xv='';
|
|
|
let result = '';
|
|
|
params.forEach(function (item) {
|
|
|
- xv=`${item.name}<br/>`;
|
|
|
+ xv=`${item.name}`;
|
|
|
+ xv = xv.split(',')[1]+'<br>';
|
|
|
result += ` ${item.marker} ${item.seriesName}: ${item.value}(kWh)<br/>`;
|
|
|
});
|
|
|
return xv+result;
|
|
@@ -1476,18 +1498,21 @@ export default {
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
axisLabel: {
|
|
|
- rotate: 45,
|
|
|
- color: "#fff"
|
|
|
+ rotate: 0,
|
|
|
+ color: "#26e2fb",
|
|
|
+ formatter:function(v){
|
|
|
+ return v.split(',')[0]
|
|
|
+ }
|
|
|
},
|
|
|
data: times
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: 'value',
|
|
|
nameTextStyle: {
|
|
|
- color: "#fff"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- color: "rgb(203,215,235)"
|
|
|
+ color: "#26e2fb"
|
|
|
},
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
@@ -1598,7 +1623,8 @@ export default {
|
|
|
function clickalarmtr(item){
|
|
|
var devno = item.devcode;
|
|
|
if (devno == '') return;
|
|
|
- ShowInfo("C_" + devno)
|
|
|
+ let name="C_" + devno;
|
|
|
+ emit('OpenIframeWin',{class:'newwin deviceInfoWin',src:'/in02-device-info#'+name,title:name+'基本信息'})
|
|
|
}
|
|
|
function LoadPan(data) {
|
|
|
//盘头数据处理
|