优化: 知识检索同项目加权与拒绝池
This commit is contained in:
@@ -46,7 +46,7 @@ function toggleExpanded(current: boolean) {
|
||||
:title="enrichmentExpanded ? $t('aiChat.enrichmentCollapse') : $t('aiChat.enrichmentExpand')"
|
||||
:aria-label="enrichmentExpanded ? $t('aiChat.enrichmentCollapse') : $t('aiChat.enrichmentExpand')"
|
||||
>
|
||||
<svg class="ai-enrichment-chevron" width="10" height="10" viewBox="0 0 10 10" fill="currentColor">
|
||||
<svg aria-hidden="true" class="ai-enrichment-chevron" width="10" height="10" viewBox="0 0 10 10" fill="currentColor">
|
||||
<path d="M2 3l3 4 3-4" />
|
||||
</svg>
|
||||
<span class="ai-enrichment-badge">{{ enrichmentBadgeText }}</span>
|
||||
|
||||
@@ -13,6 +13,14 @@
|
||||
<button class="btn btn-primary btn-sm" :disabled="submitting" @click="emit('publish')">{{ t('knowledge.publish') }}</button>
|
||||
<button class="btn btn-ghost btn-sm" :disabled="submitting" @click="emit('reject')">{{ t('knowledge.reject') }}</button>
|
||||
</template>
|
||||
<!-- 归档箱:恢复发布(archived→published 唯一出边,可逆语义对齐项目/任务归档) -->
|
||||
<template v-else-if="topTab === 'archived'">
|
||||
<button class="btn btn-primary btn-sm" :disabled="submitting" @click="emit('restore')">{{ t('knowledge.restore') }}</button>
|
||||
</template>
|
||||
<!-- 拒绝池:重新送审(rejected→candidate 唯一出边,修改后重审) -->
|
||||
<template v-else-if="topTab === 'rejected'">
|
||||
<button class="btn btn-primary btn-sm" :disabled="submitting" @click="emit('resubmit')">{{ t('knowledge.resubmit') }}</button>
|
||||
</template>
|
||||
<button v-else class="btn btn-ghost btn-sm" :disabled="submitting" @click="emit('archive')">{{ t('knowledge.archive') }}</button>
|
||||
</div>
|
||||
<div class="detail-actions" v-else>
|
||||
@@ -155,7 +163,7 @@ import type { KnowledgeDetailPayload, KnowledgeEventRecord } from '@/api/types'
|
||||
// 编辑保存与审核操作通过 emit 回传父级执行 IPC(publish/reject/archive/save)。
|
||||
const props = defineProps<{
|
||||
detail: KnowledgeDetailPayload
|
||||
topTab: 'library' | 'inbox'
|
||||
topTab: 'library' | 'inbox' | 'rejected' | 'archived'
|
||||
submitting: boolean
|
||||
}>()
|
||||
|
||||
@@ -164,6 +172,8 @@ const emit = defineEmits<{
|
||||
(e: 'publish'): void
|
||||
(e: 'reject'): void
|
||||
(e: 'archive'): void
|
||||
(e: 'restore'): void
|
||||
(e: 'resubmit'): void
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
Reference in New Issue
Block a user