Commit 8fc8b236 authored by nick zheng's avatar nick zheng

feat(知识库): 增加类型字段

parent 01e68560
......@@ -182,6 +182,7 @@ common_module:
analysis: 'Analyze'
listing_applications: 'Launch application'
remove_applications: 'Takedown application'
type: 'type'
pagination_module:
page_no: 'Size'
......
......@@ -181,6 +181,7 @@ common_module:
analysis: '分析'
listing_applications: '上架应用'
remove_applications: '下架应用'
type: '类型'
pagination_module:
page_no: '条'
......
......@@ -181,6 +181,7 @@ common_module:
analysis: '分析'
listing_applications: '上架應用'
remove_applications: '下架應用'
type: '類型'
pagination_module:
page_no: '條'
......
......@@ -34,6 +34,23 @@ export function createKnowledgeColumn(
return row.desc || '--'
},
},
{
title: () => <span>{t('common_module.data_table_module.type')}</span>,
key: 'type',
align: 'left',
ellipsis: {
tooltip: true,
},
width: 170,
render(row: KnowledgeItem) {
const knowledgeTypeMap = {
Base: t('personal_space_module.knowledge_module.base_knowledge_type'),
QA: t('personal_space_module.knowledge_module.QA_knowledge_type'),
}
return knowledgeTypeMap?.[row.knowledgeType] || '--'
},
},
{
title: () => <span>{t('common_module.created_time')}</span>,
key: 'createdTime',
......
......@@ -182,6 +182,7 @@ declare namespace I18n {
analysis: string
listing_applications: string
remove_applications: string
type: string
}
pagination_module: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment