xiaohaizhao 5 місяців тому
батько
коміт
6874232a90
1 змінених файлів з 9 додано та 7 видалено
  1. 9 7
      src/optionSystem/valveOption/DieFa.vue

+ 9 - 7
src/optionSystem/valveOption/DieFa.vue

@@ -604,8 +604,8 @@
                 size="mini"
                 @click="selectTarget(scope.data, '执行器')"
                 :disabled="
-                  (guangtouParam.content.where.drivetype == '电动' &&
-                    resultArr.length == 2)
+                  guangtouParam.content.where.drivetype == '电动' &&
+                  resultArr.length == 2
                 "
                 >{{ $t("选择") }}</el-button
               >
@@ -1350,14 +1350,16 @@ export default {
       }
     },
     calcTableHieght(id) {
-      this.$nextTick(() => {
-        setTimeout(() => {
+      try {
+        this.$nextTick(() => {
           let target = this.$refs[id].$el.getBoundingClientRect();
           let clientHeight = document.body.clientHeight;
           this.tableHeight = clientHeight - target.top - 30 + "px";
           this.$refs[id].$refs.table.doLayout();
-        }, 200);
-      });
+        });
+      } catch (error) {
+        console.log(error);
+      }
     },
     guangtouChange(val) {
       switch (val) {
@@ -1422,7 +1424,7 @@ export default {
           maxsquarewidth: data.maxsquarewidth,
           maxrounddiameter: data.maxrounddiameter,
         });
-         this.actuatorbrand = [];
+        this.actuatorbrand = [];
         this.$nextTick(() => {
           this.$refs.excelRef.listData(() => {
             if (!this.$refs.excelRef.list.length) return;