| | |
| | | :filter-node-method="filterNode" |
| | | ref="tree" |
| | | node-key="id" |
| | | default-expand-all |
| | | :default-expanded-keys="treeId" |
| | | highlight-current |
| | | @node-click="handleNodeClick" |
| | |
| | | icon="el-icon-d-arrow-right" |
| | | title="更多" |
| | | ></el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <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-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-share" |
| | | @click="handleSearch(scope.row)" |
| | | v-hasPermi="['hosp:Userinfo:list']" |
| | | >详细信息</el-button |
| | | > --> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </template> |
| | |
| | | <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属科室" |
| | | style="width: 200px" /> --> |
| | | <el-select |
| | | v-if="DepartmentList.length > 0" |
| | | v-model="form.deptId" |
| | | placeholder="请选择归属科室" |
| | | clearable |
| | |
| | | console.log(11111); |
| | | return callback(""); |
| | | } else if (value != undefined && value != "") { |
| | | console.log(22222); |
| | | return callback(); |
| | | } else if (!patter.test(value)) { |
| | | console.log(33333); |
| | |
| | | hospList: [], |
| | | activeNames: ["1"], |
| | | treeId: [], |
| | | selectedDeptId: null, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | // 节点单击事件 |
| | | handleNodeClick(data) { |
| | | this.queryParams.deptId = data.id; |
| | | this.selectedDeptId = data.id; |
| | | this.handleQuery(); |
| | | }, |
| | | handlePackage() { |
| | |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | // this.reset(); |
| | | this.reset(); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | handleClose() { |
| | | this.$tab.refreshPage(); |
| | | this.cancel(); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | |
| | | this.sendhospName(); |
| | | } |
| | | }); |
| | | if (this.selectedDeptId) { |
| | | this.form.deptId = this.selectedDeptId; |
| | | } |
| | | // getUser().then((response) => { |
| | | // this.postOptions = response.posts; |
| | | // this.roleOptions = response.roles; |
| | |
| | | getDeptListByDictHospId(data).then((res) => { |
| | | console.log(res, 123456); |
| | | this.DepartmentList = res.data; |
| | | this.form.deptId = String(this.form.deptId); |
| | | // this.form.deptId = String(this.form.deptId); |
| | | }); |
| | | }, |
| | | |
| | |
| | | width: 600px; /* 设置内容的宽度,以触发水平滚动条 */ |
| | | height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */ |
| | | } |
| | | |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |