Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
6e493261
Commit
6e493261
authored
Mar 02, 2018
by
ykb
Browse files
将Common.CTX改为Common.ctxPath
修复bug #II2A5
parent
44927efb
Changes
3
Hide whitespace changes
Inline
Side-by-side
admin-console/src/main/resources/static/js/admin/menu/add.js
View file @
6e493261
...
@@ -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
();
...
...
admin-core/src/main/resources/static/js/core/codeGen/index.js
View file @
6e493261
...
@@ -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
:
[
[
...
...
admin-core/src/main/resources/static/js/lib.js
View file @
6e493261
...
@@ -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
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment