|
@@ -1,47 +0,0 @@
|
|
|
-<template>
|
|
|
|
|
- <CommonListPage
|
|
|
|
|
- title="重要相关老字号"
|
|
|
|
|
- itemType="article-common"
|
|
|
|
|
- detailsPage="/pages/article/data/details?pageConfigName=intangible-details"
|
|
|
|
|
- :showTotal="false"
|
|
|
|
|
- :dropDownNames="dropdownNames"
|
|
|
|
|
- :detailsParams="{
|
|
|
|
|
- mainBodyColumnId: 312,
|
|
|
|
|
- modelId: 17,
|
|
|
|
|
- }"
|
|
|
|
|
- :load="loadData"
|
|
|
|
|
- />
|
|
|
|
|
-</template>
|
|
|
|
|
-
|
|
|
|
|
-<script setup lang="ts">
|
|
|
|
|
-import CommonContent, { GetContentListParams } from '@/api/CommonContent';
|
|
|
|
|
-import CommonListPage, { type DropDownNames } from '@/pages/article/common/CommonListPage.vue';
|
|
|
|
|
-import { onMounted, ref } from 'vue';
|
|
|
|
|
-
|
|
|
|
|
-const dropdownNames = ref<DropDownNames[]>([]);
|
|
|
|
|
-
|
|
|
|
|
-async function loadData(
|
|
|
|
|
- page: number,
|
|
|
|
|
- pageSize: number,
|
|
|
|
|
- searchText: string,
|
|
|
|
|
- dropDownValues: number[]
|
|
|
|
|
-) {
|
|
|
|
|
- const res = (await CommonContent.getContentList(new GetContentListParams()
|
|
|
|
|
- .setModelId(17)
|
|
|
|
|
- .setMainBodyColumnId(312)
|
|
|
|
|
- .setKeywords(searchText)
|
|
|
|
|
- , page, pageSize));
|
|
|
|
|
- res.list.forEach((p) => {
|
|
|
|
|
- p.desc = p.title + (p.desc ? '\n' + p.desc : '');
|
|
|
|
|
- p.title = `${p.fontName || ''}`;
|
|
|
|
|
- p.bottomTags = p.brandType;
|
|
|
|
|
- })
|
|
|
|
|
- console.log(res.list);
|
|
|
|
|
-
|
|
|
|
|
- return res;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-onMounted(async () => {
|
|
|
|
|
-
|
|
|
|
|
-})
|
|
|
|
|
-</script>
|
|
|