Commit 14509d59 by fengshuonan

修改角色管理的提示

parent 4e9d1654
...@@ -48,11 +48,11 @@ RoleAddDlg.validateForm = function () { ...@@ -48,11 +48,11 @@ RoleAddDlg.validateForm = function () {
*/ */
RoleAddDlg.addSubmit = function () { RoleAddDlg.addSubmit = function () {
var ajax = new $ax(Feng.ctxPath + "/role/add", function (data) { var ajax = new $ax(Feng.ctxPath + "/role/add", function (data) {
Feng.success("添加成功!"); parent.Feng.success("添加成功!");
window.parent.Role.table.refresh(); window.parent.Role.table.refresh();
RoleAddDlg.close(); RoleAddDlg.close();
}, function (data) { }, function (data) {
Feng.error("添加失败!" + data.responseJSON.message + "!"); parent.Feng.error("添加失败!" + data.responseJSON.message + "!");
}); });
ajax.set(this.data); ajax.set(this.data);
ajax.start(); ajax.start();
......
...@@ -49,11 +49,11 @@ RoleEditDlg.validateForm = function () { ...@@ -49,11 +49,11 @@ RoleEditDlg.validateForm = function () {
*/ */
RoleEditDlg.editSubmit = function () { RoleEditDlg.editSubmit = function () {
var ajax = new $ax(Feng.ctxPath + "/role/edit", function (data) { var ajax = new $ax(Feng.ctxPath + "/role/edit", function (data) {
Feng.success("修改成功!"); parent.Feng.success("修改成功!");
window.parent.Role.table.refresh(); window.parent.Role.table.refresh();
RoleEditDlg.close(); RoleEditDlg.close();
}, function (data) { }, function (data) {
Feng.error("修改失败!" + data.responseJSON.message + "!"); parent.Feng.error("修改失败!" + data.responseJSON.message + "!");
}); });
ajax.set(this.data); ajax.set(this.data);
ajax.start(); ajax.start();
......
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