|
@@ -200,7 +200,7 @@ export default {
|
|
contentList: [],
|
|
contentList: [],
|
|
hanb:"",
|
|
hanb:"",
|
|
tableData: [],
|
|
tableData: [],
|
|
- tablejs:[],
|
|
|
|
|
|
+ totablejs:[],
|
|
stationList: [],
|
|
stationList: [],
|
|
current: "",
|
|
current: "",
|
|
intervals: null,
|
|
intervals: null,
|
|
@@ -359,9 +359,12 @@ export default {
|
|
if (res.data.length) {
|
|
if (res.data.length) {
|
|
let contentList = [];
|
|
let contentList = [];
|
|
let tableDatas = [];
|
|
let tableDatas = [];
|
|
|
|
+ // console.log(contentList);
|
|
|
|
+ // console.log(tableDatas);
|
|
res.data.forEach((item, index) => {
|
|
res.data.forEach((item, index) => {
|
|
let tableData = {};
|
|
let tableData = {};
|
|
tableData.code = item.code;
|
|
tableData.code = item.code;
|
|
|
|
+ tableData.windturbineId= item.windturbineId;
|
|
|
|
|
|
tableData.windSpeed = item.windSpeed.toFixed(1);
|
|
tableData.windSpeed = item.windSpeed.toFixed(1);
|
|
tableData.status = Number(item.status);
|
|
tableData.status = Number(item.status);
|
|
@@ -430,8 +433,7 @@ export default {
|
|
let fjcode=[]
|
|
let fjcode=[]
|
|
// console.log('sb',this.tableData);
|
|
// console.log('sb',this.tableData);
|
|
this.tableData.forEach((ele)=>{
|
|
this.tableData.forEach((ele)=>{
|
|
- fjcode.push(ele.code)
|
|
|
|
-
|
|
|
|
|
|
+ fjcode.push(ele.windturbineId)
|
|
})
|
|
})
|
|
let str = fjcode.join(',');
|
|
let str = fjcode.join(',');
|
|
console.log('nb',str);
|
|
console.log('nb',str);
|
|
@@ -443,9 +445,8 @@ export default {
|
|
windturbineIds:str,
|
|
windturbineIds:str,
|
|
startTs: this.timeValue[0],
|
|
startTs: this.timeValue[0],
|
|
endTs: this.timeValue[1],
|
|
endTs: this.timeValue[1],
|
|
- // interval: 200,
|
|
|
|
}) .then((res) => {
|
|
}) .then((res) => {
|
|
- if (res.data.length) {
|
|
|
|
|
|
+// if (res.data.length) {
|
|
let contentList = [];
|
|
let contentList = [];
|
|
let tableDatas = [];
|
|
let tableDatas = [];
|
|
res.data.forEach((item, index) => {
|
|
res.data.forEach((item, index) => {
|
|
@@ -484,12 +485,12 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
tableDatas.push(tablejs);
|
|
tableDatas.push(tablejs);
|
|
|
|
+ this.totablejs.push(tablejs)
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
- }
|
|
|
|
})
|
|
})
|
|
-
|
|
|
|
- const headers = [
|
|
|
|
|
|
+ const headers = [
|
|
"时间",
|
|
"时间",
|
|
"机组编号",
|
|
"机组编号",
|
|
"状态",
|
|
"状态",
|
|
@@ -521,10 +522,10 @@ export default {
|
|
"齿轮箱轴1温度",
|
|
"齿轮箱轴1温度",
|
|
"齿轮箱轴2温度",
|
|
"齿轮箱轴2温度",
|
|
];
|
|
];
|
|
- // console.log(this.tableData);
|
|
|
|
- let data = this.tablejs.map((item) => [
|
|
|
|
|
|
+ console.log('686',this.totablejs);
|
|
|
|
+ let data = this.totablejs.map((item) => [
|
|
item.code,
|
|
item.code,
|
|
- item.windturbineId,
|
|
|
|
|
|
+ item.windturbineId,
|
|
item.status,
|
|
item.status,
|
|
item.windSpeed,
|
|
item.windSpeed,
|
|
item.power,
|
|
item.power,
|
|
@@ -601,6 +602,8 @@ export default {
|
|
link.click()
|
|
link.click()
|
|
document.body.removeChild(link)
|
|
document.body.removeChild(link)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
/* 右键菜单 */
|
|
/* 右键菜单 */
|