Commit 155f263c by stylefeng

Merge pull request !10 from poseidon/master

parents 74aa8ffb 82d024d3
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
......
...@@ -48,7 +48,7 @@ Menu.openAddMenu = function () { ...@@ -48,7 +48,7 @@ Menu.openAddMenu = function () {
var index = layer.open({ var index = layer.open({
type: 2, type: 2,
title: '添加菜单', title: '添加菜单',
area: ['800px', '450px'], //宽高 area: ['830px', '450px'], //宽高
fix: false, //不固定 fix: false, //不固定
maxmin: true, maxmin: true,
content: Feng.ctxPath + '/menu/menu_add' content: Feng.ctxPath + '/menu/menu_add'
......
...@@ -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