index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <el-card shadow="never">
  3. <yun-table
  4. :columns="columns"
  5. search="name,phone"
  6. toolbar="refresh,add,edit,del,more"
  7. ref="yuntable"
  8. :auth="auth"
  9. :extend="extend">
  10. </yun-table>
  11. </el-card>
  12. </template>
  13. <script>
  14. import table from "@components/Table.js";
  15. export default{
  16. components:{'YunTable':table},
  17. data:{
  18. auth:{
  19. recyclebin:Yunqi.auth.check('app\\admin\\controller\\shop\\ShopList','recyclebin'),
  20. },
  21. extend:{
  22. index_url: 'shop/shop_delivery/index',
  23. recyclebin_url: 'shop/shop_delivery/recyclebin',
  24. },
  25. columns:[
  26. {checkbox: true},
  27. {field: 'id',title: __('ID'),width:80,sortable: true},
  28. {field: 'customer_id',title: __('客户'),operate:'LIKE'},
  29. {field: 'type_id',title: __('平台'),operate: '=', searchList: Yunqi.data.platformList},
  30. {field: 'type_box', title: __('店铺名称'),operate: 'LIKE'},
  31. {field: 'num', title: __('员工'),searchList: {1: __('日结'), 2: __('周结'), 3: __('半月结')}},
  32. {field: 'status', title: __('状态'),width:120,searchList: {1: __('正常'),2: __('停用')},formatter:Yunqi.formatter.switch},
  33. {field: 'create_time', title: __('创建时间'), width:160,formatter: Yunqi.formatter.datetime,operate:false,sortable: true},
  34. {
  35. field: 'operate',
  36. title: __('操作'),
  37. width:150,
  38. action:{sort:true,edit:true,del:true}
  39. }
  40. ]
  41. },
  42. methods: {
  43. }
  44. }
  45. </script>
  46. <style>
  47. </style>