| | |
| | | checkedList.forEach((item) => { |
| | | arr.push({ leader: item.leader, userId: item.id ? item.id : item.userId }); |
| | | }); |
| | | if (arr.length === 0) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请选择部门人员', |
| | | }) |
| | | } else { |
| | | // if (arr.length === 0) { |
| | | // this.$message({ |
| | | // type: 'warning', |
| | | // message: '请选择部门人员', |
| | | // }) |
| | | // } else { |
| | | this.$axios |
| | | .post("sccg/depart/update", { |
| | | id: user.id, |
| | |
| | | parentId: user.parentId === '暂无上级部门' ? 0 : user.parentId, |
| | | departDes: user.departDes, |
| | | departManagerList: arr, |
| | | departType: user.departType |
| | | }) |
| | | .then((res) => { |
| | | this.$message({ |
| | |
| | | this.$emit("changeDialog", { flag: false }); |
| | | this.getDepartList(); |
| | | }); |
| | | } |
| | | // } |
| | | } else { |
| | | return false; |
| | | } |