| | |
| | | style="margin-bottom: 15px" |
| | | /> |
| | | </div> |
| | | <div class="head-container"> |
| | | <!-- <div class="head-container"> |
| | | <el-tree |
| | | :data="deptOptions" |
| | | :props="defaultProps" |
| | |
| | | highlight-current |
| | | @node-click="handleNodeClick" |
| | | /> |
| | | </div> --> |
| | | <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-col> |
| | | |
| | |
| | | icon="el-icon-d-arrow-right" |
| | | title="更多" |
| | | ></el-button> |
| | | <el-dropdown-menu slot="dropdown" :append-to-body="false"> |
| | | <el-dropdown-menu slot="dropdown" :append-to-body="true"> |
| | | <el-dropdown-item |
| | | command="handleResetPwd" |
| | | icon="el-icon-key" |
| | |
| | | v-hasPermi="['system:user:edit']" |
| | | >分配角色</el-dropdown-item |
| | | > |
| | | |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </template> |
| | |
| | | |
| | | // 更多操作触发 |
| | | handleCommand(command, row) { |
| | | console.log('Command triggered:', command); |
| | | console.log("Command triggered:", command); |
| | | |
| | | switch (command) { |
| | | case "handleResetPwd": |
| | |
| | | line-height: 36px; |
| | | width: 200px; |
| | | } |
| | | .scrollable-container { |
| | | width: 200px; /* 设置容器的宽度 */ |
| | | height: 629px; /* 设置容器的高度 */ |
| | | overflow: auto; /* 允许内容溢出时显示滚动条 */ |
| | | border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */ |
| | | position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */ |
| | | } |
| | | .content { |
| | | width: 600px; /* 设置内容的宽度,以触发水平滚动条 */ |
| | | height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */ |
| | | } |
| | | |
| | | .pag { |
| | | width: 100%; |