|
@@ -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()
|
|
|
},
|