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
321361c9
Commit
321361c9
authored
Feb 21, 2018
by
xiandafu
Browse files
init
parent
2971e3f1
Changes
449
Show whitespace changes
Inline
Side-by-side
admin-console/src/main/resources/sql/console/menu.md
0 → 100644
View file @
321361c9
queryByCondtion
===============
*
根据条件查询
select
@pageTag(){
m.*,f.NAME function_name,f.ACCESS_URL ,
p.name parent_menu_name
@}
from core_menu m left join core_function f on m.FUNCTION_ID=f.id left join core_MENU p on m.parent_menu_id = p.id
where 1=1
@if(!isEmpty(url)){
and f.access_url like #'%'+url+"%"#
@}
@if(!isEmpty(code)){
and m.code like #'%'+code+"%"#
@}
@if(!isEmpty(name)){
and m.name like #'%'+name+"%"#
@}
admin-console/src/main/resources/sql/console/org.md
0 → 100644
View file @
321361c9
batchDelByIds
===
update core_org set u.del_flag = 1 where u.id in( #join(ids)#);
queryByCondtion
===
select
@pageTag(){
o.
*
@}
from core_org o where 1=1 and del_flag = 0
@ //数据权限,组织机构对应的对应的字段
and #function("org.query",{org:"id"})#
@if(!isEmpty(code)){
and o.code like #"%"+code+"%"#
@}
@if(!isEmpty(name)){
and o.name like #"%"+name+"%"#
@}
@if(!isEmpty(type)){
and o.type = #type#
@}
@if(!isEmpty(parentOrgId)){
and o.parent_org_id = #parentOrgId#
@}
admin-console/src/main/resources/sql/console/role.md
0 → 100644
View file @
321361c9
queryByCondtion
===
select
@pageTag(){
r.
*
@}
from core_ROLE r where 1=1
@if(!isEmpty(code)){
and r.code like #"%"+code+"%"#
@}
@if(!isEmpty(name)){
and r.name like #"%"+name+"%"#
@}
@if(!isEmpty(type)){
and r.type = #type#
@}
@pageIgnoreTag(){
order by id desc
@}
queryUser
===
select
@pageTag(){
u.
*
,ur.ORG_ID org_id_1
@}
from core_user u,core_user_role ur,core_role r
where r.ID = ur.ROLE_ID and ur.USER_ID=u.ID
and u.DEL_FLAG=0
and r.id=#roleId#
@if(!isEmpty(userCode)){
and u.code like #"%"+userCode+"%"#
@}
@if(!isEmpty(userName)){
and u.name like #"%"+userName+"%"#
@}
@pageIgnoreTag(){
order by u.id desc
@}
batchDelByIds
===
*
批量删除角色,同时也参考batchDeleteRoleFunction,batchDeleteRoleMenu等方法删除其他关联数据
delete from core_ROLE where id in( #join(ids)#);
batchDeleteRoleFunction
===
delete from core_role_function where role_id in( #join(ids)#);
batchDeleteRoleMenu
===
delete from core_role_menu where role_id in( #join(ids)#);
batchDeleteUserRole
===
delete from core_user_role where role_id in( #join(ids)#);
queryAllByDelflag
=================
select
*
from core_ROLE r where r.del_flag = #delFlag#
admin-console/src/main/resources/sql/console/roleFunction.md
0 → 100644
View file @
321361c9
deleteRoleFunction
===
*
删除所有的功能的角色配置
delete from core_ROLE_FUNCTION where function_id in ( #join(ids)# )
getFunctionIdByRole
===
*
获得角色对应的功能id
select function_id from core_ROLE_FUNCTION where role_id=#roleId#
getQueryFunctionAndRoleData
===
*
获得所有查询功能,并查询角色对应的功能信息。
select f.
*
,r.data_access_type from core_ROLE_FUNCTION r left join core_FUNCTION f on r.function_id=f.id where r.role_id=#roleId# and f.type='FN1'
\ No newline at end of file
admin-console/src/main/resources/sql/console/user.md
0 → 100644
View file @
321361c9
queryByCondtion
===
select
@pageTag(){
u.
*
,o.name org_name
@}
from core_USER u left join core_ORG o on u.org_id=o.id where 1=1 and u.del_flag = 0
@//数据权限,该sql语句功能点
and #function("user.query")#
@if(!isEmpty(orgId)){
and u.org_id =#orgId#
@}
@if(!isEmpty(orgId)){
and u.org_id =#orgId#
@}
@if(!isEmpty(code)){
and u.code like #"%"+code+"%"#
@}
@if(!isEmpty(name)){
and u.name like #"%"+name+"%"#
@}
@if(!isEmpty(state)){
and u.state = #state#
@}
@if(!isEmpty(jobType0)){
and u.job_type0= #jobType0#
@}
@if(!isEmpty(jobType1)){
and u.job_type1= #jobType1#
@}
@if(!isEmpty(createDateMin)){
and u.create_time>= #createDateMin#
@}
@if(!isEmpty(createDateMax)){
and u.create_time< #nextDay(createDateMax)#
@}
batchDelUserByIds
===
update core_USER u set u.del_flag = 1 where u.id in( #join(ids)#)
batchUpdateUserState
===
update core_USER u set u.state = #state# where u.id in( #join(ids)#)
queryUserRole
===
*
查询用户所有权限
select
ur.*, u.code as user_code,
u.name as user_name,
org.name as org_name, role.name as role_name
from core_USER_ROLE ur
left join core_ORG org on org.id = ur.org_id
left join core_user u on u.id = ur.user_id
left join core_role role on role.id = ur.role_id
where u.id=#id#
@if(isNotEmpty(orgId)){
and org.id=#orgId#
@}
@if(isNotEmpty(roleId)){
and role.id=#roleId#
@}
admin-console/src/main/resources/static/js/admin/audit/index.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laydate
=
layui
.
laydate
;
var
table
=
layui
.
table
;
var
auditTable
=
null
;
var
view
=
{
init
:
function
(){
this
.
initTable
();
this
.
initSearchForm
();
window
.
dataReload
=
function
(){
Lib
.
doSearchForm
(
$
(
"
#auditSearchForm
"
),
auditTable
,
form
)
}
},
initTable
:
function
(){
auditTable
=
table
.
render
({
elem
:
'
#auditTable
'
,
height
:
'
full-180
'
,
method
:
'
post
'
,
url
:
Common
.
CTX
+
'
/admin/audit/list.json
'
//数据接口
,
page
:
{
"
layout
"
:[
'
count
'
,
'
prev
'
,
'
page
'
,
'
next
'
]}
//开启分页
,
limit
:
10
,
cols
:
[
[
//表头
{
type
:
'
checkbox
'
,
fixed
:
'
left
'
,
},
{
field
:
'
id
'
,
title
:
'
id
'
,
width
:
80
,
fixed
:
'
left
'
,
sort
:
true
},{
field
:
'
userName
'
,
title
:
'
用户名
'
,
width
:
120
},{
field
:
'
ip
'
,
title
:
'
访问IP
'
,
width
:
150
},{
field
:
'
functionName
'
,
title
:
'
类型名称
'
,
width
:
120
,
sort
:
true
},
{
field
:
'
functionCode
'
,
title
:
'
类型代号
'
,
width
:
120
,
sort
:
true
},
{
field
:
'
message
'
,
title
:
'
消息
'
,
width
:
150
},
{
field
:
'
success
'
,
title
:
'
访问状态
'
,
width
:
120
,
templet
:
function
(
d
){
return
d
.
success
==
1
?
'
成功
'
:
'
失败
'
;
},
sort
:
true
},
{
field
:
'
createTime
'
,
title
:
'
创建时间
'
,
width
:
180
,
templet
:
function
(
d
){
return
Common
.
getDate
(
d
.
createTime
,
'
yyyy-MM-dd HH:mm:ss
'
);
},
sort
:
true
}
]
]
});
},
initSearchForm
:
function
(){
Lib
.
initSearchForm
(
$
(
"
#auditSearchForm
"
),
auditTable
,
form
);
}
}
exports
(
'
index
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/blog/add.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
blogApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
blogApi
=
layui
.
blogApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#addForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#addButton
"
).
click
(
function
(){
blogApi
.
addBlog
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#addButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
add
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/blog/blogApi.js
0 → 100644
View file @
321361c9
/*访问后台的代码*/
layui
.
define
([],
function
(
exports
)
{
var
api
=
{
updateBlog
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#updateForm
'
),{},
callback
)
},
addBlog
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#addForm
'
),{},
callback
)
},
del
:
function
(
ids
,
callback
){
Common
.
post
(
"
/admin/blog/delete.json
"
,{
"
ids
"
:
ids
},
function
(){
callback
();
})
}
};
exports
(
'
blogApi
'
,
api
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/blog/del.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
table
'
,
'
blogApi
'
],
function
(
exports
)
{
var
blogApi
=
layui
.
blogApi
;
var
table
=
layui
.
table
;
var
view
=
{
init
:
function
(){
},
delBatch
:
function
(){
var
data
=
Common
.
getMoreDataFromTable
(
table
,
"
blogTable
"
);
if
(
data
==
null
){
return
;
}
Common
.
openConfirm
(
"
确认要删除这些CmsBlog?
"
,
function
(){
var
ids
=
Common
.
concatBatchId
(
data
);
blogApi
.
del
(
ids
,
function
(){
Common
.
info
(
"
删除成功
"
);
dataReload
();
})
})
}
}
exports
(
'
del
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/blog/edit.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
blogApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
blogApi
=
layui
.
blogApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#updateForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#updateButton
"
).
click
(
function
(){
blogApi
.
updateBlog
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
更新成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#updateButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
edit
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/blog/index.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laydate
=
layui
.
laydate
;
var
table
=
layui
.
table
;
var
blogTable
=
null
;
var
view
=
{
init
:
function
(){
this
.
initTable
();
this
.
initSearchForm
();
this
.
initToolBar
();
window
.
dataReload
=
function
(){
Lib
.
doSearchForm
(
$
(
"
#searchForm
"
),
roleTable
,
form
)
}
},
initTable
:
function
(){
blogTable
=
table
.
render
({
elem
:
'
#blogTable
'
,
height
:
Lib
.
getTableHeight
(
1
),
method
:
'
post
'
,
url
:
Common
.
CTX
+
'
/admin/blog/list.json
'
//数据接口
,
page
:
Lib
.
tablePage
//开启分页
,
limit
:
10
,
cols
:
[
[
//表头
{
type
:
'
checkbox
'
,
fixed
:
'
left
'
,
},
{
field
:
'
id
'
,
title
:
'
id
'
,
fixed
:
'
left
'
,
width
:
100
,
},
{
field
:
'
title
'
,
title
:
'
title
'
,
width
:
100
,
},
{
field
:
'
content
'
,
title
:
'
content
'
,
width
:
100
,
},
{
field
:
'
createTime
'
,
title
:
'
createTime
'
,
width
:
100
,
},
{
field
:
'
createUserId
'
,
title
:
'
createUserId
'
,
width
:
100
,
},
{
field
:
'
type
'
,
title
:
'
type
'
,
width
:
100
,
}
]
]
});
},
initSearchForm
:
function
(){
Lib
.
initSearchForm
(
$
(
"
#searchForm
"
),
blogTable
,
form
);
},
initToolBar
:
function
(){
toolbar
=
{
add
:
function
()
{
//获取选中数据
var
url
=
"
/admin/blog/add.do
"
;
Common
.
openDlg
(
url
,
"
CmsBlog管理>新增
"
);
},
edit
:
function
()
{
//获取选中数目
var
data
=
Common
.
getOneFromTable
(
table
,
"
blogTable
"
);
if
(
data
==
null
){
return
;
}
var
url
=
"
/admin/blog/edit.do?id=
"
+
data
.
id
;
Common
.
openDlg
(
url
,
"
CmsBlog管理>
"
+
data
.
CmsBlog
+
"
>编辑
"
);
},
del
:
function
()
{
layui
.
use
([
'
del
'
],
function
(){
var
delView
=
layui
.
del
delView
.
delBatch
();
});
}
};
$
(
'
.ext-toolbar
'
).
on
(
'
click
'
,
function
()
{
var
type
=
$
(
this
).
data
(
'
type
'
);
toolbar
[
type
]
?
toolbar
[
type
].
call
(
this
)
:
''
;
});
}
}
exports
(
'
index
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/cmsBlog/add.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
cmsBlogApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
cmsBlogApi
=
layui
.
cmsBlogApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#addForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#addButton
"
).
click
(
function
(){
cmsBlogApi
.
addCmsBlog
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#addButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
add
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/cmsBlog/cmsBlogApi.js
0 → 100644
View file @
321361c9
/*访问后台的代码*/
layui
.
define
([],
function
(
exports
)
{
var
api
=
{
updateCmsBlog
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#updateForm
'
),{},
callback
)
},
addCmsBlog
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#addForm
'
),{},
callback
)
},
del
:
function
(
ids
,
callback
){
Common
.
post
(
"
/admin/cmsBlog/delete.json
"
,{
"
ids
"
:
ids
},
function
(){
callback
();
})
}
};
exports
(
'
cmsBlogApi
'
,
api
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/cmsBlog/del.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
table
'
,
'
cmsBlogApi
'
],
function
(
exports
)
{
var
cmsBlogApi
=
layui
.
cmsBlogApi
;
var
table
=
layui
.
table
;
var
view
=
{
init
:
function
(){
},
delBatch
:
function
(){
var
data
=
Common
.
getMoreDataFromTable
(
table
,
"
cmsBlogTable
"
);
if
(
data
==
null
){
return
;
}
Common
.
openConfirm
(
"
确认要删除这些CmsBlog?
"
,
function
(){
var
ids
=
Common
.
concatBatchId
(
data
);
cmsBlogApi
.
del
(
ids
,
function
(){
Common
.
info
(
"
删除成功
"
);
dataReload
();
})
})
}
}
exports
(
'
del
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/cmsBlog/edit.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
cmsBlogApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
cmsBlogApi
=
layui
.
cmsBlogApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#updateForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#updateButton
"
).
click
(
function
(){
cmsBlogApi
.
updateCmsBlog
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
更新成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#updateButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
edit
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/cmsBlog/index.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laydate
=
layui
.
laydate
;
var
table
=
layui
.
table
;
var
cmsBlogTable
=
null
;
var
view
=
{
init
:
function
(){
this
.
initTable
();
this
.
initSearchForm
();
this
.
initToolBar
();
window
.
dataReload
=
function
(){
Lib
.
doSearchForm
(
$
(
"
#searchForm
"
),
roleTable
,
form
)
}
},
initTable
:
function
(){
cmsBlogTable
=
table
.
render
({
elem
:
'
#cmsBlogTable
'
,
height
:
Lib
.
getTableHeight
(
1
),
method
:
'
post
'
,
url
:
Common
.
CTX
+
'
/admin/cmsBlog/list.json
'
//数据接口
,
page
:
Lib
.
tablePage
//开启分页
,
limit
:
10
,
cols
:
[
[
//表头
{
type
:
'
checkbox
'
,
fixed
:
'
left
'
,
},
{
field
:
'
id
'
,
title
:
'
id
'
,
fixed
:
'
left
'
,
width
:
100
,
},
{
field
:
'
title
'
,
title
:
'
title
'
,
width
:
100
,
},
{
field
:
'
content
'
,
title
:
'
content
'
,
width
:
100
,
},
{
field
:
'
createTime
'
,
title
:
'
createTime
'
,
width
:
100
,
},
{
field
:
'
createUserId
'
,
title
:
'
createUserId
'
,
width
:
100
,
},
{
field
:
'
type
'
,
title
:
'
type
'
,
width
:
100
,
}
]
]
});
},
initSearchForm
:
function
(){
Lib
.
initSearchForm
(
$
(
"
#searchForm
"
),
cmsBlogTable
,
form
);
},
initToolBar
:
function
(){
toolbar
=
{
add
:
function
()
{
//获取选中数据
var
url
=
"
/admin/cmsBlog/add.do
"
;
Common
.
openDlg
(
url
,
"
CmsBlog管理>新增
"
);
},
edit
:
function
()
{
//获取选中数目
var
data
=
Common
.
getOneFromTable
(
table
,
"
cmsBlogTable
"
);
if
(
data
==
null
){
return
;
}
var
url
=
"
/admin/cmsBlog/edit.do?id=
"
+
data
.
id
;
Common
.
openDlg
(
url
,
"
CmsBlog管理>
"
+
data
.
CmsBlog
+
"
>编辑
"
);
},
del
:
function
()
{
layui
.
use
([
'
del
'
],
function
(){
var
delView
=
layui
.
del
delView
.
delBatch
();
});
}
};
$
(
'
.ext-toolbar
'
).
on
(
'
click
'
,
function
()
{
var
type
=
$
(
this
).
data
(
'
type
'
);
toolbar
[
type
]
?
toolbar
[
type
].
call
(
this
)
:
''
;
});
}
}
exports
(
'
index
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/console/add.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
consoleApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
consoleApi
=
layui
.
consoleApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#addForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#addButton
"
).
click
(
function
(){
consoleApi
.
addConsole
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#addButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
add
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/console/consoleApi.js
0 → 100644
View file @
321361c9
/*访问后台的代码*/
layui
.
define
([],
function
(
exports
)
{
var
api
=
{
updateConsole
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#updateForm
'
),{},
callback
)
},
addConsole
:
function
(
callback
){
Lib
.
submitForm
(
$
(
'
#addForm
'
),{},
callback
)
},
del
:
function
(
ids
,
callback
){
Common
.
post
(
"
/admin/console/delete.json
"
,{
"
ids
"
:
ids
},
function
(){
callback
();
})
}
};
exports
(
'
consoleApi
'
,
api
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/console/del.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
table
'
,
'
consoleApi
'
],
function
(
exports
)
{
var
consoleApi
=
layui
.
consoleApi
;
var
table
=
layui
.
table
;
var
view
=
{
init
:
function
(){
},
delBatch
:
function
(){
var
data
=
Common
.
getMoreDataFromTable
(
table
,
"
consoleTable
"
);
if
(
data
==
null
){
return
;
}
Common
.
openConfirm
(
"
确认要删除这些CmsBlog?
"
,
function
(){
var
ids
=
Common
.
concatBatchId
(
data
);
consoleApi
.
del
(
ids
,
function
(){
Common
.
info
(
"
删除成功
"
);
dataReload
();
})
})
}
}
exports
(
'
del
'
,
view
);
});
\ No newline at end of file
admin-console/src/main/resources/static/js/admin/console/edit.js
0 → 100644
View file @
321361c9
layui
.
define
([
'
form
'
,
'
laydate
'
,
'
table
'
,
'
consoleApi
'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
consoleApi
=
layui
.
consoleApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"
#updateForm
"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"
#updateButton
"
).
click
(
function
(){
consoleApi
.
updateConsole
(
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"
更新成功
"
);
Lib
.
closeFrame
();
});
});
$
(
"
#updateButton-cancel
"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'
edit
'
,
view
);
});
\ No newline at end of file
Prev
1
2
3
4
5
6
7
8
…
23
Next
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