| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="3" :xs="24"> |
| | | <div class="head-container"> |
| | | <div class="content"> |
| | | <el-tree |
| | | :data="deptOptions" |
| | | :props="defaultProps" |
| | |
| | | highlight-current |
| | | @node-click="handleNodeClick" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | |
| | | |
| | | <!-- 添加或修改advice对话框 --> |
| | | <el-dialog |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.sendhospName() |
| | | this.sendhospName(); |
| | | this.getDeptTree(); |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | methods: { |
| | | sendhospName() { |
| | | |
| | | getDeptListByDictHospId({ |
| | | id: 2000 |
| | | id: 2000, |
| | | }).then((res) => { |
| | | this.DepartmentList = res.data; |
| | | this.form.deptId = String(this.form.deptId); |
| | |
| | | }, |
| | | // 节点单击事件 |
| | | handleNodeClick(data) { |
| | | this.queryParams.deptId = data.id; |
| | | // this.queryParams.deptId = data.id; |
| | | this.queryParams.deptId = null;; |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | |
| | | }, |
| | | getDeptTree() { |
| | | deptTreeSelect().then((response) => { |
| | | |
| | | this.deptOptions = response.data; |
| | | this.treeId.push(this.deptOptions[0].id); |
| | | this.queryParams.deptId = this.deptOptions[0].id; |
| | |
| | | this.reset(); |
| | | this.title = "体检建议信息维护"; |
| | | this.getlistProject(); |
| | | this.form.deptId = this.queryParams.deptId |
| | | this.form.deptId = this.queryParams.deptId; |
| | | this.open = true; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | } |
| | | this.getlistProject(); |
| | | this.open = true; |
| | | this.form.deptId = this.queryParams.deptId |
| | | this.form.deptId = this.queryParams.deptId; |
| | | this.title = "体检建议信息维护"; |
| | | }); |
| | | }, |
| | |
| | | .pag1 { |
| | | width: 30%; |
| | | } |
| | | .content { |
| | | width: 1000px; |
| | | height: 1000px; |
| | | } |
| | | .head-container { |
| | | width: 200px; |
| | | height: 629px; |
| | | overflow: auto; |
| | | border: 1px solid #ccc; |
| | | position: relative; |
| | | } |
| | | |
| | | </style> |