refactor(agent): 重构智能体页面布局和样式
-调整了智能体卡片的布局结构,优化了标题和描述的显示方式 - 改进了历史对话的展示样式,增加了滚动指示器 - 统一了标签和图标的样式,提升了视觉一致性 - 优化了搜索框和卡片列表的样式,提高了用户体验
This commit is contained in:
@ -9,7 +9,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
name: 'Agent',
|
name: 'Agent',
|
||||||
redirect: 'agent/index',
|
redirect: 'agent/index',
|
||||||
meta: {
|
meta: {
|
||||||
locale: '扣子智能体',
|
locale: '灵机ai',
|
||||||
icon: IconRepository,
|
icon: IconRepository,
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
requireLogin: true,
|
requireLogin: true,
|
||||||
@ -22,7 +22,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
name: 'AgentIndex',
|
name: 'AgentIndex',
|
||||||
component: () => import('@/views/agent/index'),
|
component: () => import('@/views/agent/index'),
|
||||||
meta: {
|
meta: {
|
||||||
locale:'ai应用',
|
locale:'智能体应用',
|
||||||
requiresAuth: false,
|
requiresAuth: false,
|
||||||
requireLogin: true,
|
requireLogin: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<div class="title-group">
|
<div class="title-group">
|
||||||
<div class="title">{{cozeInfo.name}}</div>
|
<div class="title">{{cozeInfo.name}}</div>
|
||||||
<div class="tag">
|
<div class="tag">
|
||||||
<div class="">
|
<div>
|
||||||
<img
|
<img
|
||||||
class="status-icon"
|
class="status-icon"
|
||||||
:src="chatbotIcon"
|
:src="chatbotIcon"
|
||||||
|
|||||||
@ -37,8 +37,7 @@
|
|||||||
|
|
||||||
.info-section {
|
.info-section {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
padding-top: 15px;
|
padding: 15px;
|
||||||
padding-bottom: 15px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
@ -139,7 +138,7 @@
|
|||||||
font-family: 'Alibaba PuHuiTi', sans-serif;
|
font-family: 'Alibaba PuHuiTi', sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
padding: 10px;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<span class="" @click="goChatIndex"> <icon-left /> 返回空间 </span>
|
<span class="" @click="goChatIndex"> <icon-left /> 返回空间 </span>
|
||||||
<div class="chat-contain">
|
<div class="chat-contain">
|
||||||
<a-layout>
|
<a-layout>
|
||||||
<a-layout-sider width="15%" style="background: #fff">
|
<a-layout-sider class="custom-sider" >
|
||||||
<HistoryChat v-if="cozeInfo?.bot_id" :cozeInfo="cozeInfo" />
|
<HistoryChat v-if="cozeInfo?.bot_id" :cozeInfo="cozeInfo" />
|
||||||
</a-layout-sider>
|
</a-layout-sider>
|
||||||
<a-layout>
|
<a-layout>
|
||||||
@ -136,4 +136,5 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import './style.scss';
|
@import './style.scss';
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -24,4 +24,19 @@
|
|||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
}
|
}
|
||||||
|
.custom-sider {
|
||||||
|
width: 20% !important; // 强制覆盖
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1400px) and (max-width: 1799px) {
|
||||||
|
.custom-sider {
|
||||||
|
width: 30% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1800px) {
|
||||||
|
.custom-sider {
|
||||||
|
width: 15% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,11 @@
|
|||||||
<div v-for="(item, index) in list" :key="index">
|
<div v-for="(item, index) in list" :key="index">
|
||||||
<span class="span-title">{{ item.name }}</span>
|
<span class="span-title">{{ item.name }}</span>
|
||||||
<a-row class="grid-demo" :gutter="24" v-if="item.agent_products.length > 0">
|
<a-row class="grid-demo" :gutter="24" v-if="item.agent_products.length > 0">
|
||||||
<a-col :span="3" v-for="(product, k) in item.agent_products">
|
<a-col :xs="24"
|
||||||
|
:sm="12"
|
||||||
|
:md="8"
|
||||||
|
:lg="6"
|
||||||
|
:xl="4" v-for="(product, k) in item.agent_products">
|
||||||
<div class="card-container" @click="goDetail(product?.type, product?.id)">
|
<div class="card-container" @click="goDetail(product?.type, product?.id)">
|
||||||
<div class="card-image-container">
|
<div class="card-image-container">
|
||||||
<img
|
<img
|
||||||
|
|||||||
Reference in New Issue
Block a user