src/views/system/dept/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/user/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/system/dept/index.vue
@@ -12,7 +12,7 @@ style="margin-bottom: 15px" /> </div> <div class="head-container"> <!-- <div class="head-container"> <el-tree :data="deptOption" :props="defaultProps" @@ -24,6 +24,21 @@ highlight-current @node-click="handleNodeClick" /> </div> --> <div class="scrollable-container"> <div class="content"> <el-tree :data="deptOption" :props="defaultProps" :expand-on-click-node="false" :filter-node-method="filterNode" ref="tree" node-key="id" default-expand-all highlight-current @node-click="handleNodeClick" /> </div> </div> </el-col> <el-col :span="20" :xs="24"> @@ -366,12 +381,16 @@ </el-form> <div slot="footer" class="dialog-footer"> <el-button @click="cancel">取 消</el-button> <el-button type="primary" @click="submitForm">确 定</el-button> </div> <!-- 在父组件中 --> <Packagese ref="aaa" :visible="showPackagese" @add="handleChanges" :selectedId="form.hisksid" /> <Packagese ref="aaa" :visible="showPackagese" @add="handleChanges" :selectedId="form.hisksid" /> </el-dialog> </div> </template> @@ -509,7 +528,6 @@ }, methods: { handleQuerys() { this.showPackagese = true; if (this.form.hisksid) { this.$refs.aaa.list = [ @@ -750,3 +768,16 @@ }; </script> <style scoped> .scrollable-container { width: 200px; /* 设置容器的宽度 */ height: 629px; /* 设置容器的高度 */ overflow: auto; /* 允许内容溢出时显示滚动条 */ border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */ position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */ } .content { width: 600px; /* 设置内容的宽度,以触发水平滚动条 */ height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */ } </style> src/views/system/user/index.vue
@@ -13,7 +13,7 @@ style="margin-bottom: 15px" /> </div> <div class="head-container"> <!-- <div class="head-container"> <el-tree :data="deptOptions" :props="defaultProps" @@ -26,6 +26,22 @@ 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-expand-all :default-expanded-keys="treeId" highlight-current @node-click="handleNodeClick" /> </div> </div> </el-col> @@ -531,7 +547,7 @@ <el-form-item label="所在医院" prop="hospId"> <el-select v-if="hospList.length > 0" v-if="hospList.length > 0" v-model="form.hospId" placeholder="请选择所在医院" clearable @@ -552,7 +568,7 @@ <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属科室" style="width: 200px" /> --> <el-select v-if="DepartmentList.length > 0" v-if="DepartmentList.length > 0" v-model="form.deptId" placeholder="请选择归属科室" clearable @@ -1635,7 +1651,7 @@ // this.initPassword = response.msg; // }); }, methods: { handleChange(val) {}, /** 查询用户列表 */ @@ -1793,7 +1809,7 @@ // 更多操作触发 handleCommand(command, row) { console.log('Command triggered:', command); console.log("Command triggered:", command); switch (command) { case "handleResetPwd": @@ -2019,7 +2035,17 @@ 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%; display: flex;