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
37606d65
Commit
37606d65
authored
Mar 16, 2018
by
ykb
Browse files
优化显示样式
parent
ec708bba
Changes
2
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/codeTemplate/js/add.js
View file @
37606d65
...
...
@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
},
initSubmit
:
function
(){
$
(
"
#addButton
"
).
click
(
function
(){
form
.
on
(
'
submit(form)
'
,
function
(){
$
{
entity
.
code
}
Api
.
add$
{
upperFirst
(
entity
.
code
)}(
$
(
'
#addForm
'
),
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
});
form
.
on
(
'
submit(form)
'
,
function
(){
$
{
entity
.
code
}
Api
.
add$
{
upperFirst
(
entity
.
code
)}(
$
(
'
#addForm
'
),
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
});
});
});
...
...
admin-core/src/main/resources/codeTemplate/js/edit.js
View file @
37606d65
...
...
@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
},
initSubmit
:
function
(){
$
(
"
#updateButton
"
).
click
(
function
(){
form
.
on
(
'
submit(form)
'
,
function
(){
$
{
entity
.
code
}
Api
.
update$
{
upperFirst
(
entity
.
code
)}(
$
(
'
#updateForm
'
),
function
(
){
parent
.
window
.
dataReload
();
Common
.
info
(
"
更新成功
"
);
Lib
.
closeFrame
();
});
form
.
on
(
'
submit(form)
'
,
function
(){
$
{
entity
.
code
}
Api
.
update$
{
upperFirst
(
entity
.
code
)}(
$
(
'
#updateForm
'
),
function
(
parent
.
window
.
dataReload
();
Common
.
info
(
"
更新成功
"
);
Lib
.
closeFrame
();
});
});
});
$
(
"
#updateButton-cancel
"
).
click
(
function
(){
...
...
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