| | |
| | | id: item.id || '', |
| | | card_number: item.card_number || '', |
| | | person_code: item.person_code || '', |
| | | group_list: item.group_list ? item.group_list.split(',') : [], |
| | | group_list: item.group_list ? item.group_list.split(',') : [1], |
| | | password: item.password || '', |
| | | id_number: item.id_number || '', |
| | | face_list: [{ |
| | |
| | | error = '人员名称不可为空' |
| | | } else if (!data.id) { |
| | | error = '人员id不可为空' |
| | | } else if (data.group_list.length === 0) { |
| | | error = '人员分组不可为空' |
| | | } else if (!data.face_list[0].data) { |
| | | error = '人员图片不可为空' |
| | | } else if (data.password) { |