"vscode:/vscode.git/clone" did not exist on "861458c8c66519decad6dc549449b0d5f5c4f4d9"
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) {
},
initSubmit:function(){
$("#saveMenu").click(function(){
//默认值
if(!$('#parentMenuId').val()){
$('#parentMenuId').val(0);
}
if(!$('#seq').val()){
$('#seq').val(1);
}
menuApi.addMenu(function(){
Common.info("添加成功");
Lib.closeFrame();
......
......@@ -14,7 +14,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
elem : '#codeTable',
height : Lib.getTableHeight(1),
method : 'post',
url : Common.CTX + '/core/codeGen/table.json' //数据接口
url : Common.ctxPath + '/core/codeGen/table.json' //数据接口
,page : false
,limit : 10000,
cols : [ [
......
......@@ -3,7 +3,7 @@ var Lib = {
"layout" : [ 'count', 'prev', 'page', 'next' ]
},
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 zTreeObj = null;
var index = layer.open({
......@@ -43,7 +43,7 @@ var Lib = {
})
},
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 zTreeObj = null;
var index = layer.open({
......@@ -82,7 +82,7 @@ var Lib = {
})
},
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 zTreeObj = null;
var index = layer.open({
......@@ -121,7 +121,7 @@ var Lib = {
})
},
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 zTreeObj = null;
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