From 566c44cc5712ab9c997424ee5a5438e0a81a016e Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期三, 17 五月 2023 18:49:38 +0800 Subject: [PATCH] BUG修改 --- management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js index a51016d..c50136b 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js @@ -47,6 +47,35 @@ } } }, + account: { + validators: { + notEmpty: { + message: '登录账号不能为空' + } + } + }, + password: { + validators: { + notEmpty: { + message: '登录密码不能为空' + }, + identical: { + field: 'rePassword', + message: '两次密码不一致' + }, + } + }, + rePassword: { + validators: { + notEmpty: { + message: '密码不能为空' + }, + identical: { + field: 'password', + message: '两次密码不一致' + }, + } + } } }; @@ -117,6 +146,8 @@ .set('area') .set('areaId') .set('status') + .set('account') + .set('password') .set('createTime'); } @@ -135,7 +166,7 @@ //提交信息 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("添加成功!"); -- Gitblit v1.7.1