소스 검색

问题修改

xujuanning 1 일 전
부모
커밋
1f89d3fa81
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 1
      src/views/economicsOperation/windTurbineMonitor/index.vue

+ 12 - 1
src/views/economicsOperation/windTurbineMonitor/index.vue

@@ -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) {