recyclebinjs.stub 1.1 KB

12345678910111213141516171819202122232425262728
  1. recyclebin: function () {
  2. // 初始化表格参数配置
  3. Table.init = {
  4. table_elem: '#currentTable',
  5. table_render_id: 'currentTable',
  6. restore_url: '{%controllerUrl%}/restore',
  7. destroy_url: '{%controllerUrl%}/destroy',
  8. multi_url: "{%controllerUrl%}/multi",
  9. };
  10. Table.render({
  11. init: Table.init,
  12. toolbar: ['refresh', 'restore', 'destroy'],
  13. url: '{%controllerUrl%}/recyclebin' + location.search,
  14. cols: [
  15. [
  16. { type: 'checkbox', fixed: 'left' },
  17. { field: 'id', width: 70, title: 'ID' },{%recyclebinTitleJs%}
  18. { field: '{%deleteTimeField%}', width: 160, title: '删除时间', search: 'range', templet: Table.formatter.datetime},
  19. { fixed: 'right', width: 140, title: '操作', templet: Table.formatter.tool,operat: ['restore','destroy']}
  20. ]
  21. ],
  22. page: {}
  23. });
  24. Table.api.bindevent();
  25. },