2025-09-17 08:02:08 +00:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="kb-list-container">
|
2025-11-06 13:12:26 +00:00
|
|
|
|
<!-- 头部 -->
|
2025-09-17 08:02:08 +00:00
|
|
|
|
<div class="header">
|
2025-11-20 04:13:23 +00:00
|
|
|
|
<div class="header-title">
|
|
|
|
|
|
<h2>{{ $t('knowledgeBase.title') }}</h2>
|
|
|
|
|
|
<p class="header-subtitle">{{ $t('knowledgeList.subtitle') }}</p>
|
2025-11-14 17:30:17 +00:00
|
|
|
|
</div>
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</div>
|
2025-11-20 04:13:23 +00:00
|
|
|
|
<div class="header-divider"></div>
|
2025-09-17 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- 未初始化知识库提示 -->
|
|
|
|
|
|
<div v-if="hasUninitializedKbs" class="warning-banner">
|
|
|
|
|
|
<t-icon name="info-circle" size="16px" />
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span>{{ $t('knowledgeList.uninitializedBanner') }}</span>
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</div>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- 卡片网格 -->
|
|
|
|
|
|
<div v-if="kbs.length > 0" class="kb-card-wrap">
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-for="(kb, index) in kbs"
|
|
|
|
|
|
:key="kb.id"
|
|
|
|
|
|
class="kb-card"
|
2025-11-16 15:09:32 +00:00
|
|
|
|
:class="{
|
|
|
|
|
|
'uninitialized': !isInitialized(kb),
|
|
|
|
|
|
'kb-type-document': (kb.type || 'document') === 'document',
|
2025-11-23 09:32:50 +00:00
|
|
|
|
'kb-type-faq': kb.type === 'faq',
|
|
|
|
|
|
'highlight-flash': highlightedKbId !== null && highlightedKbId === kb.id
|
2025-11-16 15:09:32 +00:00
|
|
|
|
}"
|
2025-11-23 09:32:50 +00:00
|
|
|
|
:ref="el => { if (highlightedKbId !== null && highlightedKbId === kb.id && el) highlightedCardRef = el as HTMLElement }"
|
2025-11-06 13:12:26 +00:00
|
|
|
|
@click="handleCardClick(kb)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<!-- 卡片头部 -->
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
<span class="card-title" :title="kb.name">{{ kb.name }}</span>
|
|
|
|
|
|
<t-popup
|
|
|
|
|
|
v-model="kb.showMore"
|
|
|
|
|
|
overlayClassName="card-more-popup"
|
|
|
|
|
|
:on-visible-change="onVisibleChange"
|
|
|
|
|
|
trigger="click"
|
|
|
|
|
|
destroy-on-close
|
|
|
|
|
|
placement="bottom-right"
|
2025-09-17 08:02:08 +00:00
|
|
|
|
>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
<div
|
|
|
|
|
|
variant="outline"
|
|
|
|
|
|
class="more-wrap"
|
|
|
|
|
|
@click.stop="openMore(index)"
|
|
|
|
|
|
:class="{ 'active-more': currentMoreIndex === index }"
|
|
|
|
|
|
>
|
|
|
|
|
|
<img class="more-icon" src="@/assets/img/more.png" alt="" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #content>
|
|
|
|
|
|
<div class="popup-menu" @click.stop>
|
|
|
|
|
|
<div class="popup-menu-item" @click.stop="handleSettings(kb)">
|
|
|
|
|
|
<t-icon class="menu-icon" name="setting" />
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span>{{ $t('knowledgeBase.settings') }}</span>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="popup-menu-item delete" @click.stop="handleDelete(kb)">
|
|
|
|
|
|
<t-icon class="menu-icon" name="delete" />
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span>{{ $t('common.delete') }}</span>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</t-popup>
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</div>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- 卡片内容 -->
|
|
|
|
|
|
<div class="card-content">
|
|
|
|
|
|
<div class="card-description">
|
2025-11-13 11:34:33 +00:00
|
|
|
|
{{ kb.description || $t('knowledgeBase.noDescription') }}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 卡片底部 -->
|
|
|
|
|
|
<div class="card-bottom">
|
2025-11-20 12:08:24 +00:00
|
|
|
|
<div class="bottom-left">
|
|
|
|
|
|
<div class="type-badge" :class="{ 'document': (kb.type || 'document') === 'document', 'faq': kb.type === 'faq' }">
|
|
|
|
|
|
<t-icon :name="kb.type === 'faq' ? 'chat-bubble-help' : 'folder'" size="14px" />
|
2025-11-20 17:39:43 +00:00
|
|
|
|
<span>
|
|
|
|
|
|
{{ kb.type === 'faq' ? $t('knowledgeEditor.basic.typeFAQ') : $t('knowledgeEditor.basic.typeDocument') }}
|
|
|
|
|
|
({{ kb.type === 'faq' ? (kb.chunk_count || 0) : (kb.knowledge_count || 0) }})
|
|
|
|
|
|
</span>
|
2025-11-23 09:32:50 +00:00
|
|
|
|
<t-tooltip
|
|
|
|
|
|
v-if="kb.isProcessing"
|
|
|
|
|
|
:content="kb.type === 'document' && (kb.processing_count || 0) > 0
|
|
|
|
|
|
? $t('knowledgeList.processingDocuments', { count: kb.processing_count || 0 })
|
|
|
|
|
|
: $t('knowledgeList.processing')"
|
|
|
|
|
|
placement="top"
|
|
|
|
|
|
>
|
|
|
|
|
|
<t-icon name="loading" size="14px" class="processing-icon" />
|
|
|
|
|
|
</t-tooltip>
|
2025-11-20 12:08:24 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="feature-badges">
|
|
|
|
|
|
<t-tooltip v-if="kb.extract_config?.enabled" :content="$t('knowledgeList.features.knowledgeGraph')" placement="top">
|
|
|
|
|
|
<div class="feature-badge kg">
|
|
|
|
|
|
<t-icon name="relation" size="14px" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</t-tooltip>
|
|
|
|
|
|
<t-tooltip v-if="kb.vlm_config?.enabled || (kb.cos_config?.provider && kb.cos_config?.bucket_name)" :content="$t('knowledgeList.features.multimodal')" placement="top">
|
|
|
|
|
|
<div class="feature-badge multimodal">
|
|
|
|
|
|
<t-icon name="image" size="14px" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</t-tooltip>
|
|
|
|
|
|
</div>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<span class="card-time">{{ kb.updated_at }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 空状态 -->
|
|
|
|
|
|
<div v-else-if="!loading" class="empty-state">
|
|
|
|
|
|
<img class="empty-img" src="@/assets/img/upload.svg" alt="">
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span class="empty-txt">{{ $t('knowledgeList.empty.title') }}</span>
|
|
|
|
|
|
<span class="empty-desc">{{ $t('knowledgeList.empty.description') }}</span>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 删除确认对话框 -->
|
|
|
|
|
|
<t-dialog
|
|
|
|
|
|
v-model:visible="deleteVisible"
|
|
|
|
|
|
dialogClassName="del-knowledge-dialog"
|
|
|
|
|
|
:closeBtn="false"
|
|
|
|
|
|
:cancelBtn="null"
|
|
|
|
|
|
:confirmBtn="null"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="circle-wrap">
|
|
|
|
|
|
<div class="dialog-header">
|
|
|
|
|
|
<img class="circle-img" src="@/assets/img/circle.png" alt="">
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span class="circle-title">{{ $t('knowledgeList.delete.confirmTitle') }}</span>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<span class="del-circle-txt">
|
2025-11-13 11:34:33 +00:00
|
|
|
|
{{ $t('knowledgeList.delete.confirmMessage', { name: deletingKb?.name ?? '' }) }}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</span>
|
|
|
|
|
|
<div class="circle-btn">
|
2025-11-13 11:34:33 +00:00
|
|
|
|
<span class="circle-btn-txt" @click="deleteVisible = false">{{ $t('common.cancel') }}</span>
|
|
|
|
|
|
<span class="circle-btn-txt confirm" @click="confirmDelete">{{ $t('knowledgeList.delete.confirmButton') }}</span>
|
2025-11-06 13:12:26 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</t-dialog>
|
2025-11-05 18:45:44 +00:00
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
<!-- 知识库编辑器(创建/编辑统一组件) -->
|
|
|
|
|
|
<KnowledgeBaseEditorModal
|
|
|
|
|
|
:visible="uiStore.showKBEditorModal"
|
|
|
|
|
|
:mode="uiStore.kbEditorMode"
|
|
|
|
|
|
:kb-id="uiStore.currentKBId || undefined"
|
2025-11-14 17:30:17 +00:00
|
|
|
|
:initial-type="uiStore.kbEditorType"
|
2025-11-06 13:12:26 +00:00
|
|
|
|
@update:visible="(val) => val ? null : uiStore.closeKBEditor()"
|
|
|
|
|
|
@success="handleKBEditorSuccess"
|
|
|
|
|
|
/>
|
2025-11-05 18:45:44 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- 全局设置模态框 -->
|
|
|
|
|
|
<Settings />
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2025-11-23 09:32:50 +00:00
|
|
|
|
import { onMounted, ref, computed, watch, nextTick } from 'vue'
|
|
|
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
|
|
import { MessagePlugin, Icon as TIcon } from 'tdesign-vue-next'
|
2025-11-06 13:12:26 +00:00
|
|
|
|
import { listKnowledgeBases, deleteKnowledgeBase } from '@/api/knowledge-base'
|
2025-09-17 08:02:08 +00:00
|
|
|
|
import { formatStringDate } from '@/utils/index'
|
2025-11-05 18:45:44 +00:00
|
|
|
|
import { useUIStore } from '@/stores/ui'
|
2025-11-06 13:12:26 +00:00
|
|
|
|
import KnowledgeBaseEditorModal from './KnowledgeBaseEditorModal.vue'
|
2025-11-05 18:45:44 +00:00
|
|
|
|
import Settings from '@/views/settings/Settings.vue'
|
2025-11-13 11:34:33 +00:00
|
|
|
|
import { useI18n } from 'vue-i18n'
|
2025-09-17 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
2025-11-23 09:32:50 +00:00
|
|
|
|
const route = useRoute()
|
2025-11-05 18:45:44 +00:00
|
|
|
|
const uiStore = useUIStore()
|
2025-11-13 11:34:33 +00:00
|
|
|
|
const { t } = useI18n()
|
2025-09-17 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
interface KB {
|
|
|
|
|
|
id: string;
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
description?: string;
|
|
|
|
|
|
updated_at?: string;
|
|
|
|
|
|
embedding_model_id?: string;
|
|
|
|
|
|
summary_model_id?: string;
|
2025-11-14 17:30:17 +00:00
|
|
|
|
type?: 'document' | 'faq';
|
2025-11-06 13:12:26 +00:00
|
|
|
|
showMore?: boolean;
|
2025-11-20 12:08:24 +00:00
|
|
|
|
vlm_config?: { enabled?: boolean; model_id?: string };
|
|
|
|
|
|
extract_config?: { enabled?: boolean };
|
|
|
|
|
|
cos_config?: { provider?: string; bucket_name?: string };
|
2025-11-20 17:39:43 +00:00
|
|
|
|
knowledge_count?: number;
|
|
|
|
|
|
chunk_count?: number;
|
2025-11-23 09:32:50 +00:00
|
|
|
|
isProcessing?: boolean; // 是否有正在处理的导入任务
|
|
|
|
|
|
processing_count?: number; // 正在处理的文档数量(仅文档类型)
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
2025-09-17 08:02:08 +00:00
|
|
|
|
const kbs = ref<KB[]>([])
|
|
|
|
|
|
const loading = ref(false)
|
2025-11-06 13:12:26 +00:00
|
|
|
|
const deleteVisible = ref(false)
|
|
|
|
|
|
const deletingKb = ref<KB | null>(null)
|
|
|
|
|
|
const currentMoreIndex = ref<number>(-1)
|
2025-11-23 09:32:50 +00:00
|
|
|
|
const highlightedKbId = ref<string | null>(null)
|
|
|
|
|
|
const highlightedCardRef = ref<HTMLElement | null>(null)
|
2025-09-17 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
const fetchList = () => {
|
|
|
|
|
|
loading.value = true
|
2025-11-23 09:32:50 +00:00
|
|
|
|
return listKnowledgeBases().then((res: any) => {
|
2025-09-17 08:02:08 +00:00
|
|
|
|
const data = res.data || []
|
2025-11-06 13:12:26 +00:00
|
|
|
|
// 格式化时间,并初始化 showMore 状态
|
2025-11-23 09:32:50 +00:00
|
|
|
|
// is_processing 字段由后端返回
|
|
|
|
|
|
kbs.value = data.map((kb: any) => ({
|
2025-09-17 08:02:08 +00:00
|
|
|
|
...kb,
|
2025-11-06 13:12:26 +00:00
|
|
|
|
updated_at: kb.updated_at ? formatStringDate(new Date(kb.updated_at)) : '',
|
2025-11-23 09:32:50 +00:00
|
|
|
|
showMore: false,
|
|
|
|
|
|
isProcessing: kb.is_processing || false,
|
|
|
|
|
|
processing_count: kb.processing_count || 0
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}))
|
|
|
|
|
|
}).finally(() => loading.value = false)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
onMounted(() => {
|
2025-11-23 09:32:50 +00:00
|
|
|
|
fetchList().then(() => {
|
|
|
|
|
|
// 检查路由参数中是否有需要高亮的知识库ID
|
|
|
|
|
|
const highlightKbId = route.query.highlightKbId as string
|
|
|
|
|
|
if (highlightKbId) {
|
|
|
|
|
|
triggerHighlightFlash(highlightKbId)
|
|
|
|
|
|
// 清除 URL 中的查询参数
|
|
|
|
|
|
router.replace({ query: {} })
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// 监听路由变化,处理从其他页面跳转过来的高亮需求
|
|
|
|
|
|
watch(() => route.query.highlightKbId, (newKbId) => {
|
|
|
|
|
|
if (newKbId && typeof newKbId === 'string' && kbs.value.length > 0) {
|
|
|
|
|
|
triggerHighlightFlash(newKbId)
|
|
|
|
|
|
router.replace({ query: {} })
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const openMore = (index: number) => {
|
|
|
|
|
|
// 只记录当前打开的索引,用于显示激活样式
|
|
|
|
|
|
// 弹窗的开关由 v-model 自动管理
|
|
|
|
|
|
currentMoreIndex.value = index
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
const onVisibleChange = (visible: boolean) => {
|
|
|
|
|
|
// 弹窗关闭时重置索引
|
|
|
|
|
|
if (!visible) {
|
|
|
|
|
|
currentMoreIndex.value = -1
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
const handleSettings = (kb: KB) => {
|
|
|
|
|
|
// 手动关闭弹窗
|
|
|
|
|
|
kb.showMore = false
|
|
|
|
|
|
goSettings(kb.id)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const handleDelete = (kb: KB) => {
|
|
|
|
|
|
// 手动关闭弹窗
|
|
|
|
|
|
kb.showMore = false
|
|
|
|
|
|
deletingKb.value = kb
|
|
|
|
|
|
deleteVisible.value = true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const confirmDelete = () => {
|
|
|
|
|
|
if (!deletingKb.value) return
|
|
|
|
|
|
|
|
|
|
|
|
deleteKnowledgeBase(deletingKb.value.id).then((res: any) => {
|
2025-09-17 08:02:08 +00:00
|
|
|
|
if (res.success) {
|
2025-11-13 11:34:33 +00:00
|
|
|
|
MessagePlugin.success(t('knowledgeList.messages.deleted'))
|
2025-11-06 13:12:26 +00:00
|
|
|
|
deleteVisible.value = false
|
|
|
|
|
|
deletingKb.value = null
|
2025-09-17 08:02:08 +00:00
|
|
|
|
fetchList()
|
|
|
|
|
|
} else {
|
2025-11-13 11:34:33 +00:00
|
|
|
|
MessagePlugin.error(res.message || t('knowledgeList.messages.deleteFailed'))
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}).catch((e: any) => {
|
2025-11-13 11:34:33 +00:00
|
|
|
|
MessagePlugin.error(e?.message || t('knowledgeList.messages.deleteFailed'))
|
2025-11-06 13:12:26 +00:00
|
|
|
|
})
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const isInitialized = (kb: KB) => {
|
|
|
|
|
|
return !!(kb.embedding_model_id && kb.embedding_model_id !== '' &&
|
|
|
|
|
|
kb.summary_model_id && kb.summary_model_id !== '')
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 计算是否有未初始化的知识库
|
|
|
|
|
|
const hasUninitializedKbs = computed(() => {
|
|
|
|
|
|
return kbs.value.some(kb => !isInitialized(kb))
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
const handleCardClick = (kb: KB) => {
|
|
|
|
|
|
if (isInitialized(kb)) {
|
|
|
|
|
|
goDetail(kb.id)
|
|
|
|
|
|
} else {
|
|
|
|
|
|
goSettings(kb.id)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-17 08:02:08 +00:00
|
|
|
|
const goDetail = (id: string) => {
|
|
|
|
|
|
router.push(`/platform/knowledge-bases/${id}`)
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
2025-09-17 08:02:08 +00:00
|
|
|
|
const goSettings = (id: string) => {
|
2025-11-06 13:12:26 +00:00
|
|
|
|
// 使用模态框打开设置
|
2025-11-05 18:45:44 +00:00
|
|
|
|
uiStore.openKBSettings(id)
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
2025-11-05 18:45:44 +00:00
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
// 知识库编辑器成功回调(创建或编辑成功)
|
|
|
|
|
|
const handleKBEditorSuccess = (kbId: string) => {
|
2025-11-13 11:34:33 +00:00
|
|
|
|
console.log('[KnowledgeBaseList] knowledge operation success:', kbId)
|
2025-11-23 09:32:50 +00:00
|
|
|
|
fetchList().then(() => {
|
|
|
|
|
|
// 如果是从路由参数中获取的高亮ID,触发闪烁效果
|
|
|
|
|
|
if (route.query.highlightKbId === kbId) {
|
|
|
|
|
|
triggerHighlightFlash(kbId)
|
|
|
|
|
|
// 清除 URL 中的查询参数
|
|
|
|
|
|
router.replace({ query: {} })
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 触发高亮闪烁效果
|
|
|
|
|
|
const triggerHighlightFlash = (kbId: string) => {
|
|
|
|
|
|
highlightedKbId.value = kbId
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
|
if (highlightedCardRef.value) {
|
|
|
|
|
|
// 滚动到高亮的卡片
|
|
|
|
|
|
highlightedCardRef.value.scrollIntoView({
|
|
|
|
|
|
behavior: 'smooth',
|
|
|
|
|
|
block: 'center'
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
// 3秒后清除高亮
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
highlightedKbId.value = null
|
|
|
|
|
|
}, 3000)
|
|
|
|
|
|
})
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
2025-09-17 08:02:08 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|
.kb-list-container {
|
2025-11-06 13:12:26 +00:00
|
|
|
|
padding: 24px 44px;
|
|
|
|
|
|
// background: #fff;
|
|
|
|
|
|
margin: 0 20px;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
height: calc(100vh);
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
2025-09-17 08:02:08 +00:00
|
|
|
|
.header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2025-11-20 04:13:23 +00:00
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
.header-title {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-20 04:13:23 +00:00
|
|
|
|
.header-subtitle {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #00000099;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
2025-11-20 04:13:23 +00:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 20px;
|
2025-11-14 17:30:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-20 04:13:23 +00:00
|
|
|
|
.header-divider {
|
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
background: #e7ebf0;
|
|
|
|
|
|
margin-bottom: 20px;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.warning-banner {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
padding: 12px 16px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
margin-bottom: 20px;
|
2025-11-05 18:47:01 +00:00
|
|
|
|
background: #fff7e6;
|
|
|
|
|
|
border: 1px solid #ffd591;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
border-radius: 6px;
|
2025-11-05 18:47:01 +00:00
|
|
|
|
color: #d46b08;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
font-family: "PingFang SC";
|
2025-09-17 08:02:08 +00:00
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
.t-icon {
|
2025-11-05 18:47:01 +00:00
|
|
|
|
color: #d46b08;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
.kb-card-wrap {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 20px;
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.kb-card {
|
|
|
|
|
|
border: 2px solid #fbfbfb;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
box-shadow: 0 0 8px 0 #00000005;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
padding: 12px 16px 14px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
min-height: 150px;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.uninitialized {
|
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
|
}
|
2025-11-16 15:09:32 +00:00
|
|
|
|
|
2025-11-19 17:25:31 +00:00
|
|
|
|
// 文档类型样式
|
|
|
|
|
|
&.kb-type-document {
|
|
|
|
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
|
|
|
|
|
|
border-color: #e8f5ed;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 右上角装饰
|
|
|
|
|
|
&::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
width: 60px;
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%);
|
|
|
|
|
|
border-radius: 0 6px 0 100%;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
z-index: 0;
|
|
|
|
|
|
}
|
2025-11-16 15:09:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-19 17:25:31 +00:00
|
|
|
|
// 问答类型样式
|
|
|
|
|
|
&.kb-type-faq {
|
|
|
|
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
|
|
|
|
|
|
border-color: #e6f0ff;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #0052d9;
|
|
|
|
|
|
background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 右上角装饰
|
|
|
|
|
|
&::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
width: 60px;
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%);
|
|
|
|
|
|
border-radius: 0 6px 0 100%;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
z-index: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 确保内容在装饰之上
|
2025-11-16 15:09:32 +00:00
|
|
|
|
.card-header,
|
|
|
|
|
|
.card-content,
|
|
|
|
|
|
.card-bottom {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-header {
|
2025-09-17 08:02:08 +00:00
|
|
|
|
display: flex;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
justify-content: space-between;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
align-items: center;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-title {
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-wrap {
|
|
|
|
|
|
display: flex;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
border-radius: 6px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
opacity: 0.7;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
background: rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
opacity: 1;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.active-more {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
background: rgba(0, 0, 0, 0.08);
|
|
|
|
|
|
opacity: 1;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-icon {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
width: 16px;
|
|
|
|
|
|
height: 16px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-content {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-description {
|
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
2025-11-13 11:34:33 +00:00
|
|
|
|
line-clamp: 2;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
color: #00000066;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
min-height: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-bottom {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 8px 0 0;
|
|
|
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-20 12:08:24 +00:00
|
|
|
|
.bottom-left {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-14 17:30:17 +00:00
|
|
|
|
.type-badge {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
display: inline-flex;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
align-items: center;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
gap: 4px;
|
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
|
border-radius: 4px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 500;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
line-height: 18px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
2025-11-14 17:30:17 +00:00
|
|
|
|
&.document {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
background: rgba(7, 192, 95, 0.1);
|
|
|
|
|
|
color: #059669;
|
|
|
|
|
|
border: 1px solid rgba(7, 192, 95, 0.2);
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-14 17:30:17 +00:00
|
|
|
|
&.faq {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
background: rgba(0, 82, 217, 0.1);
|
|
|
|
|
|
color: #0052d9;
|
|
|
|
|
|
border: 1px solid rgba(0, 82, 217, 0.2);
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
2025-11-23 09:32:50 +00:00
|
|
|
|
|
|
|
|
|
|
.processing-icon {
|
|
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.document .processing-icon {
|
|
|
|
|
|
color: #059669;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.faq .processing-icon {
|
|
|
|
|
|
color: #0052d9;
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-20 12:08:24 +00:00
|
|
|
|
.feature-badges {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.feature-badge {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
&.kg {
|
|
|
|
|
|
background: rgba(124, 77, 255, 0.1);
|
|
|
|
|
|
color: #7c4dff;
|
|
|
|
|
|
border: 1px solid rgba(124, 77, 255, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
background: rgba(124, 77, 255, 0.15);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.multimodal {
|
|
|
|
|
|
background: rgba(255, 152, 0, 0.1);
|
|
|
|
|
|
color: #ff9800;
|
|
|
|
|
|
border: 1px solid rgba(255, 152, 0, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
background: rgba(255, 152, 0, 0.15);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-23 09:32:50 +00:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
|
from {
|
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes highlightFlash {
|
|
|
|
|
|
0% {
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
box-shadow: 0 0 0 0 rgba(7, 192, 95, 0.4);
|
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
|
}
|
|
|
|
|
|
50% {
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
box-shadow: 0 0 0 8px rgba(7, 192, 95, 0);
|
|
|
|
|
|
transform: scale(1.02);
|
|
|
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
box-shadow: 0 0 0 0 rgba(7, 192, 95, 0);
|
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.kb-card.highlight-flash {
|
|
|
|
|
|
animation: highlightFlash 0.6s ease-in-out 3;
|
|
|
|
|
|
border-color: #07c05f !important;
|
|
|
|
|
|
box-shadow: 0 0 12px rgba(7, 192, 95, 0.3) !important;
|
2025-11-20 12:08:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
.card-time {
|
|
|
|
|
|
color: #00000066;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
padding: 60px 20px;
|
|
|
|
|
|
|
|
|
|
|
|
.empty-img {
|
|
|
|
|
|
width: 162px;
|
|
|
|
|
|
height: 162px;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.empty-txt {
|
|
|
|
|
|
color: #00000099;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.empty-desc {
|
|
|
|
|
|
color: #00000066;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 响应式布局
|
|
|
|
|
|
@media (min-width: 900px) {
|
|
|
|
|
|
.kb-card-wrap {
|
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1250px) {
|
|
|
|
|
|
.kb-card-wrap {
|
|
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1600px) {
|
|
|
|
|
|
.kb-card-wrap {
|
|
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 删除确认对话框样式
|
|
|
|
|
|
:deep(.del-knowledge-dialog) {
|
|
|
|
|
|
padding: 0px !important;
|
|
|
|
|
|
border-radius: 6px !important;
|
|
|
|
|
|
|
|
|
|
|
|
.t-dialog__header {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-dialog__body {
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-dialog__footer {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.t-dialog__position.t-dialog--top) {
|
|
|
|
|
|
padding-top: 40vh !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.circle-wrap {
|
|
|
|
|
|
.dialog-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.circle-img {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.circle-title {
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.del-circle-txt {
|
|
|
|
|
|
color: #00000099;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-left: 29px;
|
|
|
|
|
|
margin-bottom: 21px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.circle-btn {
|
|
|
|
|
|
height: 22px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.circle-btn-txt {
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 22px;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
cursor: pointer;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.confirm {
|
|
|
|
|
|
color: #FA5151;
|
|
|
|
|
|
margin-left: 40px;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
|
|
// 更多操作弹窗样式
|
|
|
|
|
|
.card-more-popup {
|
|
|
|
|
|
z-index: 99 !important;
|
|
|
|
|
|
|
|
|
|
|
|
.t-popup__content {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
padding: 6px 0 !important;
|
|
|
|
|
|
margin-top: 6px !important;
|
|
|
|
|
|
min-width: 140px;
|
|
|
|
|
|
border-radius: 6px !important;
|
|
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
|
|
|
|
|
|
border: 1px solid #e7ebf0 !important;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.popup-menu {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.popup-menu-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
gap: 10px;
|
|
|
|
|
|
padding: 10px 16px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 400;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
line-height: 20px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
.menu-icon {
|
2025-09-17 08:02:08 +00:00
|
|
|
|
font-size: 16px;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
color: #00000099;
|
|
|
|
|
|
transition: color 0.2s ease;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
background: #f7f9fc;
|
|
|
|
|
|
|
|
|
|
|
|
.menu-icon {
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
}
|
2025-11-06 13:12:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.delete {
|
|
|
|
|
|
color: #000000e6;
|
2025-09-17 08:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-11-06 13:12:26 +00:00
|
|
|
|
background: #fff1f0;
|
2025-11-19 17:25:31 +00:00
|
|
|
|
color: #fa5151;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
|
|
|
|
|
|
.menu-icon {
|
2025-11-19 17:25:31 +00:00
|
|
|
|
color: #fa5151;
|
|
|
|
|
|
}
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-11-06 13:12:26 +00:00
|
|
|
|
// 创建对话框样式优化
|
|
|
|
|
|
.create-kb-dialog {
|
|
|
|
|
|
.t-form-item__label {
|
|
|
|
|
|
font-family: "PingFang SC";
|
2025-09-17 08:02:08 +00:00
|
|
|
|
font-size: 14px;
|
2025-11-06 13:12:26 +00:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: #000000e6;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-input,
|
|
|
|
|
|
.t-textarea {
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-button--theme-primary {
|
|
|
|
|
|
background-color: #07c05f;
|
|
|
|
|
|
border-color: #07c05f;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
background-color: #05a04f;
|
|
|
|
|
|
border-color: #05a04f;
|
|
|
|
|
|
}
|
2025-09-17 08:02:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|