提交
This commit is contained in:
1 parent
e1d6de45a3
commit
5ad07c8cac
616 files changed
+181132
-35125
No files matched your search
@@ -409,7 +409,7 @@
|
||||
}
|
||||
|
||||
&.green::before {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
}
|
||||
|
||||
&.red::before {
|
||||
@@ -427,7 +427,7 @@
|
||||
margin-left: 4px;
|
||||
|
||||
&.green {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
&.red {
|
||||
@@ -514,9 +514,9 @@
|
||||
z-index: 1;
|
||||
|
||||
&.done {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
color: #fff;
|
||||
box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
|
||||
box-shadow: 0 0 0 3px rgb(4 120 87 / 15%);
|
||||
}
|
||||
|
||||
&.done-red {
|
||||
@@ -547,7 +547,7 @@
|
||||
line-height: 1.3;
|
||||
|
||||
&.done {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -573,7 +573,7 @@
|
||||
z-index: 0;
|
||||
|
||||
&.done {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
}
|
||||
|
||||
&.done-red {
|
||||
@@ -644,7 +644,7 @@
|
||||
flex-shrink: 0;
|
||||
|
||||
&.done {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -672,7 +672,7 @@
|
||||
color: #1e293b;
|
||||
|
||||
&.done {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
&.done-red {
|
||||
@@ -717,7 +717,7 @@
|
||||
}
|
||||
|
||||
&.green {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -771,7 +771,7 @@
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1025,7 +1025,7 @@
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
}
|
||||
|
||||
&--danger:hover {
|
||||
@@ -1038,14 +1038,14 @@
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
padding: 6px 4px;
|
||||
border: 1px dashed #a7f3d0;
|
||||
border: 1px dashed #a8d4c4;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, background 0.2s;
|
||||
|
||||
&:hover {
|
||||
border-color: #10b981;
|
||||
background: #ecfdf5;
|
||||
border-color: #047857;
|
||||
background: #e8f4ee;
|
||||
}
|
||||
|
||||
&.is-loading {
|
||||
@@ -1059,7 +1059,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16px;
|
||||
color: #10b981;
|
||||
color: #047857;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@change="handleAttachmentChange"
|
||||
>
|
||||
<div class="upload-card">
|
||||
<el-icon :size="22" color="#10b981"><Plus /></el-icon>
|
||||
<el-icon :size="22" color="#047857"><Plus /></el-icon>
|
||||
<span class="upload-card-text">上传附件</span>
|
||||
</div>
|
||||
</el-upload>
|
||||
@@ -213,7 +213,7 @@
|
||||
.upload-card {
|
||||
width: 140px;
|
||||
height: 96px;
|
||||
border: 1px dashed #a7f3d0;
|
||||
border: 1px dashed #a8d4c4;
|
||||
border-radius: 8px;
|
||||
background: #f0fdf4;
|
||||
display: flex;
|
||||
@@ -227,15 +227,15 @@
|
||||
background 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #10b981;
|
||||
border-color: #047857;
|
||||
border-style: solid;
|
||||
background: #ecfdf5;
|
||||
background: #e8f4ee;
|
||||
}
|
||||
}
|
||||
|
||||
.upload-card-text {
|
||||
font-size: 12px;
|
||||
color: #10b981;
|
||||
color: #047857;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
}
|
||||
@@ -261,8 +261,8 @@
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #10b981;
|
||||
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
|
||||
border-color: #047857;
|
||||
box-shadow: 0 2px 8px rgba(4, 120, 87, 0.1);
|
||||
}
|
||||
|
||||
&.is-uploading {
|
||||
@@ -355,7 +355,7 @@
|
||||
color 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: #10b981;
|
||||
background: #047857;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,11 +268,11 @@
|
||||
background: none;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
color: #10b981;
|
||||
color: #047857;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,11 +266,11 @@
|
||||
background: none;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
color: #10b981;
|
||||
color: #047857;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #059669;
|
||||
color: #065f46;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,8 +237,8 @@
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 20px 22px;
|
||||
background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%);
|
||||
border-bottom: 1px solid #d9e8e2;
|
||||
background: linear-gradient(135deg, #e8f4ee 0%, #ffffff 55%);
|
||||
border-bottom: 1px solid #c5e0d4;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@@ -246,9 +246,9 @@
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
color: #059669;
|
||||
border: 1px solid rgba(4, 120, 87, 0.2);
|
||||
background: rgba(4, 120, 87, 0.08);
|
||||
color: #065f46;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -289,7 +289,7 @@
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
border-left: 3px solid #10b981;
|
||||
border-left: 3px solid #047857;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
@@ -486,7 +486,7 @@
|
||||
|
||||
.el-dialog__footer {
|
||||
padding: 12px 22px;
|
||||
border-top: 1px solid #d9e8e2;
|
||||
border-top: 1px solid #c5e0d4;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
background: var(--primary-bg, #e8f4ee);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,20 +313,7 @@
|
||||
}
|
||||
|
||||
.menu-item-active {
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
}
|
||||
|
||||
.menu-item-active::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 28px;
|
||||
height: 2px;
|
||||
margin: auto;
|
||||
content: '';
|
||||
background-color: var(--theme-color);
|
||||
border-radius: 2px;
|
||||
background: var(--primary-bg, #e8f4ee);
|
||||
}
|
||||
|
||||
@media (width <= 1440px) {
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
line-height: 64px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
|
||||
background: linear-gradient(135deg, #047857 0%, #0d9d6e 100%);
|
||||
border-bottom: none !important;
|
||||
|
||||
.logo {
|
||||
|
||||
@@ -176,7 +176,7 @@ $popup-menu-radius: 6px;
|
||||
.el-sub-menu .el-menu {
|
||||
margin: 2px 0 6px 10px;
|
||||
padding: 2px 0 2px 8px !important;
|
||||
border-left: 2px solid var(--mint-border, #d9e8e2);
|
||||
border-left: 2px solid var(--mint-border, #c5e0d4);
|
||||
}
|
||||
|
||||
// 菜单折叠
|
||||
@@ -197,9 +197,9 @@ $popup-menu-radius: 6px;
|
||||
.el-menu-design {
|
||||
@include theme-menu-base;
|
||||
@include menu-active(
|
||||
var(--mint-primary-dark, #059669),
|
||||
var(--mint-primary-bg, #ecfdf5),
|
||||
var(--mint-primary-dark, #059669)
|
||||
var(--mint-primary-dark, #065f46),
|
||||
var(--mint-primary-bg, #e8f4ee),
|
||||
var(--mint-primary-dark, #065f46)
|
||||
);
|
||||
@include menu-hover($hover-bg-color);
|
||||
|
||||
@@ -210,7 +210,7 @@ $popup-menu-radius: 6px;
|
||||
|
||||
// 选中态:以浅底+图标强化为主,文字保持中性色(对齐 fresh-mint demo)
|
||||
.el-menu-item.is-active span {
|
||||
color: var(--mint-primary-dark, #059669) !important;
|
||||
color: var(--mint-primary-dark, #065f46) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
@@ -240,17 +240,17 @@ $popup-menu-radius: 6px;
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
background-color: var(--mint-primary-bg, #ecfdf5);
|
||||
color: var(--mint-primary-dark, #059669) !important;
|
||||
background-color: var(--mint-primary-bg, #e8f4ee);
|
||||
color: var(--mint-primary-dark, #065f46) !important;
|
||||
font-weight: 600;
|
||||
|
||||
span {
|
||||
color: var(--mint-primary-dark, #059669) !important;
|
||||
color: var(--mint-primary-dark, #065f46) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
.art-svg-icon {
|
||||
color: var(--mint-primary-dark, #059669) !important;
|
||||
color: var(--mint-primary-dark, #065f46) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,15 +62,12 @@
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
import { useWorktabStore } from '@/store/modules/worktab'
|
||||
import { useMenuStore } from '@/store/modules/menu'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { getFirstSecondLevelMenuPath, isWorkbenchRoute } from '@/utils/navigation/route'
|
||||
import { formatMenuTitle } from '@/utils/router'
|
||||
import { useSettingStore } from '@/store/modules/setting'
|
||||
import { MenuItemType } from '../../others/art-menu-right/index.vue'
|
||||
import { useCommon } from '@/hooks/core/useCommon'
|
||||
import { WorkTab } from '@/types'
|
||||
import type { AppRouteRecord } from '@/types/router'
|
||||
|
||||
defineOptions({ name: 'ArtWorkTab' })
|
||||
|
||||
@@ -90,7 +87,6 @@
|
||||
// 基础设置
|
||||
const { t } = useI18n()
|
||||
const store = useWorktabStore()
|
||||
const menuStore = useMenuStore()
|
||||
const userStore = useUserStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -344,13 +340,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
/** 标签全部关闭后,导航到侧栏第一个二级菜单 */
|
||||
/** 标签全部关闭后的兜底:跳转默认页并保留一个标签 */
|
||||
const navigateToDefaultMenuWhenEmpty = () => {
|
||||
const fromMenu = getFirstSecondLevelMenuPath(menuStore.menuList as AppRouteRecord[])
|
||||
const home = useCommon().homePath.value
|
||||
const fallbackPath = fromMenu || (home && !isWorkbenchRoute(home) ? home : '')
|
||||
if (fallbackPath && route.path !== fallbackPath) {
|
||||
router.push(fallbackPath)
|
||||
if (store.opened.length === 0) {
|
||||
store.navigateToDefaultWithTab()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
right: -80px;
|
||||
width: 360px;
|
||||
height: 360px;
|
||||
background: rgba(16, 185, 129, 0.18);
|
||||
background: rgba(4, 120, 87, 0.18);
|
||||
}
|
||||
|
||||
.exception-page__blob--2 {
|
||||
|
||||
Reference in new issue
Block a user