gangyj 2 rokov pred
rodič
commit
b2ce96feb5

+ 11 - 2
src/views/exctab/ElementIdentification/index.vue

@@ -1204,8 +1204,17 @@ export default {
               break;
             }
           }
-
-          this.$refs.tablescroll.$el.scrollTop = 120+this.titleIndex*65;
+          
+          //this.$refs.tablescroll.$el.scrollTop = 120+this.titleIndex*65;
+          //console.log(this.$refs.tablescroll.$el.scrollTop)
+          this.$nextTick(()=>{
+            let row = document.querySelectorAll(".warning-row");
+            if(row.length){
+              this.$refs.tablescroll.$el.scrollTop = row[0].offsetTop;
+            }
+            //console.dir(row[0])
+          })
+          
         }
       }
     },