Commit 4e74f071 by naan1993

修改角色增加验证

parent d11520c9
...@@ -132,6 +132,7 @@ RolInfoDlg.addSubmit = function () { ...@@ -132,6 +132,7 @@ RolInfoDlg.addSubmit = function () {
this.clearData(); this.clearData();
this.collectData(); this.collectData();
if (!this.validate()) { if (!this.validate()) {
return; return;
} }
...@@ -156,6 +157,10 @@ RolInfoDlg.editSubmit = function () { ...@@ -156,6 +157,10 @@ RolInfoDlg.editSubmit = function () {
this.clearData(); this.clearData();
this.collectData(); this.collectData();
if (!this.validate()) {
return;
}
//提交信息 //提交信息
var ajax = new $ax(Feng.ctxPath + "/role/edit", function (data) { var ajax = new $ax(Feng.ctxPath + "/role/edit", function (data) {
Feng.success("修改成功!"); Feng.success("修改成功!");
......
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