田源
2023-10-24 c8005d3f303be7241f5acdc10ad679e1bf8cd602
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -304,8 +304,9 @@
    <el-table v-if="this.crudArrayFlag"
              ref="referAttrCrud"
              v-loading="loading"
              border
              :data="ProData"
              :height="this.editStyleFlag? 800 : 343"
              :height="this.tableHeight"
              style="width: 100%"
              @select="selectHandle"
              @cell-click="handleCellClicks"
@@ -491,6 +492,8 @@
  },
  data() {
    return {
      //表格高度
      dynamicHeight: '',
      // 保存单元格状态
      AddCellFlag: false,
      //全屏编辑高度状态
@@ -639,6 +642,7 @@
        addBtn: false,
        header: false,
        align: 'center',
        columnBtn:false,
        menuAlign: 'center',
        column: [{
          label: '',
@@ -1175,6 +1179,7 @@
      List: [],
      option: {
        index: false,
        columnBtn:false,
        border: true,
        editBtn: false,
        selection: true,
@@ -1539,6 +1544,13 @@
      });
      return oids.join(",");
    },
    tableHeight() {
      if (this.editStyleFlag) {
        return '800px'
      } else {
        return 'calc(100vh - 595px)'
      }
    }
  },
  mounted() {
  },
@@ -2169,6 +2181,27 @@
</script>
<style lang="scss" scoped>
//固定列高度
/deep/ .el-table__fixed {
  height: calc(100vh - 612px)!important;
}
// 滚动条样式修改
// 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar {
  height: 15px; // 纵向滚动条 必写
  background: white;
  border: white;
  width: 10px;
}
// 滚动条的滑块
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
  background-color: #ececec;
  border-radius: 20px;
  border: #ececec;
}
.app {
  /deep/ .el-button {
    //margin: 0 10px 10px 0;