| | |
| | | <ProductCard |
| | | v-for="(item, index) in list" |
| | | :key="index" |
| | | :data="item" |
| | | :data="{ |
| | | deviceModel: item.deviceModel, |
| | | model: item.model, |
| | | totalAmount: item.totalLength, |
| | | amount: item.length, |
| | | unAmount: item.unLength, |
| | | }" |
| | | @click="toDetail(item.id, item.type)" |
| | | /> |
| | | </z-paging> |
| | |
| | | import ProductCard from "@/components/product_card/index.vue"; |
| | | import { useUserStore } from "@/store/modules/user"; |
| | | import zPaging from "@/components/z-paging/z-paging.vue"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const userInfo: any = computed(() => userStore.userInfo); |
| | | const pagingRef = ref(); |
| | | const props = defineProps({ |
| | | api: { |
| | |
| | | }; |
| | | |
| | | const getList = async (pageNo: number, pageSize: number) => { |
| | | const userStore = useUserStore(); |
| | | const userInfo: any = computed(() => userStore.userInfo); |
| | | const { code, data } = await props.api({ |
| | | userName: userInfo.value.user?.userName, |
| | | userName: userInfo.value.userName, |
| | | state: props.state, |
| | | current: pageNo, |
| | | size: pageSize, |