Commit 6e4b2918 authored by ibuler's avatar ibuler

fix(perm_role_edit) 修复编辑系统用户密码过长bug

1. 添加前端验证

close #173
parent 4c88ea3c
...@@ -105,12 +105,16 @@ $('#roleForm').validator({ ...@@ -105,12 +105,16 @@ $('#roleForm').validator({
tip: "输入系统用户名称", tip: "输入系统用户名称",
ok: "", ok: "",
msg: {required: "系统用户名称必填"} msg: {required: "系统用户名称必填"}
},
"role_password": {
rule: "length[0~64]",
tip: "系统密码"
}, },
"role_key": { "role_key": {
rule: "check_begin", rule: "check_begin",
ok: "", ok: "",
empty: true empty: true
}, }
}, },
valid: function(form) { valid: function(form) {
......
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