mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 09:42:47 +08:00
新增tableData组件;完成商品标签示例;
This commit is contained in:
37
public/static/admin/js/mall/tag.js
Normal file
37
public/static/admin/js/mall/tag.js
Normal file
@@ -0,0 +1,37 @@
|
||||
define(["jquery", "easy-admin"], function ($, ea) {
|
||||
|
||||
var init = {
|
||||
table_elem: '#currentTable',
|
||||
table_render_id: 'currentTableRenderId',
|
||||
index_url: 'mall.tag/index',
|
||||
add_url: 'mall.tag/add',
|
||||
edit_url: 'mall.tag/edit',
|
||||
delete_url: 'mall.tag/delete',
|
||||
export_url: 'mall.tag/export',
|
||||
modify_url: 'mall.tag/modify',
|
||||
};
|
||||
|
||||
var Controller = {
|
||||
|
||||
index: function () {
|
||||
ea.table.render({
|
||||
init: init,
|
||||
cols: [[
|
||||
{type: 'checkbox'},
|
||||
{field: 'id', title: 'id'},
|
||||
{field: 'title', title: '名称'},
|
||||
{width: 250, title: '操作', templet: ea.table.tool},
|
||||
]],
|
||||
});
|
||||
|
||||
ea.listen();
|
||||
},
|
||||
add: function () {
|
||||
ea.listen();
|
||||
},
|
||||
edit: function () {
|
||||
ea.listen();
|
||||
},
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
Reference in New Issue
Block a user