Commit 48c5f5b9 authored by 皮倩雯's avatar 皮倩雯

修复机构管理添加用户失败bug

parent 0cc1006b
Pipeline #60057 passed with stages
...@@ -71,8 +71,6 @@ const AddUserModal = props => { ...@@ -71,8 +71,6 @@ const AddUserModal = props => {
const password = addUserForm.getFieldValue('password') || ''; const password = addUserForm.getFieldValue('password') || '';
const phone = addUserForm.getFieldValue('phone') || ''; const phone = addUserForm.getFieldValue('phone') || '';
const email = addUserForm.getFieldValue('email') || ''; const email = addUserForm.getFieldValue('email') || '';
const stationList = addUserForm.getFieldValue('stationList').toString() || '';
console.log(stationList);
// 正则验证 // 正则验证
if (loginName === '') { if (loginName === '') {
notification.error({ notification.error({
...@@ -118,7 +116,7 @@ const AddUserModal = props => { ...@@ -118,7 +116,7 @@ const AddUserModal = props => {
(phone === '' || isPhone.test(phone)) && (phone === '' || isPhone.test(phone)) &&
(email === '' || isEmail.test(email)) (email === '' || isEmail.test(email))
) { ) {
addUser({ OUID: orgID.id, loginName, userName, password, phone, email, stationList }) addUser({ OUID: orgID.id, loginName, userName, password, phone, email })
.then(res => { .then(res => {
if (res.code === 0) { if (res.code === 0) {
addUserForm.resetFields(); addUserForm.resetFields();
......
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