AIManage/src/App.vue

203 lines
4.0 KiB
Vue
Raw Normal View History

2024-05-21 01:41:47 +08:00
<template>
<el-config-provider :locale="locale" :size="size">
<!-- 开启水印 -->
2024-07-09 00:40:30 +08:00
<el-watermark v-if="watermarkEnabled" :font="{ color: fontColor }" :content="defaultSettings.watermarkContent"
class="wh-full">
2024-05-21 01:41:47 +08:00
<router-view />
</el-watermark>
<!-- 关闭水印 -->
<router-view v-else />
</el-config-provider>
</template>
<script setup lang="ts">
import { useAppStore, useSettingsStore } from "@/store";
import defaultSettings from "@/settings";
import { ThemeEnum } from "@/enums/ThemeEnum";
import { SizeEnum } from "@/enums/SizeEnum";
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const locale = computed(() => appStore.locale);
const size = computed(() => appStore.size as SizeEnum);
const watermarkEnabled = computed(() => settingsStore.watermarkEnabled);
// 明亮/暗黑主题水印字体颜色适配
const fontColor = computed(() => {
return settingsStore.theme === ThemeEnum.DARK
? "rgba(255, 255, 255, .15)"
: "rgba(0, 0, 0, .15)";
});
</script>
2024-06-19 00:20:35 +08:00
<style lang="scss">
2024-07-09 00:40:30 +08:00
.router-link-active .el-menu-item {
2024-06-19 00:20:35 +08:00
background-color: #EEF3FB;
border-right: solid 3px var(--el-color-primary);
}
2024-07-09 00:40:30 +08:00
2024-06-20 21:31:53 +08:00
.table-container .el-form-item--default {
margin-bottom: 0px !important;
}
2024-07-09 00:40:30 +08:00
.el-table__header {
th {
2024-06-26 23:58:18 +08:00
background-color: #edebeb6e !important;
}
}
2024-07-09 00:40:30 +08:00
.el-pagination {
2024-06-26 23:58:18 +08:00
justify-content: end;
}
2024-07-09 00:40:30 +08:00
.scroll::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.scroll::-webkit-scrollbar-thumb {
background-color: rgb(1, 169, 255);
border-radius: 4px;
}
2024-07-19 00:41:51 +08:00
.lf-ai-node,
.lf-element-text {
cursor: pointer !important;
2024-07-12 00:14:57 +08:00
}
2024-07-19 00:41:51 +08:00
.card-footer {
2024-07-17 00:30:15 +08:00
z-index: 99;
}
2024-07-19 00:41:51 +08:00
.command {
cursor: pointer;
}
.blue {
color: var(--el-color-primary);
}
2024-12-20 23:46:01 +08:00
</style>
<style lang="scss">
html.dark {
.dashboard-container {
.top-row1 {
.top-row {
.div-title {
color: #3399ff;
}
.div-num {
color: #aaa
}
}
}
.top-row2 {
.dev-item {
.el-card {
2024-12-22 22:35:16 +08:00
background: #2B3553;
2024-12-20 23:46:01 +08:00
.dev-title {
svg * {
fill: #fff !important;
}
}
.el-card__body {
2024-12-22 22:35:16 +08:00
background: #2B3553;
2024-12-20 23:46:01 +08:00
color: #aaa;
}
}
}
}
.right-panel {
.top-row2.notice-card {
.el-card__header {
border-bottom: 1px solid #5e6572;
div {
color: #fff !important;
}
}
.notice-item {
.row-1 {
color: #aaa !important;
}
.row-2 {
border-bottom: 1px solid #5e6572 !important;
}
}
}
}
.proc-card{
.el-card__header{
.row2-top{
div{
color:#fff !important;
}
}
}
2024-12-22 23:48:55 +08:00
&.model-proc{
.el-card__body{
background-image: url(images/procbg.png) !important;
background-size: 100% 100% !important;
}
}
2024-12-20 23:46:01 +08:00
.el-card__body{
background: transparent;
2024-12-22 23:48:55 +08:00
background-size: 100% 100%;
2024-12-20 23:46:01 +08:00
color:#aaa;
2024-12-22 22:35:16 +08:00
box-shadow: none;
2024-12-22 23:48:55 +08:00
.model-flow .card-item .div-img{
background: transparent;
}
.model-flow .card-item.is-active .div-img{
background: #3399ff;
}
.model-flow2 .card-item .div-img{
background: transparent;
}
.model-flow2 .card-item.is-active .div-img{
background: #3399ff;
}
2024-12-20 23:46:01 +08:00
.el-badge__content--danger{
background: #6F89A6;
width: 24px;
height: 24px;
text-align: center;
line-height: 24px;
border-radius: 12px;
}
}
}
.proc-card.server-status{
2024-12-22 22:35:16 +08:00
background: #242B43;
2024-12-20 23:46:01 +08:00
.el-card__header{
.row2-top{
div{
color:#fff !important;
}
}
}
}
}
2024-12-21 12:53:01 +08:00
.jv-container.jv-light{
2024-12-22 22:35:16 +08:00
background: #242B43;
2024-12-21 12:53:01 +08:00
}
.add-report .row-norm .el-form-item__content{
2024-12-22 22:35:16 +08:00
background: #242B43;
2024-12-21 12:53:01 +08:00
}
.add-report .div-nav-header{
color:#fff;
}
2024-12-20 23:46:01 +08:00
}
</style>