Commit 6e493261 authored by ykb's avatar ykb
Browse files

将Common.CTX改为Common.ctxPath

修复bug #II2A5
parent 44927efb
...@@ -11,6 +11,14 @@ layui.define([ 'form', 'laydate', 'table','menuApi'], function(exports) { ...@@ -11,6 +11,14 @@ layui.define([ 'form', 'laydate', 'table','menuApi'], function(exports) {
}, },
initSubmit:function(){ initSubmit:function(){
$("#saveMenu").click(function(){ $("#saveMenu").click(function(){
//默认值
if(!$('#parentMenuId').val()){
$('#parentMenuId').val(0);
}
if(!$('#seq').val()){
$('#seq').val(1);
}
menuApi.addMenu(function(){ menuApi.addMenu(function(){
Common.info("添加成功"); Common.info("添加成功");
Lib.closeFrame(); Lib.closeFrame();
......
...@@ -14,7 +14,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) { ...@@ -14,7 +14,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
elem : '#codeTable', elem : '#codeTable',
height : Lib.getTableHeight(1), height : Lib.getTableHeight(1),
method : 'post', method : 'post',
url : Common.CTX + '/core/codeGen/table.json' //数据接口 url : Common.ctxPath + '/core/codeGen/table.json' //数据接口
,page : false ,page : false
,limit : 10000, ,limit : 10000,
cols : [ [ cols : [ [
......
...@@ -3,7 +3,7 @@ var Lib = { ...@@ -3,7 +3,7 @@ var Lib = {
"layout" : [ 'count', 'prev', 'page', 'next' ] "layout" : [ 'count', 'prev', 'page', 'next' ]
}, },
loadOrgPanel : function(container, textInput, valueInput) { loadOrgPanel : function(container, textInput, valueInput) {
$.post(Common.CTX + "/core/user/org.json", {}, function(response) { $.post(Common.ctxPath + "/core/user/org.json", {}, function(response) {
var zNodes = response.data; var zNodes = response.data;
var zTreeObj = null; var zTreeObj = null;
var index = layer.open({ var index = layer.open({
...@@ -43,7 +43,7 @@ var Lib = { ...@@ -43,7 +43,7 @@ var Lib = {
}) })
}, },
loadFunPanel : function(container, textInput, valueInput) { loadFunPanel : function(container, textInput, valueInput) {
$.post(Common.CTX + "/core/user/function/tree.json", {}, function(response) { $.post(Common.ctxPath + "/core/user/function/tree.json", {}, function(response) {
var zNodes = response.data; var zNodes = response.data;
var zTreeObj = null; var zTreeObj = null;
var index = layer.open({ var index = layer.open({
...@@ -82,7 +82,7 @@ var Lib = { ...@@ -82,7 +82,7 @@ var Lib = {
}) })
}, },
loadMenuPanel : function(container, textInput, valueInput) { loadMenuPanel : function(container, textInput, valueInput) {
$.post(Common.CTX + "/core/user/menu/tree.json", {}, function(response) { $.post(Common.ctxPath + "/core/user/menu/tree.json", {}, function(response) {
var zNodes = response.data; var zNodes = response.data;
var zTreeObj = null; var zTreeObj = null;
var index = layer.open({ var index = layer.open({
...@@ -121,7 +121,7 @@ var Lib = { ...@@ -121,7 +121,7 @@ var Lib = {
}) })
}, },
loadMenuFunPanel : function(container, textInput, valueInput) { loadMenuFunPanel : function(container, textInput, valueInput) {
$.post(Common.CTX + "/core/user/function/tree.json", {}, function(response) { $.post(Common.ctxPath + "/core/user/function/tree.json", {}, function(response) {
var zNodes = response.data; var zNodes = response.data;
var zTreeObj = null; var zTreeObj = null;
var index = layer.open({ var index = layer.open({
......
Supports Markdown
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