Explorar el Código

🎨 按要求修改细节问题

快乐的梦鱼 hace 1 mes
padre
commit
274d263586

+ 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;
 }