heritage.vue 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <CommonListPage
  3. :title="'自然遗产'"
  4. :prevPage="{ title: '文化传承' }"
  5. :dropDownNames="[]"
  6. :showSearch="true"
  7. :pageSize="8"
  8. :load="loadData"
  9. :detailsParams="{ modelId: 17 }"
  10. />
  11. </template>
  12. <script setup lang="ts">
  13. import CommonContent, { GetContentListParams } from '@/api/CommonContent';
  14. async function loadData(
  15. page: number,
  16. pageSize: number,
  17. selectedTag: number,
  18. searchText: string,
  19. dropDownValues: number[]
  20. ) {
  21. const res = await CommonContent.getContentList(new GetContentListParams()
  22. .setKeywords(searchText)
  23. .setModelId(17)
  24. .setMainBodyColumnId(310)
  25. , page, pageSize);
  26. return {
  27. page: page,
  28. total: res.total,
  29. data: res.list.map((item, index) => {
  30. return {
  31. id: item.id,
  32. title: item.title,
  33. desc: item.desc,
  34. image: item.thumbnail || item.image,
  35. };
  36. }),
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>