| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="适用科室" prop="region"> |
| | | <el-form-item label="适用课题组" prop="region"> |
| | | <el-cascader |
| | | style="width: 478px" |
| | | v-model="form.deptCodes" |
| | |
| | | deptId: undefined, |
| | | }, |
| | | searchscopelist: [ |
| | | { value: "1", label: "科室" }, |
| | | { value: "1", label: "课题组" }, |
| | | { value: "2", label: "病区" }, |
| | | { value: "0", label: "全部" }, |
| | | { value: "9", label: "无" }, |
| | |
| | | }, |
| | | /** 查询部门下拉树结构 */ |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect(1).then((response) => { |
| | | this.deptOptionsks = response.data; |
| | | }); |
| | |
| | | } |
| | | 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); |
| | |
| | | this.form.password = ""; |
| | | }); |
| | | }, |
| | | // 删除科室 |
| | | // 删除课题组 |
| | | removehpsp(valueArray) { |
| | | console.log(valueArray, "删除科室"); |
| | | console.log(valueArray, "删除课题组"); |
| | | console.log(this.form.userId, "删除"); |
| | | let code = valueArray[valueArray.length - 1]; |
| | | removeusertd(this.form.userId, code).then((res) => { |
| | |
| | | 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 |