Browse Source

更改表格错位问题

web100 2 years ago
parent
commit
7dddb5d072
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/views/tirePartsMall/basicData/supplier/index.vue

+ 9 - 4
src/views/tirePartsMall/basicData/supplier/index.vue

@@ -149,11 +149,12 @@ export default {
         index: true,
         index: true,
         span: 8,
         span: 8,
         border: true,
         border: true,
-        height: "auto",
-        searchMenuPosition: "right",
         align: "center",
         align: "center",
+        // height: "auto",
+        Height:'50',
+        searchMenuPosition: "right",
         size: "small",
         size: "small",
-        menuWidth: 140,
+        menuWidth: 120,
         searchSpan: 8,
         searchSpan: 8,
         searchIcon: true,
         searchIcon: true,
         searchIndex: 2,
         searchIndex: 2,
@@ -221,7 +222,11 @@ export default {
       this.option.searchMenuPosition = "right";
       this.option.searchMenuPosition = "right";
     }
     }
   },
   },
-
+  activated(){
+    this.$nextTick(()=>{
+      this.$refs.crud.doLayout()
+    })
+  },
   methods: {
   methods: {
     addCorpType() {
     addCorpType() {
       // this.$refs["corpType"].validate((valid, done) => {
       // this.$refs["corpType"].validate((valid, done) => {