mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat:
This commit is contained in:
parent
9daa8beb11
commit
47d2ed655c
|
|
@ -18,7 +18,7 @@
|
|||
<el-form-item label="引用分段">
|
||||
<template v-for="(item, index) in detail.paragraph_list" :key="index">
|
||||
<CardBox
|
||||
shadow="none"
|
||||
shadow="never"
|
||||
:title="item.title || '-'"
|
||||
class="paragraph-source-card cursor mb-8"
|
||||
:class="item.is_active ? '' : 'disabled'"
|
||||
|
|
|
|||
|
|
@ -69,14 +69,21 @@
|
|||
</el-dropdown-menu>
|
||||
<div class="border-t" style="padding: 8px 11px; min-width: 200px">
|
||||
<template v-if="isApplication">
|
||||
<el-button link @click="router.push({ path: '/application/create' })">
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 创建应用
|
||||
</el-button>
|
||||
<div
|
||||
class="w-full text-left cursor"
|
||||
@click="router.push({ path: '/application/create' })"
|
||||
>
|
||||
<el-button link>
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 创建应用
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="isDataset">
|
||||
<el-button link @click="router.push({ path: '/dataset/create' })">
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 创建知识库
|
||||
</el-button>
|
||||
<div class="w-full text-left cursor" @click="router.push({ path: '/dataset/create' })">
|
||||
<el-button link>
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 创建知识库
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -200,6 +200,9 @@ h4 {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@
|
|||
background: var(--app-text-color-light-1);
|
||||
}
|
||||
}
|
||||
&:focus {
|
||||
color: var(--el-button-text-color);
|
||||
background-color: var(--el-button-bg-color);
|
||||
border-color: var(--el-button-border-color);
|
||||
}
|
||||
}
|
||||
.el-avatar {
|
||||
--el-avatar-bg-color: var(--el-color-primary);
|
||||
|
|
@ -55,6 +60,10 @@
|
|||
.el-message-box__header {
|
||||
padding: 0;
|
||||
}
|
||||
.el-message-box__title {
|
||||
word-break: break-all;
|
||||
width: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
.el-message-box__content {
|
||||
|
|
|
|||
|
|
@ -82,9 +82,11 @@
|
|||
</el-option>
|
||||
</el-option-group>
|
||||
<template #footer>
|
||||
<el-button type="primary" link @click="openCreateModel">
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 添加模型
|
||||
</el-button>
|
||||
<div class="w-full text-left cursor" @click="openCreateModel()">
|
||||
<el-button type="primary" link>
|
||||
<el-icon class="mr-4"><Plus /></el-icon> 添加模型
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
|
|
|||
Loading…
Reference in New Issue