lkk
2024-12-27 724c4830ea23cd632802a2f76a318a16b309f8a2
src/views/hosp/rules/index.vue
@@ -13,7 +13,22 @@
            style="margin-bottom: 20px"
          />
        </div>
        <el-scrollbar style="height: 629px; width: 100%">
        <div class="scrollable-container">
          <div class="content">
            <el-tree
              :data="deptOptions"
              :props="defaultProps"
              :expand-on-click-node="false"
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
            />
          </div>
        </div>
        <!-- <el-scrollbar style="height: 629px; width: 100%">
          <div class="head-container">
            <el-tree
              :data="deptOptions"
@@ -27,7 +42,7 @@
              @node-click="handleNodeClick"
            />
          </div>
        </el-scrollbar>
        </el-scrollbar> -->
        <!-- <div class="head-tree">
          <el-tree
            ref="tree"
@@ -1282,6 +1297,21 @@
.pag1 {
  width: 30%;
}
.scrollable-container {
  width: 260px; /* 设置容器的宽度 */
  height: 629px; /* 设置容器的高度 */
  overflow: auto; /* 允许内容溢出时显示滚动条 */
  border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */
  position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */
}
.content {
  width: 1000px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
/* .guding {
  position: fixed;
  top: 20px;