Commit 155f263c by stylefeng

Merge pull request !10 from poseidon/master

parents 74aa8ffb 82d024d3
package com.stylefeng.guns.common.constant.state;
/**
* 管理员的状态
* 管理员的状态
*
* @author fengshuonan
* @Date 2017年1月10日 下午9:54:13
......
......@@ -48,7 +48,7 @@ Menu.openAddMenu = function () {
var index = layer.open({
type: 2,
title: '添加菜单',
area: ['800px', '450px'], //宽高
area: ['830px', '450px'], //宽高
fix: false, //不固定
maxmin: true,
content: Feng.ctxPath + '/menu/menu_add'
......
......@@ -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