1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <!-- 传播交流 - 台港澳地区文化交流 -->
- <CommonListPage
- :title="'港澳台地区文化交流'"
- :prevPage="{ title: '传播交流' }"
- :dropDownNames="[]"
- :pageSize="8"
- :load="loadData"
- :loadDetail="loadDetail"
- />
- </template>
- <script setup lang="ts">
- import { GetContentListParams } from '@/api/CommonContent';
- import CommunicateContent from '@/api/communicate/CommunicateContent';
- async function loadDetail(id: number, item: any) {
- const res = await CommunicateContent.getContentDetail(id);
- res.content = res.content || res.intro as string;
- res.addItems = [
- ];
- return res;
- }
- async function loadData(
- page: number,
- pageSize: number,
- selectedTag: number,
- searchText: string,
- dropDownValues: number[]
- ) {
- const res = await CommunicateContent.getContentList(new GetContentListParams().setSelfValues({
- mainBodyColumnId: 261
- }), 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,
- addItems: [
- ],
- };
- }),
- }
- }
- </script>
- <style>
- </style>
|