feat:知识库
This commit is contained in:
parent
7ff5df4758
commit
2a9cfd6173
@ -8,7 +8,7 @@
|
|||||||
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
|
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
|
||||||
</AppAvatar>
|
</AppAvatar>
|
||||||
</slot>
|
</slot>
|
||||||
<h4 class="ellipsis-1" style="width: 80%">{{ title }}</h4>
|
<h4 class="ellipsis-1" style="width: 65%">{{ title }}</h4>
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -31,22 +31,41 @@
|
|||||||
class="cursor"
|
class="cursor"
|
||||||
@click="router.push({ path: `/dataset/${item.id}/document` })"
|
@click="router.push({ path: `/dataset/${item.id}/document` })"
|
||||||
>
|
>
|
||||||
<template #mouseEnter>
|
<div class="delete-button">
|
||||||
<el-tooltip effect="dark" content="删除" placement="top">
|
<el-tag v-if="item.type === '0'">通用型</el-tag>
|
||||||
<el-button text @click.stop="deleteDateset(item)" class="delete-button">
|
<el-tag v-else-if="item.type === '1'" type="warning">Web 站点</el-tag>
|
||||||
<el-icon><Delete /></el-icon>
|
</div>
|
||||||
</el-button>
|
|
||||||
</el-tooltip>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="footer-content">
|
<div class="footer-content flex-between">
|
||||||
<span class="bold">{{ item?.document_count || 0 }}</span>
|
<div>
|
||||||
文档<el-divider direction="vertical" />
|
<span class="bold">{{ item?.document_count || 0 }}</span>
|
||||||
<span class="bold">{{ numberFormat(item?.char_length) || 0 }}</span>
|
文档<el-divider direction="vertical" />
|
||||||
字符<el-divider direction="vertical" />
|
<span class="bold">{{ numberFormat(item?.char_length) || 0 }}</span>
|
||||||
<span class="bold">{{ item?.application_mapping_count || 0 }}</span>
|
字符<el-divider direction="vertical" />
|
||||||
关联应用
|
<span class="bold">{{ item?.application_mapping_count || 0 }}</span>
|
||||||
|
关联应用
|
||||||
|
</div>
|
||||||
|
<div @click.stop>
|
||||||
|
<el-dropdown trigger="click">
|
||||||
|
<span class="el-dropdown-link cursor">
|
||||||
|
<el-icon><MoreFilled /></el-icon>
|
||||||
|
</span>
|
||||||
|
<template #dropdown>
|
||||||
|
<el-dropdown-menu>
|
||||||
|
<el-dropdown-item icon="Refresh" v-if="item.type === '1'">同步</el-dropdown-item>
|
||||||
|
<el-dropdown-item
|
||||||
|
icon="Setting"
|
||||||
|
@click.stop="router.push({ path: `/dataset/${item.id}/setting` })"
|
||||||
|
>设置</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item icon="Delete" @click.stop="deleteDateset(item)"
|
||||||
|
>删除</el-dropdown-item
|
||||||
|
>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</template>
|
||||||
|
</el-dropdown>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</CardBox>
|
</CardBox>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user