浏览代码

调整分配权限的高度

Lijy 2 年之前
父节点
当前提交
cdf77f5b47
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      fhKeeper/formulahousekeeper/timesheet/src/views/quanx/quanx.vue

+ 8 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/quanx/quanx.vue

@@ -20,7 +20,7 @@
           </el-form>
       </el-col>
       <!-- 表格 -->
-      <el-table :data="tableData" style="width: 100%" height="615">
+      <el-table :data="tableData" style="width: 100%" :height="tableHeight"> 
         <el-table-column prop="rolename" :label="$t('jiao-se')" align="center">
             <template slot-scope="scope">
               {{scope.row.rolename}} <span v-if="scope.row.isDefault == 1" style="color: #909399;"> {{ $t('mo-ren-jiao-se') }}</span>
@@ -158,7 +158,8 @@ export default {
           rolename: [{
             required: true, message: this.$t('peaseenterthe'), trigger: 'blur'
           }]
-        }
+        },
+        tableHeight: 0
     };
   },
   computed: {},
@@ -172,8 +173,12 @@ export default {
         }
       }
   },
-  created() {},
+  created() {
+    let height = window.innerHeight;
+    this.tableHeight = height - 125;
+  },
   mounted() {
+    console.log(this.tableHeight, '高度')
     this.getRole()
     // this.shisha()
   },