分段数量同步
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user