addRows.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div>
  3. <el-drawer
  4. title="可选订单行"
  5. :visible.sync="visible"
  6. size="65%"
  7. direction="rtl"
  8. :show-close="false"
  9. append-to-body
  10. @close="onClose(visible = false)">
  11. <div class="drawer__panel" style="margin-bottom: 0 !important;">
  12. <tableTemplate :checkbox="true" ref="rows" :param="orderRows.param" :layout="tablecols" height="calc(100vh - 295px)" :custom="true" :width="true" @selectionChange="rowsSelect">
  13. <template v-slot:customcol="scope">
  14. <!-- <div v-if="scope.column.columnname === 'amount'">
  15. </div>
  16. <div v-else-if="scope.column.columnname === 'intoaccountdate'">
  17. </div>-->
  18. <p>{{scope.column.data[scope.column.columnname]}}</p>
  19. </template>
  20. </tableTemplate>
  21. </div>
  22. </el-drawer>
  23. </div>
  24. </template>
  25. <script>
  26. import tableTemplate from '@/template/tableTemplate/index'
  27. export default {
  28. name: "addRows",
  29. components:{tableTemplate},
  30. data(){
  31. return {
  32. visible:false,
  33. tablecols:[],
  34. orderRows:{
  35. show:false,
  36. param:{
  37. "id": 20240319155104,
  38. "content": {
  39. "sa_orderid": "",
  40. "pageNumber": 1,
  41. "pageSize": 20,
  42. "where": {
  43. "condition": ""
  44. }
  45. }
  46. }
  47. },
  48. }
  49. },
  50. methods:{
  51. listData(){
  52. this.visible = true
  53. this.$refs.orderRows.listData()
  54. },
  55. rowsSelect(){},
  56. onClose(){
  57. }
  58. },
  59. created() {
  60. this.tablecols = this.tool.tabelCol(this.$route.name).orderRowTable.tablecols
  61. }
  62. }
  63. </script>
  64. <style scoped>
  65. </style>