loulijun2021
2022-09-23 2c59863afca9475562c4c3a99e66b4b4a4122b0f
src/views/jcsz/jsqd.vue
@@ -56,7 +56,9 @@
      <div class="elTableDiv">
        <el-table
          ref="tableDataRef"
          :data="tableData"
          class="tableFixed"
          border
          :row-class-name="tableRowClassName"
          :height="tableHeight+'px'"
@@ -865,12 +867,14 @@
    // 获取页面高度
    getHeight() {
      this.$nextTick(() => {
        this.$refs.tableDataRef.doLayout()
        this.mainHeight = window.innerHeight - 85
        this.tableHeight = this.mainHeight - 200
        if (window.innerHeight < 769) {
          this.tableHeight = this.tableHeight - 40
        }
        this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367
        this.$refs.tableDataRef.doLayout()
      })
    },
    tableRowClassName({ row, rowIndex }) {
@@ -1693,6 +1697,14 @@
  margin-bottom: 0;
}
.tableFixed{
  ::v-deep .el-table__fixed-right{
    height: 100% !important;
  }
  ::v-deep .el-table__fixed{
    height: 100% !important;
  }
}
</style>
<style>