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

1. 添加前端验证

close #173
This commit is contained in:
ibuler 2016-03-21 10:32:08 +08:00
parent 4c88ea3c05
commit 6e4b291808

View File

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