feat(ui): update icon usage and enhance styling in share settings and knowledge base components
- Replaced organization icons with a new control platform icon in AgentShareSettings, ShareKnowledgeBaseDialog, and KBShareSettings for consistency. - Added new styles for the agent icon to improve visual representation. - Adjusted padding, margins, and layout in various components including ListSpaceSidebar, KnowledgeBase, and OrganizationList to enhance overall UI consistency and readability. - Introduced hover effects and popover details for knowledge cards to improve user interaction and information accessibility. This update enhances the user interface by ensuring consistent iconography and improving the layout and interaction design across components.
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
{{ org.share_count ?? 0 }}
|
{{ org.share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
<span class="org-meta-tag">
|
<span class="org-meta-tag">
|
||||||
<img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />
|
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
|
||||||
{{ org.agent_share_count ?? 0 }}
|
{{ org.agent_share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<t-tooltip :content="$t('organization.share.spaceAgentShareCountTip')" placement="top">
|
<t-tooltip :content="$t('organization.share.spaceAgentShareCountTip')" placement="top">
|
||||||
<span class="org-meta-tag">
|
<span class="org-meta-tag">
|
||||||
<img src="@/assets/img/agent.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />
|
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
|
||||||
{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}
|
{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
</t-tooltip>
|
</t-tooltip>
|
||||||
@@ -377,6 +377,10 @@ defineExpose({ loadShares })
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
.org-meta-icon-agent {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.share-actions {
|
.share-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -486,6 +490,10 @@ defineExpose({ loadShares })
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
.org-meta-icon-agent {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -132,13 +132,13 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
// 作为整体内容区左侧一栏,与主内容同属一块区域
|
// 左侧筛选栏,与主内容区协调、不抢戏
|
||||||
.list-space-sidebar {
|
.list-space-sidebar {
|
||||||
width: 176px;
|
width: 200px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
background: #fafbfc;
|
background: #fafbfc;
|
||||||
border-right: 1px solid #e7ebf0;
|
border-right: 1px solid #e7ebf0;
|
||||||
padding: 12px;
|
padding: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
@@ -150,7 +150,7 @@ onMounted(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
min-height: 28px;
|
min-height: 28px;
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ onMounted(() => {
|
|||||||
.sidebar-nav {
|
.sidebar-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 5px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -227,7 +227,7 @@ onMounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 8px;
|
padding: 8px 10px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #4e5969;
|
color: #4e5969;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -266,7 +266,7 @@ onMounted(() => {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 2px 5px;
|
padding: 3px 6px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #f7f9fc;
|
background: #f7f9fc;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
@@ -310,8 +310,8 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-section {
|
.sidebar-section {
|
||||||
padding: 8px 8px 2px;
|
padding: 10px 8px 2px;
|
||||||
margin-top: 2px;
|
margin-top: 4px;
|
||||||
border-top: 1px solid #e7ebf0;
|
border-top: 1px solid #e7ebf0;
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
{{ org.share_count ?? 0 }}
|
{{ org.share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
<span class="org-meta-tag">
|
<span class="org-meta-tag">
|
||||||
<img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />
|
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
|
||||||
{{ org.agent_share_count ?? 0 }}
|
{{ org.agent_share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -455,6 +455,12 @@ function handleGoToOrgSettings(orgId: string) {
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.org-meta-icon-agent {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--td-text-color-secondary);
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ export default {
|
|||||||
documentContent: 'Document Content',
|
documentContent: 'Document Content',
|
||||||
importTime: 'Import Time',
|
importTime: 'Import Time',
|
||||||
createTime: 'Create Time',
|
createTime: 'Create Time',
|
||||||
|
createdAt: 'Created',
|
||||||
|
updatedAt: 'Updated',
|
||||||
|
clickToViewFull: 'Click card to view full text and chunks',
|
||||||
characters: 'chars',
|
characters: 'chars',
|
||||||
segment: 'Segment',
|
segment: 'Segment',
|
||||||
chunkCount: 'Total {count} segments',
|
chunkCount: 'Total {count} segments',
|
||||||
|
|||||||
@@ -110,6 +110,9 @@ export default {
|
|||||||
documentContent: "文档内容",
|
documentContent: "文档内容",
|
||||||
importTime: "导入时间",
|
importTime: "导入时间",
|
||||||
createTime: "创建时间",
|
createTime: "创建时间",
|
||||||
|
createdAt: "创建",
|
||||||
|
updatedAt: "更新",
|
||||||
|
clickToViewFull: "点击卡片查看全文与分段",
|
||||||
characters: "字符",
|
characters: "字符",
|
||||||
segment: "片段",
|
segment: "片段",
|
||||||
chunkCount: "共 {count} 个片段",
|
chunkCount: "共 {count} 个片段",
|
||||||
|
|||||||
@@ -874,8 +874,8 @@ defineExpose({
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.agent-list-container {
|
.agent-list-container {
|
||||||
padding: 24px 10px;
|
padding: 24px 32px;
|
||||||
margin: 0 20px;
|
margin: 0 16px;
|
||||||
height: calc(100vh);
|
height: calc(100vh);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -899,13 +899,13 @@ defineExpose({
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1067,13 +1067,13 @@ defineExpose({
|
|||||||
|
|
||||||
.agent-card-wrap {
|
.agent-card-wrap {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 20px;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent-card {
|
.agent-card {
|
||||||
border: 1px solid #f0f0f0;
|
border: 1px solid #f0f0f0;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||||
@@ -1081,10 +1081,10 @@ defineExpose({
|
|||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.25s ease;
|
transition: all 0.25s ease;
|
||||||
padding: 12px 14px;
|
padding: 18px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 132px;
|
height: 160px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: #07c05f;
|
border-color: #07c05f;
|
||||||
@@ -1137,12 +1137,56 @@ defineExpose({
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-bottom {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-wrap {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
|
||||||
|
.more-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.builtin-avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-btn {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-decoration {
|
.card-decoration {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 12px;
|
||||||
right: 40px;
|
right: 44px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
@@ -1207,13 +1251,13 @@ defineExpose({
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 28px;
|
width: 32px;
|
||||||
height: 28px;
|
height: 32px;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
&.agent-emoji {
|
&.agent-emoji {
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
background: rgba(0, 0, 0, 0.04);
|
background: rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
@@ -1231,11 +1275,11 @@ defineExpose({
|
|||||||
|
|
||||||
.edit-btn {
|
.edit-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 28px;
|
width: 32px;
|
||||||
height: 28px;
|
height: 32px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
@@ -1249,11 +1293,11 @@ defineExpose({
|
|||||||
|
|
||||||
.more-wrap {
|
.more-wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 24px;
|
width: 28px;
|
||||||
height: 24px;
|
height: 28px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
@@ -1274,8 +1318,8 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.more-icon {
|
.more-icon {
|
||||||
width: 14px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ const editingTagName = ref('');
|
|||||||
const editingTagSubmitting = ref(false);
|
const editingTagSubmitting = ref(false);
|
||||||
const getPageSize = () => {
|
const getPageSize = () => {
|
||||||
const viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
const viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
||||||
const itemHeight = 152;
|
const itemHeight = 148;
|
||||||
let itemsInView = Math.floor(viewportHeight / itemHeight) * 5;
|
let itemsInView = Math.floor(viewportHeight / itemHeight) * 5;
|
||||||
pageSize = Math.max(35, itemsInView);
|
pageSize = Math.max(35, itemsInView);
|
||||||
}
|
}
|
||||||
@@ -182,6 +182,16 @@ const formatDocTime = (time?: string) => {
|
|||||||
return formatted.slice(2, 16) // "YY-MM-DD HH:mm"
|
return formatted.slice(2, 16) // "YY-MM-DD HH:mm"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 格式化文件大小,用于气泡等展示
|
||||||
|
const formatFileSize = (bytes?: number | string) => {
|
||||||
|
if (bytes == null || bytes === '') return ''
|
||||||
|
const n = typeof bytes === 'string' ? parseInt(bytes, 10) : bytes
|
||||||
|
if (Number.isNaN(n) || n <= 0) return ''
|
||||||
|
if (n < 1024) return `${n} B`
|
||||||
|
if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`
|
||||||
|
return `${(n / (1024 * 1024)).toFixed(1)} MB`
|
||||||
|
}
|
||||||
|
|
||||||
// 获取知识条目的显示类型
|
// 获取知识条目的显示类型
|
||||||
const getKnowledgeType = (item: any) => {
|
const getKnowledgeType = (item: any) => {
|
||||||
if (item.type === 'url') {
|
if (item.type === 'url') {
|
||||||
@@ -639,6 +649,45 @@ const openCardDetails = (item: KnowledgeCard) => {
|
|||||||
getCardDetails(item);
|
getCardDetails(item);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 悬停知识卡片时跟随鼠标显示详情气泡
|
||||||
|
const hoveredCardItem = ref<KnowledgeCard | null>(null);
|
||||||
|
const cardPopoverPos = ref({ x: 0, y: 0 });
|
||||||
|
const CARD_POPOVER_OFFSET = 16;
|
||||||
|
const cardHoverShowDelay = 300;
|
||||||
|
let cardHoverTimer: ReturnType<typeof setTimeout> | null = null;
|
||||||
|
|
||||||
|
const onCardMouseEnter = (ev: MouseEvent, item: KnowledgeCard) => {
|
||||||
|
if (cardHoverTimer) {
|
||||||
|
clearTimeout(cardHoverTimer);
|
||||||
|
cardHoverTimer = null;
|
||||||
|
}
|
||||||
|
cardHoverTimer = setTimeout(() => {
|
||||||
|
cardHoverTimer = null;
|
||||||
|
hoveredCardItem.value = item;
|
||||||
|
cardPopoverPos.value = {
|
||||||
|
x: ev.clientX + CARD_POPOVER_OFFSET,
|
||||||
|
y: ev.clientY + CARD_POPOVER_OFFSET,
|
||||||
|
};
|
||||||
|
}, cardHoverShowDelay);
|
||||||
|
};
|
||||||
|
|
||||||
|
const onCardMouseMove = (ev: MouseEvent) => {
|
||||||
|
if (hoveredCardItem.value) {
|
||||||
|
cardPopoverPos.value = {
|
||||||
|
x: ev.clientX + CARD_POPOVER_OFFSET,
|
||||||
|
y: ev.clientY + CARD_POPOVER_OFFSET,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const onCardMouseLeave = () => {
|
||||||
|
if (cardHoverTimer) {
|
||||||
|
clearTimeout(cardHoverTimer);
|
||||||
|
cardHoverTimer = null;
|
||||||
|
}
|
||||||
|
hoveredCardItem.value = null;
|
||||||
|
};
|
||||||
|
|
||||||
const delCard = (index: number, item: KnowledgeCard) => {
|
const delCard = (index: number, item: KnowledgeCard) => {
|
||||||
knowledgeIndex.value = index;
|
knowledgeIndex.value = index;
|
||||||
knowledge.value = item;
|
knowledge.value = item;
|
||||||
@@ -1403,6 +1452,9 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
v-for="(item, index) in cardList"
|
v-for="(item, index) in cardList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="openCardDetails(item)"
|
@click="openCardDetails(item)"
|
||||||
|
@mouseenter="onCardMouseEnter($event, item)"
|
||||||
|
@mousemove="onCardMouseMove($event)"
|
||||||
|
@mouseleave="onCardMouseLeave"
|
||||||
>
|
>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-content-nav">
|
<div class="card-content-nav">
|
||||||
@@ -1493,6 +1545,48 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 悬停卡片时跟随鼠标的详情气泡 -->
|
||||||
|
<Teleport to="body">
|
||||||
|
<div
|
||||||
|
v-show="hoveredCardItem"
|
||||||
|
class="knowledge-card-hover-popover"
|
||||||
|
:style="{ left: cardPopoverPos.x + 'px', top: cardPopoverPos.y + 'px' }"
|
||||||
|
>
|
||||||
|
<template v-if="hoveredCardItem">
|
||||||
|
<div class="card-popover-title">{{ hoveredCardItem.file_name }}</div>
|
||||||
|
<div v-if="hoveredCardItem.parse_status === 'processing' || hoveredCardItem.parse_status === 'pending'" class="card-popover-status parsing">
|
||||||
|
<t-icon name="loading" size="14px" /> {{ t('knowledgeBase.parsingInProgress') }}
|
||||||
|
</div>
|
||||||
|
<div v-else-if="hoveredCardItem.parse_status === 'failed'" class="card-popover-status failure">
|
||||||
|
<t-icon name="close-circle" size="14px" /> {{ t('knowledgeBase.parsingFailed') }}
|
||||||
|
<span v-if="(hoveredCardItem as any).error_message" class="card-popover-error-msg">{{ (hoveredCardItem as any).error_message }}</span>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="hoveredCardItem.parse_status === 'draft'" class="card-popover-status draft">
|
||||||
|
{{ t('knowledgeBase.draft') }}
|
||||||
|
</div>
|
||||||
|
<template v-else>
|
||||||
|
<div v-if="hoveredCardItem.description" class="card-popover-desc">{{ hoveredCardItem.description }}</div>
|
||||||
|
<div v-if="(hoveredCardItem as any).source" class="card-popover-source" :title="(hoveredCardItem as any).source">
|
||||||
|
<t-icon name="link" size="12px" /> {{ (hoveredCardItem as any).source }}
|
||||||
|
</div>
|
||||||
|
<div class="card-popover-extra">
|
||||||
|
<span v-if="(hoveredCardItem as any).created_at" class="card-popover-created">
|
||||||
|
{{ t('knowledgeBase.createdAt') || '创建' }}:{{ formatDocTime((hoveredCardItem as any).created_at) }}
|
||||||
|
</span>
|
||||||
|
<span v-if="formatFileSize((hoveredCardItem as any).file_size)" class="card-popover-size">
|
||||||
|
{{ formatFileSize((hoveredCardItem as any).file_size) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="card-popover-meta">
|
||||||
|
<span class="card-popover-time">{{ t('knowledgeBase.updatedAt') || '更新' }}:{{ formatDocTime(hoveredCardItem.updated_at) }}</span>
|
||||||
|
<span v-if="getTagName(hoveredCardItem.tag_id)" class="card-popover-tag">{{ getTagName(hoveredCardItem.tag_id) }}</span>
|
||||||
|
<span class="card-popover-type">{{ getKnowledgeType(hoveredCardItem) }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-popover-hint">{{ t('knowledgeBase.clickToViewFull') || '点击卡片查看全文与分段' }}</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="doc-empty-state">
|
<div class="doc-empty-state">
|
||||||
@@ -1659,12 +1753,13 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.knowledge-layout {
|
.knowledge-layout {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin: 0 16px;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 24px 30px 32px;
|
padding: 24px 32px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1679,11 +1774,12 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 与列表页左侧筛选栏协调:宽度、内边距、项间距
|
||||||
.tag-sidebar {
|
.tag-sidebar {
|
||||||
width: 176px;
|
width: 200px;
|
||||||
background: #fafbfc;
|
background: #fafbfc;
|
||||||
border-right: 1px solid #e7ebf0;
|
border-right: 1px solid #e7ebf0;
|
||||||
padding: 12px;
|
padding: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -1694,7 +1790,7 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
color: #1d2129;
|
color: #1d2129;
|
||||||
|
|
||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
@@ -1705,7 +1801,7 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
.sidebar-count {
|
.sidebar-count {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1743,31 +1839,32 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tag-search-bar {
|
.tag-search-bar {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
:deep(.t-input) {
|
:deep(.t-input) {
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
background-color: #f7f9fc;
|
background-color: #f7f9fc;
|
||||||
border-color: #e5e9f2;
|
border-color: #e5e9f2;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-list {
|
.tag-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 5px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
.tag-load-more {
|
.tag-load-more {
|
||||||
padding: 6px 0 0;
|
padding: 8px 0 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
:deep(.t-button) {
|
:deep(.t-button) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
color: #00a870;
|
color: #00a870;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1776,12 +1873,12 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 8px;
|
padding: 8px 10px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #4e5969;
|
color: #4e5969;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
|
|
||||||
.tag-list-left {
|
.tag-list-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1809,19 +1906,22 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.tag-list-right {
|
.tag-list-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 6px;
|
||||||
margin-left: 6px;
|
margin-left: 8px;
|
||||||
min-width: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-count {
|
.tag-count {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 2px 5px;
|
min-width: 28px;
|
||||||
|
padding: 3px 6px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #f7f9fc;
|
background: #f7f9fc;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -1956,6 +2056,12 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.tag-more {
|
.tag-more {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .tag-more {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-more-btn {
|
.tag-more-btn {
|
||||||
@@ -1967,12 +2073,10 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
opacity: 0.6;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #f3f5f7;
|
background: #f3f5f7;
|
||||||
color: #4e5969;
|
color: #4e5969;
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2032,7 +2136,7 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2044,10 +2148,10 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.doc-filter-bar {
|
.doc-filter-bar {
|
||||||
padding: 0px 0px 10px 0px;
|
padding: 0 0 12px 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.doc-search-input {
|
.doc-search-input {
|
||||||
@@ -2333,8 +2437,9 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
|
|
||||||
.faq-manager-wrapper {
|
.faq-manager-wrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 24px 30px;
|
padding: 24px 32px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
margin: 0 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1250px) and (min-width: 1045px) {
|
@media (max-width: 1250px) and (min-width: 1045px) {
|
||||||
@@ -2380,8 +2485,8 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.doc-card-list {
|
.doc-card-list {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
|
||||||
gap: 12px;
|
gap: 14px;
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -2512,10 +2617,10 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.knowledge-card {
|
.knowledge-card {
|
||||||
min-width: 240px;
|
min-width: 248px;
|
||||||
border: 1px solid #e7e9eb;
|
border: 1px solid #e7e9eb;
|
||||||
height: 140px;
|
height: 148px;
|
||||||
border-radius: 8px;
|
border-radius: 9px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||||
@@ -2525,11 +2630,11 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
|
||||||
.card-content {
|
.card-content {
|
||||||
padding: 14px 16px 12px;
|
padding: 15px 17px 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-analyze {
|
.card-analyze {
|
||||||
height: 50px;
|
height: 52px;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2555,15 +2660,15 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 11px;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content-title {
|
.card-content-title {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
height: 28px;
|
height: 29px;
|
||||||
line-height: 28px;
|
line-height: 29px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -2578,11 +2683,11 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.more-wrap {
|
.more-wrap {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 24px;
|
width: 25px;
|
||||||
height: 24px;
|
height: 25px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 4px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2609,15 +2714,15 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
font-family: "PingFang SC";
|
font-family: "PingFang SC";
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 18px;
|
line-height: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-bottom {
|
.card-bottom {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 0 16px;
|
padding: 0 17px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 32px;
|
height: 34px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -2649,6 +2754,135 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
box-shadow: 0 2px 8px rgba(7, 192, 95, 0.12);
|
box-shadow: 0 2px 8px rgba(7, 192, 95, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 悬停知识卡片时跟随鼠标的详情气泡 */
|
||||||
|
.knowledge-card-hover-popover {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 9999;
|
||||||
|
pointer-events: none;
|
||||||
|
min-width: 220px;
|
||||||
|
max-width: 360px;
|
||||||
|
padding: 12px 14px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #e7ebf0;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
||||||
|
font-family: "PingFang SC", -apple-system, sans-serif;
|
||||||
|
transition: opacity 0.15s ease;
|
||||||
|
|
||||||
|
.card-popover-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #1d2129;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-status {
|
||||||
|
font-size: 12px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
&.parsing {
|
||||||
|
color: #07c05f;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.failure {
|
||||||
|
color: #fa5151;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.draft {
|
||||||
|
color: #b05b00;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-desc {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #4e5969;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 5;
|
||||||
|
line-clamp: 5;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-error-msg {
|
||||||
|
display: block;
|
||||||
|
margin-top: 4px;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #fa5151;
|
||||||
|
opacity: 0.95;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 280px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-source {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #0052d9;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-extra {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #86909c;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-created,
|
||||||
|
.card-popover-size {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-meta {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #86909c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-tag {
|
||||||
|
padding: 1px 6px;
|
||||||
|
background: #e6f7ec;
|
||||||
|
color: #07c05f;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-type {
|
||||||
|
padding: 1px 6px;
|
||||||
|
background: #e8e9eb;
|
||||||
|
color: #4e5969;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-popover-hint {
|
||||||
|
margin-top: 8px;
|
||||||
|
padding-top: 8px;
|
||||||
|
border-top: 1px solid #f0f1f3;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #86909c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.url-import-form {
|
.url-import-form {
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1030,8 +1030,8 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.kb-list-container {
|
.kb-list-container {
|
||||||
padding: 24px 10px;
|
padding: 24px 32px;
|
||||||
margin: 0 20px;
|
margin: 0 16px;
|
||||||
height: calc(100vh);
|
height: calc(100vh);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -1044,7 +1044,7 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1088,7 +1088,7 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-subtitle {
|
.header-subtitle {
|
||||||
@@ -1370,13 +1370,13 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
|
|
||||||
.kb-card-wrap {
|
.kb-card-wrap {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 20px;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kb-card {
|
.kb-card {
|
||||||
border: 1px solid #f0f0f0;
|
border: 1px solid #f0f0f0;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||||
@@ -1384,10 +1384,10 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.25s ease;
|
transition: all 0.25s ease;
|
||||||
padding: 12px 14px;
|
padding: 18px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 132px;
|
height: 160px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: #07c05f;
|
border-color: #07c05f;
|
||||||
@@ -1414,10 +1414,10 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 50px;
|
width: 60px;
|
||||||
height: 50px;
|
height: 60px;
|
||||||
background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%);
|
background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%);
|
||||||
border-radius: 0 10px 0 100%;
|
border-radius: 0 12px 0 100%;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
@@ -1440,10 +1440,10 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 50px;
|
width: 60px;
|
||||||
height: 50px;
|
height: 60px;
|
||||||
background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%);
|
background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%);
|
||||||
border-radius: 0 10px 0 100%;
|
border-radius: 0 12px 0 100%;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
@@ -1456,6 +1456,43 @@ const handleUploadFinishedEvent = (event: Event) => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-bottom {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-wrap {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
|
||||||
|
.more-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-more-btn {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
|
|||||||
@@ -3336,11 +3336,12 @@ watch(() => entries.value.map(e => ({
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 与列表页左侧筛选栏、文档型知识库文档分类协调
|
||||||
.faq-tag-panel {
|
.faq-tag-panel {
|
||||||
width: 176px;
|
width: 200px;
|
||||||
background: #fafbfc;
|
background: #fafbfc;
|
||||||
border-right: 1px solid #e7ebf0;
|
border-right: 1px solid #e7ebf0;
|
||||||
padding: 12px;
|
padding: 16px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -3362,7 +3363,7 @@ watch(() => entries.value.map(e => ({
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
color: #1d2129;
|
color: #1d2129;
|
||||||
|
|
||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
@@ -3373,7 +3374,7 @@ watch(() => entries.value.map(e => ({
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
.sidebar-count {
|
.sidebar-count {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3426,16 +3427,17 @@ watch(() => entries.value.map(e => ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tag-search-bar {
|
.tag-search-bar {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
:deep(.t-input) {
|
:deep(.t-input) {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
background-color: #f7f9fc;
|
background-color: #f7f9fc;
|
||||||
border-color: #e5e9f2;
|
border-color: #e5e9f2;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.t-input__inner) {
|
:deep(.t-input__inner) {
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.t-input__prefix-icon) {
|
:deep(.t-input__prefix-icon) {
|
||||||
@@ -3446,7 +3448,7 @@ watch(() => entries.value.map(e => ({
|
|||||||
.faq-tag-list {
|
.faq-tag-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 5px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -3463,12 +3465,12 @@ watch(() => entries.value.map(e => ({
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 8px;
|
padding: 8px 10px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: #4e5969;
|
color: #4e5969;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
|
|
||||||
.faq-tag-left {
|
.faq-tag-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -3497,20 +3499,22 @@ watch(() => entries.value.map(e => ({
|
|||||||
.faq-tag-right {
|
.faq-tag-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 6px;
|
||||||
margin-left: 6px;
|
margin-left: 8px;
|
||||||
min-width: 0;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.faq-tag-count {
|
.faq-tag-count {
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
color: #86909c;
|
color: #86909c;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 2px 5px;
|
min-width: 28px;
|
||||||
|
padding: 3px 6px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #f7f9fc;
|
background: #f7f9fc;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -3692,15 +3696,15 @@ watch(() => entries.value.map(e => ({
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.faq-search-bar {
|
.faq-search-bar {
|
||||||
padding: 0px 0px 10px 0px;
|
padding: 0 0 12px 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.faq-search-input {
|
.faq-search-input {
|
||||||
@@ -3789,7 +3793,7 @@ watch(() => entries.value.map(e => ({
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 20px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.faq-header-title {
|
.faq-header-title {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
{{ org.share_count ?? 0 }}
|
{{ org.share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
<span class="org-meta-tag">
|
<span class="org-meta-tag">
|
||||||
<img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />
|
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
|
||||||
{{ org.agent_share_count ?? 0 }}
|
{{ org.agent_share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
{{ getOrgForShare(share.organization_id)?.share_count ?? 0 }}
|
{{ getOrgForShare(share.organization_id)?.share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
<span class="org-meta-tag">
|
<span class="org-meta-tag">
|
||||||
<img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />
|
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
|
||||||
{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}
|
{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -503,6 +503,10 @@ onMounted(async () => {
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
.org-meta-icon-agent {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-actions {
|
.share-actions {
|
||||||
@@ -635,6 +639,10 @@ onMounted(async () => {
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
.org-meta-icon-agent {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -1201,8 +1201,8 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.org-list-container {
|
.org-list-container {
|
||||||
padding: 24px 10px;
|
padding: 24px 32px;
|
||||||
margin: 0 20px;
|
margin: 0 16px;
|
||||||
height: calc(100vh);
|
height: calc(100vh);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -1226,13 +1226,13 @@ onUnmounted(() => {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 16px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1344,13 +1344,13 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.org-card-wrap {
|
.org-card-wrap {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 20px;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.org-card {
|
.org-card {
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||||
@@ -1358,10 +1358,10 @@ onUnmounted(() => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
|
transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
|
||||||
padding: 12px 14px;
|
padding: 18px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 132px;
|
height: 160px;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
@@ -1398,20 +1398,48 @@ onUnmounted(() => {
|
|||||||
.card-header {
|
.card-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content,
|
|
||||||
.card-bottom {
|
.card-bottom {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-wrap {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.more-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 卡片装饰:协作网络图形
|
// 卡片装饰:协作网络图形
|
||||||
.card-decoration {
|
.card-decoration {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 6px;
|
top: 8px;
|
||||||
right: 12px;
|
right: 14px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@@ -1421,8 +1449,8 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.card-deco-svg {
|
.card-deco-svg {
|
||||||
display: block;
|
display: block;
|
||||||
width: 48px;
|
width: 56px;
|
||||||
height: 34px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1473,11 +1501,11 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.more-wrap {
|
.more-wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 24px;
|
width: 28px;
|
||||||
height: 24px;
|
height: 28px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
@@ -1498,8 +1526,8 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.more-icon {
|
.more-icon {
|
||||||
width: 14px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user