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
72880448dd
commit
e0c95cf6b6
|
|
@ -11,22 +11,36 @@
|
|||
<AppIcon iconName="app-copy"></AppIcon>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
|
||||
<el-divider direction="vertical" />
|
||||
<el-tooltip effect="dark" content="修改内容" placement="top">
|
||||
<el-button text @click="editContent(data)">
|
||||
<el-icon><EditPen /></el-icon>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
<el-divider direction="vertical" />
|
||||
<el-tooltip effect="dark" content="修改历史" placement="top">
|
||||
<el-button text @click="editContent(data)">
|
||||
<el-icon><Document /></el-icon>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
|
||||
<!-- <el-divider direction="vertical" />
|
||||
<el-tooltip placement="bottom-start" effect="dark" content="修改内容">
|
||||
<el-popover :width="580" trigger="click">
|
||||
<template #reference>
|
||||
<el-button text>
|
||||
<el-icon><Document /></el-icon>
|
||||
</el-button>
|
||||
</template>
|
||||
<h4>修改内容</h4>
|
||||
<el-input
|
||||
v-model="data.content"
|
||||
placeholder="请输入内容"
|
||||
maxlength="1024"
|
||||
show-word-limit
|
||||
:rows="8"
|
||||
type="textarea"
|
||||
>
|
||||
</el-input>
|
||||
</el-popover>
|
||||
</el-tooltip> -->
|
||||
<el-divider direction="vertical" v-if="buttonData?.vote_status !== '-1'" />
|
||||
<el-button text disabled v-if="buttonData?.vote_status === '0'">
|
||||
<AppIcon iconName="app-like-color" class="primary"></AppIcon>
|
||||
<el-button text disabled>
|
||||
<AppIcon iconName="app-like-color"></AppIcon>
|
||||
</el-button>
|
||||
|
||||
<el-button text disabled v-if="buttonData?.vote_status === '1'">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="ai-chat">
|
||||
<div class="ai-chat" :class="log ? 'chart-log' : ''">
|
||||
<el-scrollbar ref="scrollDiv">
|
||||
<div ref="dialogScrollbar" class="ai-chat__content p-24">
|
||||
<div class="item-content mb-16">
|
||||
|
|
@ -324,6 +324,11 @@ onUpdated(() => {
|
|||
box-sizing: border-box;
|
||||
position: relative;
|
||||
color: var(--app-text-color);
|
||||
&.chart-log {
|
||||
.ai-chat__content {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
&__content {
|
||||
padding-top: 0;
|
||||
padding-bottom: 96px;
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ export const iconMap: any = {
|
|||
}),
|
||||
h('path', {
|
||||
d: 'M12.5 1.2666C12.568 1.28633 12.6306 1.32327 12.6812 1.37472L16.5472 5.30797C16.5788 5.34017 16.6047 5.37698 16.6242 5.4168H13.4459C12.9235 5.4168 12.5 4.99328 12.5 4.47085V1.2666Z',
|
||||
fill: 'currentColor'
|
||||
fill: '#2B5FD9'
|
||||
}),
|
||||
h('path', {
|
||||
d: 'M6.71305 7.72705C6.48293 7.72705 6.29639 7.9136 6.29639 8.14372V8.82554C6.29639 9.05565 6.48294 9.2422 6.71305 9.2422H13.2871C13.5172 9.2422 13.7038 9.05565 13.7038 8.82554V8.14372C13.7038 7.9136 13.5172 7.72705 13.2871 7.72705H6.71305Z',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<el-drawer v-model="visible" size="50%" @close="closeHandel" class="chat-record-drawer">
|
||||
<el-drawer v-model="visible" size="600" @close="closeHandel" class="chat-record-drawer">
|
||||
<template #header>
|
||||
<h4>{{ application?.name }}</h4>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="保存至文档" prop="document">
|
||||
<el-cascader v-model="form.document" :props="LoadDocument" placeholder="请选择文档">
|
||||
<el-cascader v-model="form.document" :props="LoadDocument" placeholder="请选择文档" class="w-full">
|
||||
<template #default="{ node, data }">
|
||||
<span class="flex align-center">
|
||||
<AppAvatar v-if="!node.isLeaf" class="mr-12" shape="square" :size="24">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<login-layout>
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 管理平台">
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 智能知识库">
|
||||
<h4 class="mb-24">忘记密码</h4>
|
||||
<el-form
|
||||
class="register-form"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
<template>
|
||||
<login-layout v-loading="loading">
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 管理平台">
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 智能知识库">
|
||||
<h2 class="mb-24">普通登录</h2>
|
||||
<el-form class="login-form" :rules="rules" :model="loginForm" ref="loginFormRef">
|
||||
<el-form
|
||||
class="login-form"
|
||||
:rules="rules"
|
||||
:model="loginForm"
|
||||
ref="loginFormRef"
|
||||
@keyup.enter="login"
|
||||
>
|
||||
<el-form-item prop="username">
|
||||
<el-input
|
||||
size="large"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<login-layout>
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 管理平台">
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 智能知识库">
|
||||
<h4 class="mb-24">用户注册</h4>
|
||||
<el-form class="register-form" :model="registerForm" :rules="rules" ref="registerFormRef">
|
||||
<el-form-item prop="username">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<login-layout>
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 管理平台">
|
||||
<LoginContainer subTitle="欢迎使用 MaxKB 智能知识库">
|
||||
<h4 class="mb-24">修改密码</h4>
|
||||
<el-form
|
||||
class="reset-password-form"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<div class="p-24 pb-0">
|
||||
<h4>{{ active_provider?.name }}</h4>
|
||||
<div class="flex-between mt-16 mb-16">
|
||||
<el-button type="primary" @click="openCreateModel(active_provider)">创建模型</el-button>
|
||||
<el-button type="primary" @click="openCreateModel(active_provider)">添加模型</el-button>
|
||||
<el-input
|
||||
v-model="model_search_form.name"
|
||||
@change="list_model"
|
||||
|
|
|
|||
Loading…
Reference in New Issue