111
lkk
2025-01-09 5a9be998d3dc8097d19d6f4833c0538c34bd6dcb
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"
@@ -255,6 +270,7 @@
              label="规则范围+"
              align="center"
              prop="ruleGt"
              width="90"
              :show-overflow-tooltip="true"
            />
            <el-table-column
@@ -664,7 +680,7 @@
      :visible.sync="openOne"
      width="1000px"
      append-to-body
     :close-on-click-modal="false"
      :close-on-click-modal="false"
    >
      <el-form
        ref="form"
@@ -1281,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;