Skip to content

Commit 7a84857

Browse files
fix: 修复批量设置问题
fix: 修复批量设置问题
2 parents 32d26ec + 12183bc commit 7a84857

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ui/src/views/document/component/ImportDocumentDialog.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
type="textarea"
2222
/>
2323
</el-form-item>
24-
<el-form-item v-else-if="documentType === '1'" label="文档地址" prop="source_url">
24+
<el-form-item
25+
v-else-if="!isImport && documentType === '1'"
26+
label="文档地址"
27+
prop="source_url"
28+
>
2529
<el-input v-model="form.source_url" placeholder="请输入文档地址" />
2630
</el-form-item>
2731
<el-form-item label="选择器" v-if="documentType === '1'">
@@ -124,6 +128,7 @@ watch(dialogVisible, (bool) => {
124128
}
125129
isImport.value = false
126130
documentType.value = ''
131+
documentId.value = ''
127132
documentList.value = []
128133
}
129134
})
@@ -142,7 +147,7 @@ const open = (row: any, list: Array<string>) => {
142147
// 批量设置
143148
documentList.value = list
144149
} else {
145-
// 导入
150+
// 导入 只有web文档类型
146151
documentType.value = '1'
147152
isImport.value = true
148153
}
@@ -182,7 +187,7 @@ const submit = async (formEl: FormInstance | undefined) => {
182187
// 批量设置
183188
const obj = {
184189
hit_handling_method: form.value.hit_handling_method,
185-
directly_return_similarity: form.value.directly_return_similarity,
190+
directly_return_similarity: form.value.directly_return_similarity || 0.9,
186191
id_list: documentList.value
187192
}
188193
documentApi.batchEditHitHandling(id, obj, loading).then((res: any) => {

0 commit comments

Comments
 (0)