feat: 优化AI助手入口

This commit is contained in:
kuaifan 2025-11-05 01:42:12 +00:00
parent d48287f93a
commit 1b9c0ee4b8
5 changed files with 48 additions and 6 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="480px" height="480px" viewBox="0 0 480 480" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>ai助手</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="路径">
<path d="M360,480 L120,480 C54,480 0,426 0,360 L0,120 C0,54 54,0 120,0 L360,0 C426,0 480,54 480,120 L480,360 C480,426 426,480 360,480 Z" fill="#50BA6D" fill-rule="nonzero"></path>
<path d="M185.743495,146.045932 C186.316266,144.572402 186.999186,143.142857 187.792254,141.779292 C192.580526,132.719447 201.98453,127.03569 212.245184,127 L212.795925,127 C223.06175,127 232.380299,132.674192 237.248855,141.779292 C238.041923,143.142857 238.724843,144.572402 239.297614,146.045932 L335.435079,352.956014 L335.435079,231.906578 C335.435079,220.426236 344.775658,211.101207 356.275144,211.101207 L389.584,211.101207 L389.584,332.172635 C389.584,343.663125 380.253585,352.978007 368.743935,352.978007 L335.435079,352.978007 L335.457109,352.978007 L285.075262,352.978007 C276.822121,352.949401 269.34298,348.12054 265.931481,340.617945 L212.531569,225.616582 L159.109628,340.639938 C155.698129,348.142533 148.218988,352.971394 139.965848,353 L89.584,353 L185.743495,146.045932 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M356.253114,127.835734 L389.539941,127.835734 L389.539941,163.508369 C389.539941,169.026297 387.344297,174.318224 383.436027,178.219988 C379.527756,182.121752 374.227005,184.313741 368.699876,184.313741 L335.41305,184.313741 L335.41305,148.641105 C335.41305,137.160763 344.731599,127.835734 356.253114,127.835734 L356.253114,127.835734 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -293,6 +293,18 @@
</div>
</DrawerOverlay>
<!--AI 助手-->
<DrawerOverlay v-model="aiAssistantShow" placement="right" :size="700">
<template v-if="aiAssistantShow" #title>
{{ $L('AI 助手') }}
</template>
<div v-if="aiAssistantShow" class="ivu-modal-wrap-apply">
<div class="ivu-modal-wrap-apply-body">
<SystemAiAssistant/>
</div>
</div>
</DrawerOverlay>
<!--扫码登录-->
<Modal
v-model="scanLoginShow"
@ -335,6 +347,7 @@ import SystemMeetingNav from "./setting/components/SystemMeetingNav.vue";
import SystemThirdAccess from "./setting/components/SystemThirdAccess";
import SystemEmailSetting from "./setting/components/SystemEmailSetting";
import SystemAppPush from "./setting/components/SystemAppPush";
import SystemAiAssistant from "./setting/components/SystemAiAssistant";
import emitter from "../../store/events";
import {AIBotList, AIModelNames} from "../../utils/ai";
import ImgUpload from "../../components/ImgUpload.vue";
@ -351,7 +364,8 @@ export default {
SystemMeetingNav,
SystemThirdAccess,
SystemEmailSetting,
SystemAppPush
SystemAppPush,
SystemAiAssistant
},
data() {
return {
@ -382,6 +396,8 @@ export default {
//
appPushShow: false,
//
aiAssistantShow: false,
//
exportPopoverShow: false,
//
scanLoginShow: false,
@ -443,6 +459,7 @@ export default {
{type: 'admin', value: "ldap", label: "LDAP", sort: 160},
{type: 'admin', value: "mail", label: "邮件通知", sort: 170},
{type: 'admin', value: "appPush", label: "APP 推送", sort: 180},
{type: 'admin', value: "aiAssistant", label: "AI 助手", sort: 185},
{type: 'admin', value: "complaint", label: "举报管理", sort: 190},
{type: 'admin', value: "exportManage", label: "数据导出", sort: 195},
{type: 'admin', value: "allUser", label: "团队管理", sort: 200},
@ -525,6 +542,9 @@ export default {
case 'appPush':
this.appPushShow = true;
break;
case 'aiAssistant':
this.aiAssistantShow = true;
break;
case 'scan':
$A.eeuiAppScan(this.scanResult);
break;

View File

@ -13,9 +13,6 @@
<TabPane :label="$L('文件设置')" name="fileSetting">
<SystemFileSetting/>
</TabPane>
<TabPane :label="$L('AI 助手')" name="aiAssistant">
<SystemAiAssistant/>
</TabPane>
</Tabs>
</div>
</template>
@ -25,10 +22,9 @@ import SystemSetting from "./components/SystemSetting";
import SystemTaskPriority from "./components/SystemTaskPriority";
import SystemColumnTemplate from "./components/SystemColumnTemplate";
import SystemFileSetting from "./components/SystemFileSetting";
import SystemAiAssistant from "./components/SystemAiAssistant";
export default {
components: {SystemColumnTemplate, SystemTaskPriority, SystemSetting, SystemFileSetting, SystemAiAssistant},
components: {SystemColumnTemplate, SystemTaskPriority, SystemSetting, SystemFileSetting},
data() {
return {
tabAction: 'setting',

View File

@ -243,6 +243,10 @@
&.appstore {
background-image: url("../images/application/appstore.svg");
}
&.ai-assistant {
background-image: url("../images/application/ai-assistant.svg");
}
}
.apply-export-popover {

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="480px" height="480px" viewBox="0 0 480 480" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>ai助手</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="路径">
<path d="M360,480 L120,480 C54,480 0,426 0,360 L0,120 C0,54 54,0 120,0 L360,0 C426,0 480,54 480,120 L480,360 C480,426 426,480 360,480 Z" fill="#50BA6D" fill-rule="nonzero"></path>
<path d="M185.743495,146.045932 C186.316266,144.572402 186.999186,143.142857 187.792254,141.779292 C192.580526,132.719447 201.98453,127.03569 212.245184,127 L212.795925,127 C223.06175,127 232.380299,132.674192 237.248855,141.779292 C238.041923,143.142857 238.724843,144.572402 239.297614,146.045932 L335.435079,352.956014 L335.435079,231.906578 C335.435079,220.426236 344.775658,211.101207 356.275144,211.101207 L389.584,211.101207 L389.584,332.172635 C389.584,343.663125 380.253585,352.978007 368.743935,352.978007 L335.435079,352.978007 L335.457109,352.978007 L285.075262,352.978007 C276.822121,352.949401 269.34298,348.12054 265.931481,340.617945 L212.531569,225.616582 L159.109628,340.639938 C155.698129,348.142533 148.218988,352.971394 139.965848,353 L89.584,353 L185.743495,146.045932 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M356.253114,127.835734 L389.539941,127.835734 L389.539941,163.508369 C389.539941,169.026297 387.344297,174.318224 383.436027,178.219988 C379.527756,182.121752 374.227005,184.313741 368.699876,184.313741 L335.41305,184.313741 L335.41305,148.641105 C335.41305,137.160763 344.731599,127.835734 356.253114,127.835734 L356.253114,127.835734 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB