分段数量同步

This commit is contained in:
2025-11-07 15:26:24 +08:00
parent ab6c7c8576
commit 7edc4f3a35
5 changed files with 35 additions and 37 deletions

View File

@@ -179,33 +179,6 @@
placeholder="请输入分段内容"
/>
</el-form-item>
<el-form-item label="关键词">
<el-tag
v-for="keyword in newSegmentForm.keywords"
:key="keyword"
closable
@close="removeKeyword(keyword)"
style="margin-right: 8px;"
>
{{ keyword }}
</el-tag>
<el-input
v-if="keywordInputVisible"
ref="keywordInputRef"
v-model="keywordInputValue"
size="small"
style="width: 120px;"
@keyup.enter="handleKeywordInputConfirm"
@blur="handleKeywordInputConfirm"
/>
<el-button
v-else
size="small"
@click="showKeywordInput"
>
+ 添加关键词
</el-button>
</el-form-item>
</el-form>
<template #footer>
<el-button @click="showAddSegmentDialog = false">取消</el-button>
@@ -455,9 +428,8 @@ async function handleCreateSegment() {
props.datasetId,
props.documentId,
[{
content,
keywords: newSegmentForm.value.keywords.length > 0 ? newSegmentForm.value.keywords : undefined
}]
content
}]
);
if (result.success) {

View File

@@ -137,7 +137,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="chunkCount" label="数" width="100" />
<el-table-column prop="chunkCount" label="分段数" width="100" />
<el-table-column prop="createTime" label="上传时间" width="180">
<template #default="{ row }">
{{ formatDate(row.createTime) }}