policy.vue 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <!-- 文化概况 - 相关政策 -->
  3. <CommonListPage
  4. :title="'相关政策'"
  5. :prevPage="{ title: '文化概况' }"
  6. :dropDownNames="[]"
  7. :pageSize="8"
  8. :load="loadData"
  9. :loadDetail="loadDetail"
  10. />
  11. </template>
  12. <script setup lang="ts">
  13. import { GetContentListParams } from '@/api/CommonContent';
  14. import PolicyContent from '@/api/introduction/PolicyContent';
  15. async function loadDetail(id: number, item: any) {
  16. return await PolicyContent.getContentDetail(id);
  17. }
  18. async function loadData(
  19. page: number,
  20. pageSize: number,
  21. selectedTag: number,
  22. searchText: string,
  23. dropDownValues: number[]
  24. ) {
  25. const res = await PolicyContent.getContentList(new GetContentListParams(), 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.image,
  35. };
  36. }),
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>