<template>
    <z-paging ref="paging" v-model="list" @query="handleQuery">
        <view class="p-30 fx-col gap-30">
            <holland-list-item v-for="item in list" :item="item"/>
        </view>
    </z-paging>
</template>

<script setup>
import {ref} from 'vue'
import {hollRecord} from "@/api/webApi/career-course";
import HollandListItem from "@/pages/test-center/list/components/holland-list-item.vue";

const list = ref([])
const paging = ref(null)

const handleQuery = (pageNum, pageSize) => {
    hollRecord({pageNum, pageSize})
        .then(res => paging.value.completeByTotal(res.rows, res.total))
        .catch(e => paging.value.complete(false))
}
</script>

<style scoped>

</style>