list.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <CommonListPage
  3. title="重要相关老字号"
  4. itemType="article-common"
  5. detailsPage="/pages/inhert/intangible/details"
  6. :showTotal="false"
  7. :dropDownNames="dropdownNames"
  8. :detailsParams="{
  9. mainBodyColumnId: 312,
  10. modelId: 17,
  11. }"
  12. :load="loadData"
  13. />
  14. </template>
  15. <script setup lang="ts">
  16. import CommonContent, { GetContentListParams } from '@/api/CommonContent';
  17. import CommonListPage, { type DropDownNames } from '@/pages/article/common/CommonListPage.vue';
  18. import { onMounted, ref } from 'vue';
  19. const dropdownNames = ref<DropDownNames[]>([]);
  20. async function loadData(
  21. page: number,
  22. pageSize: number,
  23. searchText: string,
  24. dropDownValues: number[]
  25. ) {
  26. const res = (await CommonContent.getContentList(new GetContentListParams()
  27. .setModelId(17)
  28. .setMainBodyColumnId(312)
  29. .setKeywords(searchText)
  30. .setSelfValues({
  31. })
  32. , page, pageSize));
  33. res.list.forEach((p) => {
  34. p.titlePrefix = `字号名称: ${p.fontName || ''}`;
  35. p.bottomTags = p.brandType;
  36. })
  37. return res;
  38. }
  39. onMounted(async () => {
  40. })
  41. </script>