No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.stub 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {extend name="index_layout"/}
  2. {block name="main"}
  3. <div class="layui-card">
  4. <div class="layui-card-header">{%tableComment%}</div>
  5. <div class="layui-card-body">
  6. <div class="layui-form">
  7. <table class="layui-hide" id="currentTable" lay-filter="currentTable"
  8. data-auth-add="{:$auth->check('{%controllerUrl%}/add')}"
  9. data-auth-edit="{:$auth->check('{%controllerUrl%}/edit')}"
  10. data-auth-delete="{:$auth->check('{%controllerUrl%}/del')}"
  11. data-auth-recyclebin="{:$auth->check('{%controllerUrl%}/recyclebin')}"
  12. ></table>
  13. </div>
  14. </div>
  15. </div>
  16. {/block}
  17. {block name="script"}
  18. <script type="text/javascript">
  19. layui.use('yznTable', function() {
  20. var table = layui.yznTable;
  21. var init = {
  22. table_elem: '#currentTable',
  23. table_render_id: 'currentTable',
  24. add_url: '{:url("add")}',
  25. edit_url: '{:url("edit")}',
  26. delete_url: '{:url("del")}',
  27. modify_url: "{:url('multi')}",
  28. recyclebin_url: "{:url('recyclebin')}",
  29. };
  30. table.render({
  31. init: init,
  32. toolbar: ['refresh', 'add', 'delete'{%recyclebinHtml%}],
  33. url: '{:url("index")}',
  34. cols: [
  35. [
  36. {%javascriptList%}
  37. ]
  38. ],
  39. page: {}
  40. });
  41. yznTable.bindevent();
  42. });
  43. </script>
  44. {/block}