| | |
| | | }else{ |
| | | this.form.deptId = null |
| | | } |
| | | |
| | | console.log(this.form.deptId) |
| | | // this.form.proId = this.queryParams.proId; |
| | | this.form.proCheckMethod = "N"; |
| | | |
| | |
| | | getDeptList() { |
| | | listDept(this.queryParams).then((response) => { |
| | | this.parentNameList = response.data; |
| | | console.log(this.parentNameList) |
| | | this.deptList = this.handleTree(response.data, "proId"); |
| | | }); |
| | | }, |
| | |
| | | this.proParent =false |
| | | getProject(proId).then((response) => { |
| | | this.form = response.data; |
| | | console.log( this.form) |
| | | if (this.form.proParentId === "0") { |
| | | this.showPrise = true; |
| | | this.showRentPrise = false; |
| | |
| | | }); |
| | | }, |
| | | changeValue(value) { |
| | | console.log(value) |
| | | // this.form.deptName = value; |
| | | this.form.deptId = value; |
| | | }, |
| | |
| | | this.form.lisXmbm = this.form.lisXmbm; |
| | | updateProject(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.cancel(); |
| | | if(this.proParent == true){ |
| | | this.getDeptTree(); |
| | | this.cancel(); |
| | | }else{ |
| | | this.cancel(); |
| | | this.getList(); |
| | | } |
| | | |
| | | }); |
| | | } else { |
| | | if (this.form.proParentId === 0) { |
| | |
| | | this.form.lisXmbm = this.form.lisXmbm; |
| | | updateProject(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.cancel(); |
| | | if(this.proParent == true){ |
| | | this.getDeptTree(); |
| | | this.cancel(); |
| | | }else{ |
| | | this.cancel(); |
| | | this.getList(); |
| | | } |
| | | |
| | | }); |
| | | } else { |
| | | if (this.form.proParentId === 0) { |