view-index.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <el-card shadow="never">
  3. <#if table#>
  4. <yun-table
  5. :columns="columns"
  6. <#if !reduced#>
  7. ref="yuntable"
  8. @render="onTableRender"
  9. <#endif#>
  10. <#if search#>
  11. search="nickname,mobile"
  12. <#endif#>
  13. <#if !commonSearch#>
  14. :common-search="false"
  15. <#endif#>
  16. <#if !pagination#>
  17. :pagination="false"
  18. <#endif#>
  19. <#if tabs#>
  20. tabs="<#tabs#>"
  21. <#endif#>
  22. <#if isTree#>
  23. :is-tree="true"
  24. :tree-expand-all="true"
  25. <#endif#>
  26. <#if summary#>
  27. :show-summary="true"
  28. <#endif#>
  29. <#if weigh#>
  30. sort-name="weigh,id"
  31. order="desc,desc"
  32. <#endif#>
  33. toolbar="<#toolbarStr#>"
  34. :auth="{
  35. <#if in_array('add',toolbar)#>
  36. add:{:$auth->check('<#controller#>','add')},
  37. <#endif#>
  38. <#if in_array('edit',toolbar)#>
  39. edit:{:$auth->check('<#controller#>','edit')},
  40. <#endif#>
  41. <#if in_array('del',toolbar)#>
  42. del:{:$auth->check('<#controller#>','del')},
  43. <#endif#>
  44. multi:{:$auth->check('<#controller#>','multi')},
  45. <#if in_array('import',toolbar)#>
  46. import:{:$auth->check('<#controller#>','import')},
  47. <#endif#>
  48. <#if in_array('download',toolbar)#>
  49. download:{:$auth->check('<#controller#>','download')},
  50. <#endif#>
  51. <#if in_array('recyclebin',toolbar)#>
  52. recyclebin:{:$auth->check('<#controller#>','recyclebin')},
  53. <#endif#>
  54. }"
  55. :extend="extend">
  56. <#if expand#>
  57. <template #expand="{rows}">
  58. <span>扩展内容</span>
  59. </template>
  60. <#endif#>
  61. <#if slot#>
  62. <#slot#>
  63. <#endif#>
  64. </yun-table>
  65. <#endif#>
  66. <#if !table#>
  67. <#title#>
  68. <#endif#>
  69. </el-card>
  70. </template>
  71. <script>
  72. <#js#>
  73. </script>
  74. <style>
  75. </style>