| | |
| | | style="width: 478px" |
| | | v-model="form.deptCodes" |
| | | @remove-tag="removehpsp" |
| | | :options="deptOptions" |
| | | :options="deptOptionsks" |
| | | :props="props" |
| | | filterable |
| | | clearable |
| | |
| | | style="width: 478px" |
| | | @remove-tag="removehpsp" |
| | | v-model="form.wardCodes" |
| | | :options="deptOptions" |
| | | :options="deptOptionsbq" |
| | | :props="props" |
| | | filterable |
| | | clearable |
| | |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 部门树选项 |
| | | deptOptions: undefined, |
| | | deptOptionsks: undefined, |
| | | deptOptionsbq: undefined, |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 部门名称 |
| | |
| | | /** 查询部门下拉树结构 */ |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | deptTreeSelect(1).then((response) => { |
| | | this.deptOptionsks = response.data; |
| | | }); |
| | | deptTreeSelect(2).then((response) => { |
| | | this.deptOptionsbq = response.data; |
| | | }); |
| | | // 院区列表 |
| | | // deptTreeSelect().then((response) => { |
| | |
| | | } |
| | | console.log(this.form.wardCodes, "wardCodes"); |
| | | console.log(this.form.deptCodes, "deptCodes"); |
| | | |
| | | this.postOptions = response.posts; |
| | | this.roleOptions = response.roles; |
| | | this.$set(this.form, "postIds", response.postIds); |
| | |
| | | adduserdept() { |
| | | if (this.form.wardCodes[0]) { |
| | | this.form.wardCodes.forEach((dept) => { |
| | | const containsId8 = null; |
| | | let containsId8 = null; |
| | | if (this.belongWards) { |
| | | containsId8 = this.belongWards.some( |
| | | (item) => item.deptCode == dept |
| | |
| | | } |
| | | if (this.form.deptCodes[0]) { |
| | | this.form.deptCodes.forEach((dept) => { |
| | | const containsId8 = null; |
| | | let containsId8 = null; |
| | | if (this.belongDepts) { |
| | | containsId8 = this.belongDepts.some( |
| | | (item) => item.deptCode == dept |