| | |
| | | style="width: 200px" |
| | | clearable |
| | | filterable |
| | | @change="$forceUpdate()" |
| | | > |
| | | <el-option |
| | | v-for="dict in deptOption" |
| | | :key="dict.label" |
| | | :key="dict.id" |
| | | :label="dict.label" |
| | | :value="dict.id" |
| | | ></el-option> |
| | |
| | | getlistHosp() { |
| | | listHosp(this.queryParams).then((response) => { |
| | | this.hospList = response.rows; |
| | | console.log(this.hospList); |
| | | }); |
| | | }, |
| | | /** 转换部门数据结构 */ |
| | |
| | | // console.log(11111) |
| | | // this.reset(); |
| | | this.form = row; |
| | | // this.form.parentId = this.form.parentId.toString() |
| | | this.form.parentId = this.form.parentId.toString() |
| | | if(this.form.parentId == 0){ |
| | | this.deptOption.push({ "id": 0, "label": "主类目", }); |
| | | } |
| | |
| | | if (valid) { |
| | | if (this.form.deptId != undefined) { |
| | | if(this.form.hospId ){ |
| | | console.log(this.form); |
| | | // console.log(this.form); |
| | | updateDept(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |