From 8e9440ea0a09fc6d9cea1c205904c51ccbf62a2a Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期一, 24 七月 2023 15:07:53 +0800
Subject: [PATCH] 超省2.0

---
 management/guns-admin/src/main/webapp/static/modular/system/tAgent/tAgent_info.js |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tAgent/tAgent_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tAgent/tAgent_info.js
index b0c4ab7..ef7f181 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tAgent/tAgent_info.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tAgent/tAgent_info.js
@@ -8,6 +8,10 @@
             validators: {
                 notEmpty: {
                     message: '负责人姓名不能为空'
+                },
+                regexp: {
+                    regexp:  /^[\u4E00-\u9FA5A-Za-z\s]+$/,
+                    message: '不能输入特殊字符和数字'
                 }
             }
         },
@@ -29,6 +33,35 @@
                 }
             }
         },
+        account: {
+            validators: {
+                notEmpty: {
+                    message: '登录账号不能为空'
+                }
+            }
+        },
+        password: {
+            validators: {
+                notEmpty: {
+                    message:  '登录密码不能为空'
+                },
+                identical: {
+                    field: 'rePassword',
+                    message: '两次密码不一致'
+                },
+            }
+        },
+        rePassword: {
+            validators: {
+                notEmpty: {
+                    message: '密码不能为空'
+                },
+                identical: {
+                    field: 'password',
+                    message: '两次密码不一致'
+                },
+            }
+        }
     }
 };
 
@@ -92,6 +125,8 @@
     .set('status')
         .set('area')
         .set('areaId')
+        .set('account')
+        .set('password')
     .set('createTime');
 }
 

--
Gitblit v1.7.1