소스 검색

🎨 按要求修改细节问题

快乐的梦鱼 1 개월 전
부모
커밋
274d263586
3개의 변경된 파일11개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 0
      src/api/CommonContent.ts
  2. 8 0
      src/pages/inhert/intangible/DetailsCommon.vue
  3. 2 6
      src/pages/inhert/old/list.vue

+ 1 - 0
src/api/CommonContent.ts

@@ -174,6 +174,7 @@ export class GetContentListItem extends DataModel<GetContentListItem> {
       flag: { clientSide: 'splitCommaArray', serverSide: 'commaArrayMerge' },
       tags: { clientSide: 'splitCommaArray', serverSide: 'commaArrayMerge' },
       keywords: { clientSide: 'splitCommaArray', serverSide: 'commaArrayMerge' },
+      brandType: { clientSide: 'splitCommaArray', serverSide: 'commaArrayMerge' },
       type: { clientSide: 'number', serverSide: 'number' },
     };
     this._convertKeyType = (key, direction) => {

+ 8 - 0
src/pages/inhert/intangible/DetailsCommon.vue

@@ -171,6 +171,14 @@
               label: '其他级别保护单位',
               value: content.otherLevel && content.otherLevel.length > 0 ? `${content.otherLevel.length}个` : ''
             },
+            {
+              label: '字号名称',
+              value: content.fontName,
+            },
+            {
+              label: '认定类型',
+              value: content.brandType,
+            },
           ]"
         />
         <!-- 同级别非遗项目显示 -->

+ 2 - 6
src/pages/inhert/old/list.vue

@@ -35,12 +35,8 @@ async function loadData(
     })
   , page, pageSize));
   res.list.forEach((p) => {
-    p.desc = `认定类型: ${p.brandType || ''}\n 字号名称: ${p.fontName || ''}`;
-    p.bottomTags = [
-      p.levelText, 
-      p.batchText,
-      p.ichTypeText,
-    ];
+    //p.desc = `字号名称: ${p.fontName || ''}`;
+    p.bottomTags = p.brandType;
   })
   return res;
 }