mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 03:22:51 +08:00
修改curd生成单独的js
This commit is contained in:
10
app/admin/service/curd/templates/js/_common.code
Normal file
10
app/admin/service/curd/templates/js/_common.code
Normal file
@@ -0,0 +1,10 @@
|
||||
var init = {
|
||||
table_elem: '#currentTable',
|
||||
table_render_id: 'currentTableRenderId',
|
||||
index_url: '{{controllerUrl}}/index',
|
||||
add_url: '{{controllerUrl}}/add',
|
||||
edit_url: '{{controllerUrl}}/edit',
|
||||
delete_url: '{{controllerUrl}}/delete',
|
||||
export_url: '{{controllerUrl}}/export',
|
||||
modify_url: '{{controllerUrl}}/modify',
|
||||
};
|
||||
3
app/admin/service/curd/templates/js/add.code
Normal file
3
app/admin/service/curd/templates/js/add.code
Normal file
@@ -0,0 +1,3 @@
|
||||
$(function(){
|
||||
ua.listen();
|
||||
})
|
||||
3
app/admin/service/curd/templates/js/edit.code
Normal file
3
app/admin/service/curd/templates/js/edit.code
Normal file
@@ -0,0 +1,3 @@
|
||||
$(function(){
|
||||
ua.listen();
|
||||
})
|
||||
10
app/admin/service/curd/templates/js/index.code
Normal file
10
app/admin/service/curd/templates/js/index.code
Normal file
@@ -0,0 +1,10 @@
|
||||
$(function(){
|
||||
ua.table.render({
|
||||
init: init,
|
||||
cols: [[
|
||||
{{indexCols}}
|
||||
]],
|
||||
});
|
||||
|
||||
ua.listen();
|
||||
})
|
||||
Reference in New Issue
Block a user