src/views/xtsz/bmgz.vue
@@ -42,6 +42,8 @@
      <!--      <el-divider />-->
      <div class="elTableDiv">
        <el-table
          ref="tableDataRef"
          class="tableFixed"
          :data="tableData"
          :height="tableHeight"
          border
@@ -61,6 +63,11 @@
            width="50"
            label="序号"
            fixed
          />
          <el-table-column
            prop="right_code"
            label="编码"
            sortable="custom"
          />
          <el-table-column
            prop="right_name"
@@ -116,7 +123,6 @@
      </div>
      <!--分页-->
      <pagination
        v-show="total>0"
        :total="total"
        :page.sync="form.page"
        :limit.sync="form.rows"
@@ -382,7 +388,8 @@
    getHeight() {
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 85
        this.tableHeight = this.mainHeight - 140
        this.tableHeight = this.mainHeight - 135
        this.$refs.tableDataRef.doLayout()
      })
    }
  }
@@ -490,7 +497,14 @@
.userDialogVisible ::v-deep .el-form-item {
  margin-bottom: 0;
}
.tableFixed{
  ::v-deep .el-table__fixed-right{
    height: 100% !important;
  }
  ::v-deep .el-table__fixed{
    height: 100% !important;
  }
}
</style>
<style>