Commit 0a9c26ab by poseidon-ocean

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

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