|
|
@@ -215,11 +215,18 @@ export default {
|
|
|
changeModel(val) {
|
|
|
console.log("val===>>", val)
|
|
|
this.windSList = [];
|
|
|
+ this.windSObj = []
|
|
|
this.allwindSList.forEach(it => {
|
|
|
if (it.modelId === val) {
|
|
|
this.windSList.push(it)
|
|
|
}
|
|
|
})
|
|
|
+ this.windSList.forEach((it, index) => {
|
|
|
+ if (index < 10) {
|
|
|
+ this.windSObj.push(it.aname)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.funGetComponents();
|
|
|
},
|
|
|
// 获取风机
|
|
|
async getWindData() {
|
|
|
@@ -250,6 +257,9 @@ export default {
|
|
|
//获取测点
|
|
|
funGetComponents() {
|
|
|
let that = this;
|
|
|
+ that.componentsData = []
|
|
|
+ that.selectComponentsData = []
|
|
|
+ that.tableColumn = []
|
|
|
let params = {
|
|
|
modelId: that.windModel,
|
|
|
query: ""
|
|
|
@@ -264,7 +274,7 @@ export default {
|
|
|
title: it.unit || "",
|
|
|
code: it.uniformCode
|
|
|
}
|
|
|
- this.tableColumn.push(obj)
|
|
|
+ that.tableColumn.push(obj)
|
|
|
})
|
|
|
that.funGetTableData()
|
|
|
}
|
|
|
@@ -273,6 +283,7 @@ export default {
|
|
|
//获取表格
|
|
|
funGetTableData() {
|
|
|
let that = this;
|
|
|
+ that.tableData = []
|
|
|
let uni = []
|
|
|
that.selectComponentsData.forEach((it, index) => {
|
|
|
if (index < 10) {
|