Commit 328f8788 authored by 赵伟庚's avatar 赵伟庚

fix:新增组织用户时证件类型不选默认传0

parent 1476ae86
...@@ -144,12 +144,14 @@ const getOrgPersonFormData = (data) => { ...@@ -144,12 +144,14 @@ const getOrgPersonFormData = (data) => {
}) })
}else { }else {
const params = {...formData, const params = {
// organization_id: orgId.value, ...formData,
logo: formData.logo && formData.logo.length > 0 ? formData.logo[0].url : '', // organization_id: orgId.value,
is_admin: 2, logo: formData.logo && formData.logo.length > 0 ? formData.logo[0].url : '',
password: CryptoJS.AES.encrypt(formData.password,"swuE9cmCZQwrkYRV").toString() 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) $axios.post(`/apaas/system/v5/org/add/user`,params)
.then((res) => { .then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment