delivery.vue 595 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <zTable :tableData="tableData" :columns="arr"></zTable>
  4. </view>
  5. </template>
  6. <script>
  7. import zTable from '@/components/z-table/z-table';
  8. export default{
  9. components:{
  10. zTable
  11. },
  12. data() {
  13. return{
  14. tableData:['key1', 'key2'],
  15. arr:[
  16. {
  17. "title": "title1",
  18. "key" :"0"
  19. },
  20. {
  21. "title": "title2",
  22. "key" :"1"
  23. }
  24. ]
  25. }
  26. },
  27. onLoad() {
  28. this.getTemplate();
  29. },
  30. methods:{
  31. async getTemplate(){
  32. let data = this.$api.request('');
  33. if (data) {
  34. }
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. </style>