| | |
| | | } |
| | | } |
| | | }, |
| | | account: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '登录账号不能为空' |
| | | } |
| | | } |
| | | }, |
| | | password: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '登录密码不能为空' |
| | | }, |
| | | identical: { |
| | | field: 'rePassword', |
| | | message: '两次密码不一致' |
| | | }, |
| | | } |
| | | }, |
| | | rePassword: { |
| | | validators: { |
| | | notEmpty: { |
| | | message: '密码不能为空' |
| | | }, |
| | | identical: { |
| | | field: 'password', |
| | | message: '两次密码不一致' |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | |
| | |
| | | .set('area') |
| | | .set('areaId') |
| | | .set('status') |
| | | .set('account') |
| | | .set('password') |
| | | .set('createTime'); |
| | | } |
| | | |
| | |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tBranchOffice/add", function(data){ |
| | | if(data.code == 500){ |
| | | Feng.error("添加失败!" + data.message + "!"); |
| | | Feng.error(data.message); |
| | | return false; |
| | | }else { |
| | | Feng.success("添加成功!"); |