Commit 1bd220e0 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

Beta

See merge request !202
parents 27112b70 5f6145b6
...@@ -182,6 +182,7 @@ common_module: ...@@ -182,6 +182,7 @@ common_module:
analysis: 'Analyze' analysis: 'Analyze'
listing_applications: 'Launch application' listing_applications: 'Launch application'
remove_applications: 'Takedown application' remove_applications: 'Takedown application'
type: 'type'
pagination_module: pagination_module:
page_no: 'Size' page_no: 'Size'
......
...@@ -181,6 +181,7 @@ common_module: ...@@ -181,6 +181,7 @@ common_module:
analysis: '分析' analysis: '分析'
listing_applications: '上架应用' listing_applications: '上架应用'
remove_applications: '下架应用' remove_applications: '下架应用'
type: '类型'
pagination_module: pagination_module:
page_no: '条' page_no: '条'
......
...@@ -181,6 +181,7 @@ common_module: ...@@ -181,6 +181,7 @@ common_module:
analysis: '分析' analysis: '分析'
listing_applications: '上架應用' listing_applications: '上架應用'
remove_applications: '下架應用' remove_applications: '下架應用'
type: '類型'
pagination_module: pagination_module:
page_no: '條' page_no: '條'
......
...@@ -34,6 +34,23 @@ export function createKnowledgeColumn( ...@@ -34,6 +34,23 @@ export function createKnowledgeColumn(
return row.desc || '--' 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>, title: () => <span>{t('common_module.created_time')}</span>,
key: 'createdTime', key: 'createdTime',
......
...@@ -83,7 +83,8 @@ function handleAddKnowledgeChunk() { ...@@ -83,7 +83,8 @@ function handleAddKnowledgeChunk() {
v-model:is-show="isShow" v-model:is-show="isShow"
:title="t('personal_space_module.knowledge_module.add_QA_data')" :title="t('personal_space_module.knowledge_module.add_QA_data')"
:btn-loading="btnLoading" :btn-loading="btnLoading"
:width="1000" :width="1340"
:height="502"
@confirm="handleAddKnowledgeChunk" @confirm="handleAddKnowledgeChunk"
> >
<template #content> <template #content>
...@@ -128,10 +129,10 @@ function handleAddKnowledgeChunk() { ...@@ -128,10 +129,10 @@ function handleAddKnowledgeChunk() {
v-model:value="chunkItem.content" v-model:value="chunkItem.content"
type="textarea" type="textarea"
:placeholder="t('personal_space_module.knowledge_module.please_enter_the_content')" :placeholder="t('personal_space_module.knowledge_module.please_enter_the_content')"
class="chunk-content-input h-[110px]" class="chunk-content-input h-[228px]"
:autosize="{ :autosize="{
minRows: 4, minRows: 10,
maxRows: 4, maxRows: 10,
}" }"
:maxlength="850" :maxlength="850"
/> />
......
...@@ -85,7 +85,8 @@ function handleAddKnowledgeChunk() { ...@@ -85,7 +85,8 @@ function handleAddKnowledgeChunk() {
v-model:is-show="isShow" v-model:is-show="isShow"
:title="t('personal_space_module.knowledge_module.edit_QA_data')" :title="t('personal_space_module.knowledge_module.edit_QA_data')"
:btn-loading="btnLoading" :btn-loading="btnLoading"
:width="1000" :width="1340"
:height="502"
@confirm="handleAddKnowledgeChunk" @confirm="handleAddKnowledgeChunk"
> >
<template #content> <template #content>
...@@ -130,10 +131,10 @@ function handleAddKnowledgeChunk() { ...@@ -130,10 +131,10 @@ function handleAddKnowledgeChunk() {
v-model:value="chunkItem.content" v-model:value="chunkItem.content"
type="textarea" type="textarea"
:placeholder="t('personal_space_module.knowledge_module.please_enter_the_content')" :placeholder="t('personal_space_module.knowledge_module.please_enter_the_content')"
class="chunk-content-input h-[110px]" class="chunk-content-input h-[228px]"
:autosize="{ :autosize="{
minRows: 4, minRows: 10,
maxRows: 4, maxRows: 10,
}" }"
:maxlength="850" :maxlength="850"
/> />
......
...@@ -85,7 +85,7 @@ const handleKnowledgeTableAction = useDebounceFn((chunkKeyItem: QAKnowledgeChunk ...@@ -85,7 +85,7 @@ const handleKnowledgeTableAction = useDebounceFn((chunkKeyItem: QAKnowledgeChunk
:columns="chunkIndexColumns" :columns="chunkIndexColumns"
:data="knowledgeChunkKeyList" :data="knowledgeChunkKeyList"
:max-height="300" :max-height="300"
class="mb-1" class="mb-4"
/> />
</template> </template>
......
...@@ -182,6 +182,7 @@ declare namespace I18n { ...@@ -182,6 +182,7 @@ declare namespace I18n {
analysis: string analysis: string
listing_applications: string listing_applications: string
remove_applications: string remove_applications: string
type: string
} }
pagination_module: { 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