From 328f87882a4fb87fd794103ea3e497f4a6fb0928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Tue, 8 Nov 2022 18:26:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=96=B0=E5=A2=9E=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E7=94=A8=E6=88=B7=E6=97=B6=E8=AF=81=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8D=E9=80=89=E9=BB=98=E8=AE=A4=E4=BC=A00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/system/organization/org-user/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/page/main/system/organization/org-user/index.vue b/src/page/main/system/organization/org-user/index.vue index c1bab5f..0ae74cb 100644 --- a/src/page/main/system/organization/org-user/index.vue +++ b/src/page/main/system/organization/org-user/index.vue @@ -144,12 +144,14 @@ const getOrgPersonFormData = (data) => { }) }else { - const params = {...formData, - // organization_id: orgId.value, - logo: formData.logo && formData.logo.length > 0 ? formData.logo[0].url : '', - is_admin: 2, - password: CryptoJS.AES.encrypt(formData.password,"swuE9cmCZQwrkYRV").toString() - }; + const params = { + ...formData, + // organization_id: orgId.value, + logo: formData.logo && formData.logo.length > 0 ? formData.logo[0].url : '', + is_admin: 2, + password: CryptoJS.AES.encrypt(formData.password,"swuE9cmCZQwrkYRV").toString() + }; + params.document_type = params.document_type == "" ? 0 : params.document_type $axios.post(`/apaas/system/v5/org/add/user`,params) .then((res) => { if (res.data.code == 200) { -- 2.26.0