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