holland-list.vue 700 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <z-paging ref="paging" v-model="list" @query="handleQuery">
  3. <view class="p-30 fx-col gap-30">
  4. <holland-list-item v-for="item in list" :item="item"/>
  5. </view>
  6. </z-paging>
  7. </template>
  8. <script setup>
  9. import {ref} from 'vue'
  10. import {hollRecord} from "@/api/webApi/career-course";
  11. import HollandListItem from "@/pages/test-center/list/components/holland-list-item.vue";
  12. const list = ref([])
  13. const paging = ref(null)
  14. const handleQuery = (pageNum, pageSize) => {
  15. hollRecord({pageNum, pageSize})
  16. .then(res => paging.value.completeByTotal(res.rows, res.total))
  17. .catch(e => paging.value.complete(false))
  18. }
  19. </script>
  20. <style scoped>
  21. </style>