diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index f6221a3957..f23c0cc5ca 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -73,7 +73,55 @@ - + + + + 文件状态 + + + + + + + 全部 + 成功 + 失败 + 索引中 + 排队中 + + + + + 成功 @@ -89,7 +137,43 @@ - + + + + 启用状态 + + + + + + + 全部 + 开启 + 关闭 + + + + + 命中处理方式 - + 全部 {{ value }} @@ -281,7 +369,7 @@ const SyncWebDialogRef = ref() const loading = ref(false) let interval: any const filterText = ref('') -const filterMethod = ref('') +const filterMethod = ref({}) const documentData = ref([]) const currentMouseId = ref(null) const datasetDetail = ref({}) @@ -318,11 +406,18 @@ function openDatasetDialog(row?: any) { SelectDatasetDialogRef.value.open(arr) } -function dropdownHandle(val: string) { - filterMethod.value = val +function dropdownHandle(obj: any) { + filterMethod.value[obj.attr] = obj.command getList() } +function beforeCommand(attr: string, val: any) { + return { + attr: attr, + command: val + } +} + function syncDataset() { SyncWebDialogRef.value.open(id) } @@ -506,7 +601,7 @@ function handleSizeChange() { function getList(bool?: boolean) { const param = { ...(filterText.value && { name: filterText.value }), - ...(filterMethod.value && { hit_handling_method: filterMethod.value }) + ...filterMethod.value } documentApi .getDocument(id as string, paginationConfig.value, param, bool ? undefined : loading)