_table.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <table class="table table-striped table-md table-hover" id="table">
  2. <thead>
  3. <tr>
  4. <th>
  5. 序号
  6. </th>
  7. <th>
  8. 货主
  9. </th>
  10. <th>
  11. 规则名称
  12. </th>
  13. <th>
  14. 设备类型
  15. </th>
  16. <th>
  17. 波次类型
  18. </th>
  19. <th>
  20. 操作
  21. </th>
  22. </tr>
  23. <template v-if="stationRuleBatches.length > 0">
  24. <tr v-for="(stationRuleBatch,i) in stationRuleBatches" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
  25. <td>
  26. @{{ i+1 }}
  27. </td>
  28. <td>
  29. @{{ stationRuleBatch.owner ? stationRuleBatch.owner.name : '' }}
  30. </td>
  31. <td>
  32. @{{ stationRuleBatch.name }}
  33. </td>
  34. <td>
  35. @{{ stationRuleBatch.station_type ? stationRuleBatch.station_type.name : ''}}
  36. </td>
  37. <td>
  38. @{{ stationRuleBatch.batch_type ? stationRuleBatch.batch_type :'无'}}
  39. </td>
  40. <td>
  41. @can('站管理-站规则-编辑')<button class="btn btn-sm btn-outline-primary" @click="editStationRuleBatch(stationRuleBatch,i)">编辑</button>@endcan
  42. @can('站管理-站规则-删除')<button class="btn btn-sm btn-outline-danger" @click="deleteStationRuleBatch(stationRuleBatch,i)">删除</button>@endcan
  43. </td>
  44. </tr>
  45. </template>
  46. </thead>
  47. </table>