12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <!-- 文化概况 - 相关政策 -->
- <CommonListPage
- :title="'相关政策'"
- :prevPage="{ title: '文化概况' }"
- :dropDownNames="[]"
- :pageSize="8"
- :load="loadData"
- :loadDetail="loadDetail"
- />
- </template>
- <script setup lang="ts">
- import { GetContentListParams } from '@/api/CommonContent';
- import PolicyContent from '@/api/introduction/PolicyContent';
- async function loadDetail(id: number, item: any) {
- return await PolicyContent.getContentDetail(id);
- }
- async function loadData(
- page: number,
- pageSize: number,
- selectedTag: number,
- searchText: string,
- dropDownValues: number[]
- ) {
- const res = await PolicyContent.getContentList(new GetContentListParams(), page, pageSize);
- return {
- page: page,
- total: res.total,
- data: res.list.map((item, index) => {
- return {
- id: item.id,
- title: item.title,
- desc: item.desc,
- image: item.image,
- };
- }),
- }
- }
- </script>
- <style>
- </style>
|