feat(faq): 知识库相对应文档更新,标记关联的问题为待复审状态并暂停缓存命中
This commit is contained in:
1 parent
757231e3d5
commit
0d59b23e0c
16 files changed
+809
-185
No files matched your search
@@ -56,6 +56,10 @@ const {
|
||||
|
||||
filterCacheOnly,
|
||||
|
||||
filterStaleOnly,
|
||||
|
||||
staleCount,
|
||||
|
||||
searchKeyword,
|
||||
|
||||
loadAll,
|
||||
@@ -68,6 +72,8 @@ const {
|
||||
|
||||
saveQuestion,
|
||||
|
||||
saveReviewQuestion,
|
||||
|
||||
deleteQuestion,
|
||||
|
||||
closeDeleteConfirm,
|
||||
@@ -144,6 +150,13 @@ onMounted(() => {
|
||||
|
||||
{{ t('admin.question.tabs.manual') }}
|
||||
|
||||
<span
|
||||
v-if="staleCount > 0"
|
||||
class="ml-1.5 inline-flex min-w-[1.25rem] items-center justify-center rounded-full bg-amber-100 px-1.5 py-0.5 text-[10px] font-semibold text-amber-800"
|
||||
>
|
||||
{{ staleCount }}
|
||||
</span>
|
||||
|
||||
</button>
|
||||
|
||||
<button
|
||||
@@ -218,6 +231,14 @@ onMounted(() => {
|
||||
|
||||
</label>
|
||||
|
||||
<label class="inline-flex items-center gap-2 text-sm text-secondary whitespace-nowrap">
|
||||
|
||||
<input v-model="filterStaleOnly" type="checkbox" class="accent-brand-600" />
|
||||
|
||||
<span>{{ t('admin.question.filters.staleOnly') }}</span>
|
||||
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="text-xs text-muted">
|
||||
@@ -274,6 +295,18 @@ onMounted(() => {
|
||||
|
||||
<div class="font-medium text-primary text-sm">{{ q.title }}</div>
|
||||
|
||||
<span
|
||||
|
||||
v-if="q.stale_at"
|
||||
|
||||
class="inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-amber-50 text-amber-800 border border-amber-100"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.badges.stale') }}
|
||||
|
||||
</span>
|
||||
|
||||
<span
|
||||
|
||||
v-if="!q.is_enabled"
|
||||
@@ -416,21 +449,23 @@ onMounted(() => {
|
||||
|
||||
|
||||
|
||||
<QuestionFormModal
|
||||
<QuestionFormModal
|
||||
|
||||
:visible="showFormModal"
|
||||
:visible="showFormModal"
|
||||
|
||||
:form="form"
|
||||
:form="form"
|
||||
|
||||
:agents="agents"
|
||||
:agents="agents"
|
||||
|
||||
:is-saving="isSaving"
|
||||
:is-saving="isSaving"
|
||||
|
||||
@close="closeFormModal"
|
||||
@close="closeFormModal"
|
||||
|
||||
@save="saveQuestion"
|
||||
@save="saveQuestion"
|
||||
|
||||
/>
|
||||
@review="saveReviewQuestion"
|
||||
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user