After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 858 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 379 B |
After Width: | Height: | Size: 227 B |
After Width: | Height: | Size: 352 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 967 B |
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div>
|
||||
看板
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div class="history-list">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="ai-logo">
|
||||
<img src="~@/assets/images/ai/ai-logo.png" alt="" class="logo-img" />
|
||||
<span class="logo-title">AI助手</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup></script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ai-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 50px;
|
||||
.logo-img {
|
||||
height: 36px;
|
||||
width: 36px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.logo-title {
|
||||
font-size: 28px;
|
||||
color: #ffffff;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,80 @@
|
||||
<template>
|
||||
<div class="ai-container">
|
||||
<div class="left-menu">
|
||||
<ai-logo></ai-logo>
|
||||
<div class="menu-list">
|
||||
<router-link
|
||||
class="menu-item flex-box"
|
||||
active-class="active-link"
|
||||
:to="item.path"
|
||||
v-for="(item, index) in menuList"
|
||||
:key="index"
|
||||
>
|
||||
<n-icon size="20">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<path
|
||||
d="M368.5 240H272v-96.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-96.5c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7H240v96.5c0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7 8.8 0 16-7.2 16-16V272h96.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
|
||||
/>
|
||||
</svg> </n-icon
|
||||
>新建{{ item.name }}
|
||||
</router-link>
|
||||
</div>
|
||||
<ai-history></ai-history>
|
||||
</div>
|
||||
<div class="right-container">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import AiLogo from '../AI/components/logo/index.vue'
|
||||
import AiHistory from '../AI/components/history/index.vue'
|
||||
const menuList = [
|
||||
{ name: '聊天', path: '/chat' },
|
||||
{ name: '数据看板', path: '/board' }
|
||||
]
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ai-container {
|
||||
height: 100vh;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
.left-menu {
|
||||
width: 12%;
|
||||
box-sizing: border-box;
|
||||
padding: 50px 20px;
|
||||
background: url('../../assets/images/ai/menu-bg.png');
|
||||
background-size: 100% 100%;
|
||||
.menu-item {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
height: 38px;
|
||||
border-radius: 4px 4px 4px 4px;
|
||||
border: 1px solid #474d59;
|
||||
margin-bottom: 20px;
|
||||
letter-spacing: 2px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.active-link , .menu-item:active {
|
||||
color: #507afc;
|
||||
border-color: #507afc;
|
||||
background: rgba(80, 122, 252, 0.2);
|
||||
}
|
||||
}
|
||||
.right-container {
|
||||
flex: 1;
|
||||
padding: 20px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
</style>
|