美化一下后台
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
------------------------------ */
|
------------------------------ */
|
||||||
.header {
|
.header {
|
||||||
height: 58px;
|
height: 58px;
|
||||||
padding: 0 24px;
|
padding: 0 16px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-bottom: 1px solid #e5e6eb;
|
border-bottom: 1px solid #e5e6eb;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
.header-logo {
|
.header-logo {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
margin-right: 12px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-right {
|
.header-right {
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
margin-right: 12px;
|
margin-right: 8px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #444;
|
color: #444;
|
||||||
}
|
}
|
||||||
@@ -111,8 +111,8 @@
|
|||||||
.el-menu-item {
|
.el-menu-item {
|
||||||
height: 46px !important;
|
height: 46px !important;
|
||||||
line-height: 46px !important;
|
line-height: 46px !important;
|
||||||
margin: 4px 8px !important;
|
margin: 2px 4px !important;
|
||||||
border-radius: 8px !important;
|
border-radius: 0 !important;
|
||||||
transition: 0.2s !important;
|
transition: 0.2s !important;
|
||||||
}
|
}
|
||||||
.el-menu-item:hover {
|
.el-menu-item:hover {
|
||||||
@@ -129,16 +129,39 @@
|
|||||||
------------------------------ */
|
------------------------------ */
|
||||||
.content {
|
.content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 24px;
|
padding: 16px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 全局卡片样式统一 */
|
/* 全局卡片样式统一 */
|
||||||
.el-card {
|
.el-card {
|
||||||
border-radius: 12px !important;
|
border-radius: 0 !important;
|
||||||
box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
|
box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
|
||||||
border: 1px solid #e5e6eb !important;
|
border: 1px solid #e5e6eb !important;
|
||||||
}
|
}
|
||||||
|
.el-card__body {
|
||||||
|
padding: 12px !important;
|
||||||
|
}
|
||||||
|
.el-button {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.el-input__inner {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.el-select .el-input__inner {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.el-tag {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.el-dialog,
|
||||||
|
.el-message-box {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.el-form--inline .el-form-item {
|
||||||
|
margin-right: 8px !important;
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Element UI CSS -->
|
<!-- Element UI CSS -->
|
||||||
@@ -204,7 +227,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
<!-- 时间范围选择器 -->
|
<!-- 时间范围选择器 -->
|
||||||
<el-row v-if="showTimeRangeSelector" :gutter="20" style="margin-bottom:20px;">
|
<el-row v-if="showTimeRangeSelector" :gutter="12" style="margin-bottom:16px;">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
|
|||||||
@@ -174,6 +174,8 @@ class DifyPlugin(MessagePluginInterface):
|
|||||||
# target, "⏳AI 正在加油,请稍候… 😊", sender if roomid else "")
|
# target, "⏳AI 正在加油,请稍候… 😊", sender if roomid else "")
|
||||||
# revoke.add_message_to_revoke(target, client_msg_id, create_time, new_msg_id, 3)
|
# revoke.add_message_to_revoke(target, client_msg_id, create_time, new_msg_id, 3)
|
||||||
|
|
||||||
|
# TODO,支持@ 消息(比如:图片引用,文本聊天引用,视频引用)
|
||||||
|
# 需要根据引用的信息,进行相关资源下载。如果是表情,则不理解。
|
||||||
# 调用Dify API获取回复
|
# 调用Dify API获取回复
|
||||||
success, response = await self._chat_with_dify(target, sender, query)
|
success, response = await self._chat_with_dify(target, sender, query)
|
||||||
if not success:
|
if not success:
|
||||||
|
|||||||
Reference in New Issue
Block a user