recyclebin.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <el-card shadow="never" style="border:0;">
  3. <yun-table
  4. :columns='recyclebin_("init")'
  5. search="{$search}"
  6. ref="yuntable"
  7. :common-search="false"
  8. :extend="extend"
  9. toolbar="refresh,restore,destroy,restoreall,clear">
  10. <template #toolbar="{tool,selections}">
  11. <el-button v-if="tool=='restore'" type="success" @click.stop="recyclebin_('restore',selections)" :disabled="selections.length == 0"><i class="fa fa-rotate-left"></i>&nbsp;还原</el-button>
  12. <el-button v-if="tool=='destroy'" type="danger" @click.stop="recyclebin_('destroy',selections)" :disabled="selections.length == 0"><i class="fa fa-remove"></i>&nbsp;彻底删除</el-button>
  13. <el-button v-if="tool=='restoreall'" type="warning" @click.stop="recyclebin_('restoreall')"><i class="fa fa-rotate-left"></i>&nbsp;全部还原</el-button>
  14. <el-button v-if="tool=='clear'" type="danger" @click.stop="recyclebin_('clear')"><i class="fa fa-remove"></i>&nbsp;全部清空</el-button>
  15. </template>
  16. </yun-table>
  17. </el-card>
  18. </template>
  19. <script>
  20. import table from "@components/Table.js";
  21. export default{
  22. components:{
  23. 'YunTable':table
  24. },
  25. data:{
  26. extend:{
  27. index_url:Yunqi.config.url,
  28. recyclebin_url:'',
  29. }
  30. },
  31. onLoad:function (){
  32. this.extend.recyclebin_url = Yunqi.config.url.slice(0,Yunqi.config.url.indexOf('?'));
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style>
  39. </style>