gaoshp
2024-11-03 3931e2728f618d0090f129b2665bc1285c4440c3
src/views/master/person/main/save.vue
@@ -165,7 +165,7 @@
         })
      },
      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;
@@ -213,7 +213,7 @@
         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;
@@ -229,7 +229,7 @@
      },
      //表单注入数据
      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(",");