Commit 0a9c26ab by poseidon-ocean

更改:管理员的装状态 > 管理员的状态 , roleInfoData > menuInfoData

parent 74aa8ffb
package com.stylefeng.guns.common.constant.state; package com.stylefeng.guns.common.constant.state;
/** /**
* 管理员的状态 * 管理员的状态
* *
* @author fengshuonan * @author fengshuonan
* @Date 2017年1月10日 下午9:54:13 * @Date 2017年1月10日 下午9:54:13
......
...@@ -40,7 +40,7 @@ var MenuInfoDlg = { ...@@ -40,7 +40,7 @@ var MenuInfoDlg = {
* 清除数据 * 清除数据
*/ */
MenuInfoDlg.clearData = function () { MenuInfoDlg.clearData = function () {
this.roleInfoData = {}; this.menuInfoData = {};
} }
/** /**
...@@ -50,7 +50,7 @@ MenuInfoDlg.clearData = function () { ...@@ -50,7 +50,7 @@ MenuInfoDlg.clearData = function () {
* @param val 数据的具体值 * @param val 数据的具体值
*/ */
MenuInfoDlg.set = function (key, val) { MenuInfoDlg.set = function (key, val) {
this.roleInfoData[key] = (typeof value == "undefined") ? $("#" + key).val() : value; this.menuInfoData[key] = (typeof value == "undefined") ? $("#" + key).val() : value;
return this; return this;
} }
...@@ -107,7 +107,7 @@ MenuInfoDlg.addSubmit = function () { ...@@ -107,7 +107,7 @@ MenuInfoDlg.addSubmit = function () {
}, function (data) { }, function (data) {
Feng.error("添加失败!" + data.responseJSON.message + "!"); Feng.error("添加失败!" + data.responseJSON.message + "!");
}); });
ajax.set(this.roleInfoData); ajax.set(this.menuInfoData);
ajax.start(); ajax.start();
} }
...@@ -131,7 +131,7 @@ MenuInfoDlg.editSubmit = function () { ...@@ -131,7 +131,7 @@ MenuInfoDlg.editSubmit = function () {
}, function (data) { }, function (data) {
Feng.error("修改失败!" + data.responseJSON.message + "!"); Feng.error("修改失败!" + data.responseJSON.message + "!");
}); });
ajax.set(this.roleInfoData); ajax.set(this.menuInfoData);
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