| | |
| | | }) |
| | | }, |
| | | getOrganizationList() { |
| | | this.$HTTP.get(`/api/blade-cps/organization/tree?groupType=group_organization&groupCategory=1`).then(res => { |
| | | this.$HTTP.get(`/api/smis/organization/tree?groupType=group_organization&groupCategory=1`).then(res => { |
| | | if (res.code == 200) { |
| | | this.departmentList = res.data; |
| | | this.addPersonForm.organizationId = res.data[0].id; |
| | |
| | | obj.postId = obj.postId.join(","); |
| | | this.$refs.dialogForm.validate(async (valid) => { |
| | | if (valid) { |
| | | this.$HTTP.post("/api/blade-cps/employee/submit", obj).then(res => { |
| | | this.$HTTP.post("/api/smis/employee/submit", obj).then(res => { |
| | | if (res.code == 200) { |
| | | this.$emit('success', this.addPersonForm, this.mode); |
| | | this.visible = false; |
| | |
| | | }, |
| | | //表单注入数据 |
| | | setData(data) { |
| | | this.$HTTP.get(`/api/blade-cps/employee/detail/${data.id}`).then(res => { |
| | | this.$HTTP.get(`/api/smis/employee/detail/${data.id}`).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.data.postId) { |
| | | res.data.postId = res.data.postId.split(","); |