From 7b7c1c76def12f1267c23b8c0de7ec085d96694b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 20 五月 2026 14:42:00 +0800
Subject: [PATCH] Merge branch 'dev_NEW_pro' of http://114.132.189.42:9002/r/product-inventory-management into dev_NEW_pro
---
src/views/index.vue | 96 +
multiple/config.json | 9
src/assets/styles/sidebar.scss | 100 +
multiple/assets/favicon/JHHGfavicon.ico | 0
src/layout/components/Navbar.vue | 15
src/assets/logo/logo.png | 0
src/assets/styles/variables.module.scss | 4
src/router/index.js | 268 ++--
src/views/login.vue | 1040 +++++++++++++++-----
multiple/assets/logo/JHHGLogo.png | 0
src/components/Hamburger/index.vue | 40
src/layout/components/Sidebar/Logo.vue | 23
src/views/systemArchitecture/index.vue | 1147 ++++++++++++-----------
src/views/productionManagement/productionTraceability/index.vue | 12
src/layout/components/Sidebar/index.vue | 12
src/components/HeaderSearch/index.vue | 83 +
16 files changed, 1,798 insertions(+), 1,051 deletions(-)
diff --git a/multiple/assets/favicon/JHHGfavicon.ico b/multiple/assets/favicon/JHHGfavicon.ico
new file mode 100644
index 0000000..54bbe64
--- /dev/null
+++ b/multiple/assets/favicon/JHHGfavicon.ico
Binary files differ
diff --git a/multiple/assets/logo/JHHGLogo.png b/multiple/assets/logo/JHHGLogo.png
new file mode 100644
index 0000000..3373e60
--- /dev/null
+++ b/multiple/assets/logo/JHHGLogo.png
Binary files differ
diff --git a/multiple/config.json b/multiple/config.json
index f63484e..03d45fc 100644
--- a/multiple/config.json
+++ b/multiple/config.json
@@ -195,6 +195,15 @@
"logo": "logo/JXSMLogo.png",
"favicon": "favicon/JXSMico.ico"
},
+ "JHHG": {
+ "env": {
+ "VITE_APP_TITLE": "瀹佸涔濇硴鍖栧伐绉戞妧鏈夐檺鍏徃",
+ "VITE_BASE_API": "http://42.63.70.90:9001",
+ "VITE_JAVA_API": "http://42.63.70.90:9002"
+ },
+ "logo": "logo/JHHGLogo.png",
+ "favicon": "favicon/JHHGfavicon.ico"
+ },
"logo": "/src/assets/logo/logo.png",
"favicon": "/public/favicon.ico"
}
diff --git a/src/assets/logo/logo.png b/src/assets/logo/logo.png
index 0a486cd..a5831b8 100644
--- a/src/assets/logo/logo.png
+++ b/src/assets/logo/logo.png
Binary files differ
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 2248431..685a0eb 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -22,7 +22,7 @@
overflow: hidden;
padding: 0;
font-size: 0;
- background: linear-gradient(180deg, #123b63 0%, #153f69 48%, #0f2d4f 100%);
+ background: var(--sidebar-bg);
border-right: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
isolation: isolate;
@@ -417,25 +417,101 @@
> .el-menu--popup {
max-height: 100vh;
- overflow-y: auto;
+ overflow: hidden;
padding: 10px;
border-radius: 14px;
- border: 1px solid rgba(163, 194, 236, 0.26);
- box-shadow: var(--shadow-md);
- background: rgba(16, 49, 89, 0.96);
+ position: relative;
+ isolation: isolate;
+ border: 1px solid rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.26);
+ box-shadow:
+ 0 18px 40px rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.16),
+ var(--shadow-md);
+ background: var(--sidebar-bg);
backdrop-filter: blur(16px);
- &::-webkit-scrollbar-track-piece {
- background: var(--surface-muted);
+ &::before {
+ content: "";
+ position: absolute;
+ inset: -28% -52% -18% -38%;
+ z-index: 0;
+ pointer-events: none;
+ background:
+ radial-gradient(circle at 9% 12%, rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.62), transparent 44%),
+ radial-gradient(circle at 87% 18%, rgba(56, 189, 248, 0.4), transparent 48%),
+ radial-gradient(circle at 20% 82%, rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.3), transparent 43%),
+ radial-gradient(circle at 66% 62%, rgba(125, 211, 252, 0.24), transparent 50%),
+ conic-gradient(
+ from 210deg at 58% 38%,
+ rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.14) 0deg,
+ rgba(56, 189, 248, 0.05) 76deg,
+ rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.16) 180deg,
+ rgba(125, 211, 252, 0.04) 290deg,
+ rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.14) 360deg
+ );
+ filter: blur(7px) saturate(1.24) contrast(1.05);
+ opacity: 0.96;
+ transform: translate3d(0, 0, 0);
+ transform-origin: 44% 58%;
+ animation:
+ sidebarAuroraDrift 17.9s cubic-bezier(0.31, 0.03, 0.18, 0.99) infinite,
+ sidebarAuroraBreath 9.7s ease-in-out infinite,
+ sidebarAuroraSkew 6.9s steps(23, end) infinite;
}
- &::-webkit-scrollbar {
- width: 5px;
+ &::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ pointer-events: none;
+ background:
+ linear-gradient(
+ 108deg,
+ transparent 10%,
+ rgba(255, 255, 255, 0.17) 34%,
+ rgba(255, 255, 255, 0.04) 48%,
+ transparent 72%
+ ),
+ linear-gradient(
+ 202deg,
+ rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.24) 0%,
+ transparent 34%,
+ rgba(56, 189, 248, 0.18) 66%,
+ transparent 100%
+ ),
+ radial-gradient(circle at 74% 12%, rgba(125, 211, 252, 0.25), transparent 50%),
+ radial-gradient(circle at 22% 84%, rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.14), transparent 56%);
+ background-size: 236% 100%, 186% 186%, 164% 164%, 180% 180%;
+ background-position: 224% 0, 14% 16%, 78% 10%, 18% 82%;
+ opacity: 0.52;
+ transform: translate3d(0, 0, 0);
+ animation:
+ sidebarSheenSweep 13.1s linear infinite,
+ sidebarSheenJitter 4.7s steps(31, end) infinite;
}
- &::-webkit-scrollbar-thumb {
- background: var(--accent-light);
- border-radius: 10px;
+ > * {
+ position: relative;
+ z-index: 1;
+ }
+
+ > .el-menu {
+ max-height: calc(100vh - 20px);
+ overflow-y: auto;
+ overflow-x: hidden;
+
+ &::-webkit-scrollbar-track-piece {
+ background: var(--surface-muted);
+ }
+
+ &::-webkit-scrollbar {
+ width: 5px;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background: var(--accent-light);
+ border-radius: 10px;
+ }
}
}
}
diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss
index baa53d5..461b545 100644
--- a/src/assets/styles/variables.module.scss
+++ b/src/assets/styles/variables.module.scss
@@ -85,7 +85,7 @@
--menu-hover: rgba(147, 197, 253, 0.2);
--menu-active-bg: linear-gradient(135deg, #2f80ff 0%, #38bdf8 100%);
--menu-active-text: #f8fbff;
- --menu-surface: rgba(13, 43, 79, 0.94);
+ --menu-surface: linear-gradient(180deg, rgba(13, 43, 79, 0.97) 0%, rgba(8, 28, 52, 0.94) 100%);
--menu-active-glow: 0 8px 18px rgba(56, 139, 255, 0.28);
--app-bg: #f3f7fc;
@@ -140,7 +140,7 @@
--menu-hover: rgba(147, 197, 253, 0.2);
--menu-active-bg: linear-gradient(135deg, #2f80ff 0%, #38bdf8 100%);
--menu-active-text: #f8fbff;
- --menu-surface: rgba(13, 43, 79, 0.94);
+ --menu-surface: linear-gradient(180deg, rgba(13, 43, 79, 0.97) 0%, rgba(8, 28, 52, 0.94) 100%);
--text-primary: #1e293b;
--text-secondary: #334155;
diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue
index 3ea9388..c35557f 100644
--- a/src/components/Hamburger/index.vue
+++ b/src/components/Hamburger/index.vue
@@ -1,8 +1,8 @@
-<template>
- <div style="padding: 0 15px;" @click="toggleClick">
- <svg
- :class="{'is-active':isActive}"
- class="hamburger"
+<template>
+ <div class="hamburger-wrap" @click="toggleClick">
+ <svg
+ :class="{'is-active':isActive}"
+ class="hamburger"
viewBox="0 0 1024 1024"
xmlns="http://www.w3.org/2000/svg"
width="64"
@@ -28,15 +28,23 @@
}
</script>
-<style scoped>
-.hamburger {
- display: inline-block;
- vertical-align: middle;
- width: 20px;
- height: 20px;
-}
-
-.hamburger.is-active {
- transform: rotate(180deg);
-}
+<style scoped>
+.hamburger-wrap {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.hamburger {
+ display: inline-block;
+ vertical-align: middle;
+ width: 22px;
+ height: 22px;
+}
+
+.hamburger.is-active {
+ transform: rotate(180deg);
+}
</style>
diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue
index b57fe69..a81dd98 100644
--- a/src/components/HeaderSearch/index.vue
+++ b/src/components/HeaderSearch/index.vue
@@ -1,13 +1,13 @@
<template>
<div class="header-search">
<svg-icon class-name="search-icon" icon-class="search" @click.stop="click" />
- <el-dialog
- v-model="show"
- width="600"
- @close="close"
- :show-close="false"
- append-to-body
- >
+ <el-dialog
+ v-model="show"
+ width="600"
+ @close="close"
+ :show-close="true"
+ append-to-body
+ >
<el-input
v-model="search"
ref="headerSearchSelectRef"
@@ -40,28 +40,51 @@
</div>
</template>
-<script setup>
-import Fuse from 'fuse.js'
-import { getNormalPath } from '@/utils/ruoyi'
-import { isHttp } from '@/utils/validate'
-import usePermissionStore from '@/store/modules/permission'
-
-const search = ref('')
-const options = ref([])
-const searchPool = ref([])
-const show = ref(false)
+<script setup>
+import Fuse from 'fuse.js'
+import { getNormalPath } from '@/utils/ruoyi'
+import { isHttp } from '@/utils/validate'
+import usePermissionStore from '@/store/modules/permission'
+
+const props = defineProps({
+ keyword: {
+ type: String,
+ default: ''
+ }
+})
+
+const search = ref('')
+const options = ref([])
+const searchPool = ref([])
+const show = ref(false)
const fuse = ref(undefined)
const headerSearchSelectRef = ref(null)
const router = useRouter()
const routes = computed(() => usePermissionStore().defaultRoutes)
-function click() {
- show.value = !show.value
- if (show.value) {
- headerSearchSelectRef.value && headerSearchSelectRef.value.focus()
- options.value = searchPool.value
- }
-}
+function click() {
+ show.value = !show.value
+ if (show.value) {
+ syncSearchFromKeyword()
+ nextTick(() => {
+ headerSearchSelectRef.value && headerSearchSelectRef.value.focus()
+ })
+ }
+}
+
+function syncSearchFromKeyword() {
+ search.value = props.keyword?.trim?.() ?? ''
+ querySearch(search.value)
+}
+
+function open(keyword = props.keyword) {
+ show.value = true
+ search.value = keyword?.trim?.() ?? ''
+ querySearch(search.value)
+ nextTick(() => {
+ headerSearchSelectRef.value && headerSearchSelectRef.value.focus()
+ })
+}
function close() {
headerSearchSelectRef.value && headerSearchSelectRef.value.blur()
@@ -160,10 +183,14 @@
searchPool.value = generateRoutes(routes.value)
})
-watch(searchPool, (list) => {
- initFuse(list)
-})
-</script>
+watch(searchPool, (list) => {
+ initFuse(list)
+})
+
+defineExpose({
+ open
+})
+</script>
<style lang='scss' scoped>
.header-search {
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0901626..aae5330 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -15,13 +15,18 @@
</div>
<div class="center-zone">
- <el-icon class="search-icon"><Search /></el-icon>
+ <el-icon class="search-icon" @click="openHeaderSearch"><Search /></el-icon>
<el-input
v-model="topSearchKeyword"
placeholder="鎼滅储鑿滃崟 / 鍔熻兘 / 鏁版嵁"
clearable
+ @keyup.enter="openHeaderSearch"
/>
- <header-search class="search-popup-trigger" />
+ <header-search
+ ref="headerSearchRef"
+ :keyword="topSearchKeyword"
+ class="search-popup-trigger"
+ />
</div>
<div class="right-menu">
@@ -95,12 +100,17 @@
const settingsStore = useSettingsStore();
const topSearchKeyword = ref("");
+const headerSearchRef = ref(null);
const notificationVisible = ref(false);
const notificationCenterRef = ref(null);
const unreadCount = ref(0);
function toggleSideBar() {
appStore.toggleSideBar();
+}
+
+function openHeaderSearch() {
+ headerSearchRef.value?.open(topSearchKeyword.value);
}
function handleCommand(command) {
@@ -226,6 +236,7 @@
.search-icon {
color: #5b86c9;
+ cursor: pointer;
}
.center-zone :deep(.el-input__wrapper) {
diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index d0d3a8c..1a66c4a 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -164,6 +164,8 @@
&.collapse {
.sidebar-logo-link {
+ display: flex;
+ align-items: center;
justify-content: center;
padding: 0;
@@ -174,19 +176,22 @@
}
.sidebar-logo {
- width: 100%;
- height: 100%;
- max-width: 30px;
- max-height: 30px;
- padding: 0;
+ width: calc(100% - 8px);
+ height: calc(100% - 8px);
+ max-width: none;
+ max-height: none;
+ padding: 4px;
+ margin: 0 auto;
filter: none;
+ object-fit: contain;
+ object-position: center;
}
.sidebar-favicon {
- width: 28px;
- height: 28px;
- max-width: 28px;
- max-height: 28px;
+ width: calc(100% - 8px);
+ height: calc(100% - 8px);
+ max-width: none;
+ max-height: none;
}
}
}
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index da2a7fa..2a58c29 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -77,14 +77,18 @@
color: v-bind(getMenuTextColor);
font-size: 14px;
letter-spacing: 0;
- transition: all 0.28s ease;
+ transition:
+ transform 0.18s ease,
+ background 0.2s ease,
+ box-shadow 0.2s ease,
+ color 0.2s ease;
border: none !important;
display: flex;
align-items: center;
&:hover {
background: linear-gradient(128deg, rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.28), rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.08)) !important;
- transform: translateX(3px);
+ transform: translate3d(2px, 0, 0);
}
}
@@ -93,12 +97,10 @@
&.is-active {
background: var(--menu-active-bg, linear-gradient(135deg, var(--el-color-primary), var(--el-color-primary-light-3))) !important;
- background-size: 180% 180%;
color: var(--menu-active-text) !important;
font-weight: 500;
border-radius: 14px;
box-shadow: var(--menu-active-glow, 0 10px 24px rgba(var(--el-color-primary-rgb, 37, 99, 235), 0.34));
- animation: sidebarActiveFlow 4.6s ease infinite;
.svg-icon {
color: var(--menu-active-text) !important;
@@ -121,7 +123,7 @@
font-size: 14px !important;
color: currentColor !important;
opacity: 0.7;
- transition: all 0.25s ease;
+ transition: transform 0.2s ease, opacity 0.2s ease;
}
:deep(.el-sub-menu.is-opened .el-sub-menu__icon-arrow) {
diff --git a/src/router/index.js b/src/router/index.js
index 66ff11b..7be3668 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,20 +47,6 @@
component: () => import("@/views/register"),
hidden: true,
},
- // // 绯荤粺鏋舵瀯鍥�
- // {
- // path: "/system-architecture",
- // component: Layout,
- // redirect: "/system-architecture/index",
- // children: [
- // {
- // path: "index",
- // component: () => import("@/views/systemArchitecture/index.vue"),
- // name: "SystemArchitecture",
- // meta: { title: "绯荤粺鏋舵瀯鍥�", icon: "tree" },
- // },
- // ],
- // },
{
path: "/:pathMatch(.*)*",
component: () => import("@/views/error/404"),
@@ -82,6 +68,20 @@
component: () => import("@/views/index"),
name: "Index",
meta: { title: "棣栭〉", icon: "dashboard", affix: true },
+ },
+ ],
+ },
+ // 绯荤粺鏋舵瀯鍥�
+ {
+ path: "/system-architecture",
+ component: Layout,
+ redirect: "/system-architecture/index",
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/systemArchitecture/index.vue"),
+ name: "SystemArchitecture",
+ meta: { title: "绯荤粺鏋舵瀯鍥�", icon: "tree" },
},
],
},
@@ -132,126 +132,126 @@
],
},
// 璐㈠姟绠$悊妯″潡璺敱
- {
- path: "/financial",
- component: Layout,
- hidden: false,
- redirect: "/financial/general-ledger",
- alwaysShow: true,
- meta: { title: "璐㈠姟绠$悊", icon: "money" },
- children: [
- {
- path: "sales-out",
- component: () => import("@/views/financialManagement/receivable/salesOut.vue"),
- name: "SalesOut",
- meta: { title: "閿�鍞嚭搴�" },
- },
- {
- path: "sales-return",
- component: () => import("@/views/financialManagement/receivable/salesReturn.vue"),
- name: "SalesReturn",
- meta: { title: "閿�鍞��璐�" },
- },
-
- {
- path: "invoice-apply",
- component: () => import("@/views/financialManagement/receivable/invoiceApply.vue"),
- name: "InvoiceApply",
- meta: { title: "寮�绁ㄧ敵璇�" },
- },
- {
- path: "output-invoice",
- component: () => import("@/views/financialManagement/receivable/outputInvoice.vue"),
- name: "OutputInvoice",
- meta: { title: "閿�椤瑰彂绁�" },
- },
- {
- path: "receipt",
- component: () => import("@/views/financialManagement/receivable/receipt.vue"),
- name: "Receipt",
- meta: { title: "鏀舵鍗�" },
- },
- {
- path: "receivable-reconciliation",
- component: () => import("@/views/financialManagement/receivable/reconciliation.vue"),
- name: "ReceivableReconciliation",
- meta: { title: "搴旀敹瀵硅处" },
- },
- {
- path: "purchase-in",
- component: () => import("@/views/financialManagement/payable/purchaseIn.vue"),
- name: "PurchaseIn",
- meta: { title: "閲囪喘鍏ュ簱" },
- },
- {
- path: "purchase-return",
- component: () => import("@/views/financialManagement/payable/purchaseReturn.vue"),
- name: "PurchaseReturn",
- meta: { title: "閲囪喘閫�璐�" },
- },
- {
- path: "input-invoice",
- component: () => import("@/views/financialManagement/payable/input-invoice.vue"),
- name: "InputInvoice",
- meta: { title: "杩涢」鍙戠エ" },
- },
- {
- path: "payment-apply",
- component: () => import("@/views/financialManagement/payable/paymentApply.vue"),
- name: "PaymentApply",
- meta: { title: "浠樻鐢宠" },
- },
-
- {
- path: "payment",
- component: () => import("@/views/financialManagement/payable/payment.vue"),
- name: "Payment",
- meta: { title: "浠樻鍗�" },
- },
- {
- path: "payable-reconciliation",
- component: () => import("@/views/financialManagement/payable/reconciliation.vue"),
- name: "PayableReconciliation",
- meta: { title: "搴斾粯瀵硅处" },
- },
- {
- path: "fixed-assets",
- component: () => import("@/views/financialManagement/assets/fixedAssets.vue"),
- name: "FixedAssets",
- meta: { title: "鍥哄畾璧勪骇" },
- },
- {
- path: "intangible-assets",
- component: () => import("@/views/financialManagement/assets/intangibleAssets.vue"),
- name: "IntangibleAssets",
- meta: { title: "鏃犲舰璧勪骇" },
- },
- {
- path: "general-ledger",
- component: () => import("@/views/financialManagement/generalLedger/index.vue"),
- name: "GeneralLedger",
- meta: { title: "鎬诲笎绉戠洰" },
- },
- {
- path: "voucher",
- component: () => import("@/views/financialManagement/voucher/index.vue"),
- name: "Voucher",
- meta: { title: "鍑瘉" },
- },
- {
- path: "voucher-general-ledger",
- component: () => import("@/views/financialManagement/voucher/generalLedger.vue"),
- name: "VoucherGeneralLedger",
- meta: { title: "绉戠洰鎬诲笎" },
- },
- {
- path: "voucher-detail-ledger",
- component: () => import("@/views/financialManagement/voucher/detailLedger.vue"),
- name: "VoucherDetailLedger",
- meta: { title: "绉戠洰鏄庣粏甯�" },
- },
- ],
- },
+ // {
+ // path: "/financial",
+ // component: Layout,
+ // hidden: false,
+ // redirect: "/financial/general-ledger",
+ // alwaysShow: true,
+ // meta: { title: "璐㈠姟绠$悊", icon: "money" },
+ // children: [
+ // {
+ // path: "sales-out",
+ // component: () => import("@/views/financialManagement/receivable/salesOut.vue"),
+ // name: "SalesOut",
+ // meta: { title: "閿�鍞嚭搴�" },
+ // },
+ // {
+ // path: "sales-return",
+ // component: () => import("@/views/financialManagement/receivable/salesReturn.vue"),
+ // name: "SalesReturn",
+ // meta: { title: "閿�鍞��璐�" },
+ // },
+ //
+ // {
+ // path: "invoice-apply",
+ // component: () => import("@/views/financialManagement/receivable/invoiceApply.vue"),
+ // name: "InvoiceApply",
+ // meta: { title: "寮�绁ㄧ敵璇�" },
+ // },
+ // {
+ // path: "output-invoice",
+ // component: () => import("@/views/financialManagement/receivable/outputInvoice.vue"),
+ // name: "OutputInvoice",
+ // meta: { title: "閿�椤瑰彂绁�" },
+ // },
+ // {
+ // path: "receipt",
+ // component: () => import("@/views/financialManagement/receivable/receipt.vue"),
+ // name: "Receipt",
+ // meta: { title: "鏀舵鍗�" },
+ // },
+ // {
+ // path: "receivable-reconciliation",
+ // component: () => import("@/views/financialManagement/receivable/reconciliation.vue"),
+ // name: "ReceivableReconciliation",
+ // meta: { title: "搴旀敹瀵硅处" },
+ // },
+ // {
+ // path: "purchase-in",
+ // component: () => import("@/views/financialManagement/payable/purchaseIn.vue"),
+ // name: "PurchaseIn",
+ // meta: { title: "閲囪喘鍏ュ簱" },
+ // },
+ // {
+ // path: "purchase-return",
+ // component: () => import("@/views/financialManagement/payable/purchaseReturn.vue"),
+ // name: "PurchaseReturn",
+ // meta: { title: "閲囪喘閫�璐�" },
+ // },
+ // {
+ // path: "input-invoice",
+ // component: () => import("@/views/financialManagement/payable/input-invoice.vue"),
+ // name: "InputInvoice",
+ // meta: { title: "杩涢」鍙戠エ" },
+ // },
+ // {
+ // path: "payment-apply",
+ // component: () => import("@/views/financialManagement/payable/paymentApply.vue"),
+ // name: "PaymentApply",
+ // meta: { title: "浠樻鐢宠" },
+ // },
+ //
+ // {
+ // path: "payment",
+ // component: () => import("@/views/financialManagement/payable/payment.vue"),
+ // name: "Payment",
+ // meta: { title: "浠樻鍗�" },
+ // },
+ // {
+ // path: "payable-reconciliation",
+ // component: () => import("@/views/financialManagement/payable/reconciliation.vue"),
+ // name: "PayableReconciliation",
+ // meta: { title: "搴斾粯瀵硅处" },
+ // },
+ // {
+ // path: "fixed-assets",
+ // component: () => import("@/views/financialManagement/assets/fixedAssets.vue"),
+ // name: "FixedAssets",
+ // meta: { title: "鍥哄畾璧勪骇" },
+ // },
+ // {
+ // path: "intangible-assets",
+ // component: () => import("@/views/financialManagement/assets/intangibleAssets.vue"),
+ // name: "IntangibleAssets",
+ // meta: { title: "鏃犲舰璧勪骇" },
+ // },
+ // {
+ // path: "general-ledger",
+ // component: () => import("@/views/financialManagement/generalLedger/index.vue"),
+ // name: "GeneralLedger",
+ // meta: { title: "鎬诲笎绉戠洰" },
+ // },
+ // {
+ // path: "voucher",
+ // component: () => import("@/views/financialManagement/voucher/index.vue"),
+ // name: "Voucher",
+ // meta: { title: "鍑瘉" },
+ // },
+ // {
+ // path: "voucher-general-ledger",
+ // component: () => import("@/views/financialManagement/voucher/generalLedger.vue"),
+ // name: "VoucherGeneralLedger",
+ // meta: { title: "绉戠洰鎬诲笎" },
+ // },
+ // {
+ // path: "voucher-detail-ledger",
+ // component: () => import("@/views/financialManagement/voucher/detailLedger.vue"),
+ // name: "VoucherDetailLedger",
+ // meta: { title: "绉戠洰鏄庣粏甯�" },
+ // },
+ // ],
+ // },
];
// 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇
diff --git a/src/views/index.vue b/src/views/index.vue
index f3e6db3..3b9182b 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -7,17 +7,13 @@
</el-avatar>
<div class="welcome-text">
<div class="welcome-title">
- 鏅氫笂濂斤紝{{ userStore.nickName || userStore.name || "瓒呯骇绠$悊鍛�" }} 馃憢
+ {{ greetingText }}锛寋{ userStore.nickName || userStore.name || "瓒呯骇绠$悊鍛�" }} 馃憢
</div>
<div class="welcome-subtitle">涓撴敞宸ヤ笟鏁板瓧鍖栵紝鍔╁姏鏅洪�犲崌绾�</div>
</div>
</div>
<div class="welcome-meta">
<div class="meta-time digital-number">{{ nowTime }}</div>
- <div class="meta-extra">
- <span class="meta-date">{{ nowDate }}</span>
- <span class="meta-weather">{{ weatherText }}</span>
- </div>
<div class="meta-tip">MES / MOM 鐢熶骇杩愯惀椹鹃┒鑸�</div>
</div>
</section>
@@ -355,6 +351,7 @@
UserFilled,
} from "@element-plus/icons-vue";
import Echarts from "@/components/Echarts/echarts.vue";
+import usePermissionStore from "@/store/modules/permission";
import useUserStore from "@/store/modules/user.js";
import {
analysisCustomerContractAmounts,
@@ -369,6 +366,7 @@
const router = useRouter();
const userStore = useUserStore();
+const permissionStore = usePermissionStore();
const defaultWelcomeAvatar = new URL("../assets/images/profile.jpg", import.meta.url).href;
const nowTime = ref("");
@@ -377,6 +375,16 @@
const weatherText = "澶氫簯 28掳C";
const nowDate = computed(() => (nowTime.value ? nowTime.value.slice(0, 10) : dayjs().format("YYYY-MM-DD")));
+
+const greetingText = computed(() => {
+ const hour = dayjs().hour();
+ if (hour < 6) return "鍑屾櫒濂�";
+ if (hour < 9) return "鏃╀笂濂�";
+ if (hour < 12) return "涓婂崍濂�";
+ if (hour < 14) return "涓崍濂�";
+ if (hour < 18) return "涓嬪崍濂�";
+ return "鏅氫笂濂�";
+});
const welcomeAvatar = computed(() =>
welcomeAvatarLoadFailed.value || !userStore.avatar ? defaultWelcomeAvatar : userStore.avatar
@@ -901,16 +909,74 @@
},
]);
-const quickEntries = [
- { label: "鐢熶骇鎺掍骇", icon: Calendar, path: "/productionManagement/productionDispatching" },
- { label: "宸ュ簭鎶ュ伐", icon: EditPen, path: "/productionManagement/productionReporting" },
- { label: "鐢熶骇璁㈠崟", icon: Tickets, path: "/productionManagement/productionOrder" },
- { label: "鐗╂枡榻愬", icon: Box, path: "/productionManagement/workOrderManagement" },
- { label: "璐ㄩ噺妫�楠�", icon: Checked, path: "/qualityManagement/processInspection" },
- { label: "璁惧绠$悊", icon: Tools, path: "/equipmentManagement/deviceInfo" },
- { label: "搴撳瓨鏌ヨ", icon: Search, path: "/inventoryManagement/stockManage" },
- { label: "鏁版嵁鎶ヨ〃", icon: DataAnalysis, path: "/reportAnalysis/reportManagement" },
+const quickEntryConfigs = [
+ { label: "涓荤敓浜ц鍒�", icon: Calendar, titles: ["涓荤敓浜ц鍒�"], fallbackPath: "/productionPlan/productionPlan" },
+ { label: "鐢熶骇璁㈠崟", icon: Tickets, titles: ["鐢熶骇璁㈠崟"], fallbackPath: "/productionManagement/productionOrder" },
+ { label: "鐢熶骇鎶ュ伐", icon: EditPen, titles: ["鐢熶骇鎶ュ伐"], fallbackPath: "/productionManagement/productionReporting" },
+ { label: "璁惧鍙拌处", icon: Tools, titles: ["璁惧鍙拌处"], fallbackPath: "/equipmentManagement/ledger" },
+ { label: "閿�鍞彴璐�", icon: DataLine, titles: ["閿�鍞彴璐�"], fallbackPath: "/salesManagement/salesLedger" },
+ { label: "閲囪喘鍙拌处", icon: ShoppingCartFull, titles: ["閲囪喘鍙拌处"], fallbackPath: "/procurementManagement/procurementLedger" },
+ { label: "鍛樺伐鍙拌处", icon: UserFilled, titles: ["鍛樺伐鍙拌处", "鍦ㄨ亴鍛樺伐鍙拌处"], fallbackPath: "/personnelManagement/employeeRecord" },
+ { label: "搴撳瓨绠$悊", icon: Box, titles: ["搴撳瓨绠$悊"], fallbackPath: "/inventoryManagement/stockManage" },
];
+
+const normalizeMenuTitle = (title) => String(title || "").replace(/\s+/g, "").trim();
+
+const resolveRoutePath = (route, parentPath = "") => {
+ const currentPath = String(route?.path || "").trim();
+ if (!currentPath) return parentPath || "";
+ if (/^(https?:)?\/\//.test(currentPath)) return currentPath;
+ if (currentPath.startsWith("/")) return currentPath;
+ const basePath = parentPath && parentPath !== "/" ? parentPath.replace(/\/$/, "") : "";
+ return `${basePath}/${currentPath}`.replace(/\/+/g, "/");
+};
+
+const collectAccessibleRoutes = (routes = [], parentPath = "") => {
+ const items = [];
+ (routes || []).forEach((route) => {
+ if (!route) return;
+ const fullPath = resolveRoutePath(route, parentPath);
+ const title = route.meta?.title ?? route.title ?? "";
+ if (title && fullPath && !String(route.redirect || "").includes("noRedirect")) {
+ items.push({
+ title: normalizeMenuTitle(title),
+ path: fullPath,
+ });
+ }
+ if (Array.isArray(route.children) && route.children.length > 0) {
+ items.push(...collectAccessibleRoutes(route.children, fullPath));
+ }
+ });
+ return items;
+};
+
+const accessibleMenuRoutes = computed(() => {
+ const routePool =
+ permissionStore.defaultRoutes?.length > 0
+ ? permissionStore.defaultRoutes
+ : permissionStore.sidebarRouters?.length > 0
+ ? permissionStore.sidebarRouters
+ : permissionStore.routes;
+ return collectAccessibleRoutes(routePool || []);
+});
+
+const quickEntries = computed(() =>
+ quickEntryConfigs
+ .map((item) => {
+ const targetRoute = accessibleMenuRoutes.value.find((route) =>
+ item.titles.some((title) => route.title === normalizeMenuTitle(title))
+ );
+ const resolvedPath = targetRoute?.path || "";
+ return resolvedPath
+ ? {
+ label: item.label,
+ icon: item.icon,
+ path: resolvedPath,
+ }
+ : null;
+ })
+ .filter(Boolean)
+);
const updateNowTime = () => {
nowTime.value = dayjs().format("YYYY-MM-DD HH:mm:ss");
@@ -1074,6 +1140,7 @@
};
const goToQuick = (path) => {
+ if (!path) return;
router.push(path).catch(() => {});
};
@@ -1107,6 +1174,7 @@
flex-direction: column;
gap: 16px;
overflow-x: clip;
+ margin-top: 10px;
}
.digital-number {
diff --git a/src/views/login.vue b/src/views/login.vue
index 872537b..c7db15a 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -1,96 +1,180 @@
<template>
<div class="login-page">
- <div class="login-shell">
- <section class="login-brand">
- <div class="brand-badge">PRODUCT INVENTORY</div>
- <img :src="brandLogo" alt="brand logo" class="brand-logo" />
- <h1 class="brand-title">{{ title }}</h1>
- <p class="brand-copy">
- 缁熶竴绠$悊搴撳瓨銆佹祦绋嬩笌涓氬姟鏁版嵁锛岃绯荤粺鍏ュ彛鍜屽悗鍙颁富鐣岄潰淇濇寔鍚屼竴濂楃畝绾﹁瑙夎瑷�銆�
- </p>
- <div class="brand-points">
- <div class="brand-point">
- <span class="point-dot"></span>
- <span>娓呮櫚鐨勬暟鎹叆鍙�</span>
+ <main class="page">
+ <section class="factory">
+ <div class="brand hero-brand">
+ <div class="logo hero-logo">
+ <img
+ :src="brandLogoUrl"
+ :alt="`${companyName} logo`"
+ class="logo-image hero-logo-image"
+ @error="handleLogoError"
+ />
</div>
- <div class="brand-point">
- <span class="point-dot"></span>
- <span>鏇磋交鐨勭晫闈㈠眰娆�</span>
- </div>
- <div class="brand-point">
- <span class="point-dot"></span>
- <span>绋冲畾鐨勪笟鍔″崗鍚屼綋楠�</span>
- </div>
+ </div>
+
+ <div class="hero">
+ <div class="chip">鏁板瓧宸ュ巶 路 鏅鸿兘鎺掍骇 路 璁惧浜掕仈 路 璐ㄩ噺杩芥函</div>
+ <h1>鏁板瓧宸ュ巶<br />MOM 鏅洪�犲钩鍙�</h1>
+ <p>
+ 浠ュ疄鏃舵暟鎹┍鍔ㄧ敓浜х幇鍦猴紝鎶婂伐鍗曘�佽澶囥�佺墿鏂欍�佽川閲忋�佽兘鑰椾笌浠撳偍杩炴帴鎴愪竴寮犻�忔槑鐨勫埗閫犺繍钀ョ綉缁溿��
+ </p>
+ </div>
+
+ <div class="scene" aria-hidden="true">
+ <div class="floor"></div>
+ <svg class="factory-svg" viewBox="0 0 920 360" preserveAspectRatio="xMidYMid meet">
+ <defs>
+ <linearGradient id="g1" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#40e4ff" stop-opacity=".9" />
+ <stop offset="1" stop-color="#1f78ff" stop-opacity=".68" />
+ </linearGradient>
+ <linearGradient id="g2" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#ffffff" stop-opacity=".28" />
+ <stop offset="1" stop-color="#ffffff" stop-opacity=".06" />
+ </linearGradient>
+ </defs>
+
+ <path d="M45 255H830" stroke="url(#g1)" stroke-width="16" stroke-linecap="round" opacity=".55" />
+ <path class="belt" d="M45 255H830" stroke="#fff" stroke-width="3" stroke-linecap="round" opacity=".75" />
+
+ <g class="box">
+ <rect x="60" y="212" width="54" height="42" rx="8" fill="#ffb15f" />
+ <path d="M60 225h54" stroke="#fff" opacity=".45" />
+ </g>
+ <g class="box two">
+ <rect x="60" y="212" width="54" height="42" rx="8" fill="#28d9cd" />
+ <path d="M60 225h54" stroke="#fff" opacity=".45" />
+ </g>
+ <g class="box three">
+ <rect x="60" y="212" width="54" height="42" rx="8" fill="#8b5cf6" />
+ <path d="M60 225h54" stroke="#fff" opacity=".45" />
+ </g>
+
+ <g>
+ <rect x="120" y="112" width="138" height="128" rx="18" fill="url(#g2)" stroke="rgba(255,255,255,.42)" />
+ <path d="M145 185h88M145 210h58" stroke="#40e4ff" stroke-width="6" stroke-linecap="round" />
+ <path d="M145 140h88" stroke="#fff" stroke-opacity=".5" stroke-width="4" stroke-linecap="round" />
+ </g>
+
+ <g>
+ <rect x="315" y="76" width="190" height="164" rx="22" fill="url(#g2)" stroke="rgba(255,255,255,.42)" />
+ <path d="M350 126h120M350 158h90M350 190h112" stroke="#fff" stroke-opacity=".5" stroke-width="6" stroke-linecap="round" />
+ <circle class="signal" cx="472" cy="104" r="10" fill="#20e0d2" />
+ <circle class="signal two" cx="448" cy="104" r="10" fill="#1f78ff" />
+ <circle class="signal three" cx="424" cy="104" r="10" fill="#ff8a3d" />
+ </g>
+
+ <g class="arm">
+ <path d="M612 124h92" stroke="#40e4ff" stroke-width="14" stroke-linecap="round" />
+ <path d="M704 124l42 56" stroke="#40e4ff" stroke-width="14" stroke-linecap="round" />
+ <circle cx="612" cy="124" r="25" fill="#1f78ff" stroke="#fff" stroke-opacity=".45" />
+ <circle cx="704" cy="124" r="18" fill="#20e0d2" />
+ <path d="M744 180v34M727 214h34" stroke="#fff" stroke-width="7" stroke-linecap="round" />
+ </g>
+
+ <g>
+ <rect x="690" y="82" width="148" height="158" rx="20" fill="url(#g2)" stroke="rgba(255,255,255,.42)" />
+ <path d="M724 206V134M764 206V112M804 206V154" stroke="#20e0d2" stroke-width="12" stroke-linecap="round" />
+ <path d="M720 206h92" stroke="#fff" stroke-opacity=".44" stroke-width="5" stroke-linecap="round" />
+ </g>
+
+ <path
+ d="M190 112C265 42 348 48 410 76C502 118 568 76 612 124C654 170 700 74 764 82"
+ fill="none"
+ stroke="#20e0d2"
+ stroke-width="2"
+ stroke-dasharray="8 10"
+ opacity=".58"
+ >
+ <animate attributeName="stroke-dashoffset" from="80" to="0" dur="2s" repeatCount="indefinite" />
+ </path>
+ </svg>
</div>
</section>
- <section class="login-panel">
- <el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
- <div class="panel-head">
- <p class="panel-kicker">WELCOME BACK</p>
- <h2 class="panel-title">鐧诲綍绯荤粺</h2>
- <p class="panel-subtitle">杈撳叆璐﹀彿鍜屽瘑鐮佽繘鍏ュ伐浣滃彴銆�</p>
+ <section class="login-wrap">
+ <div class="time">
+ <span>{{ todayLabel }}</span>
+ {{ clockLabel }}
+ </div>
+
+ <form class="login-card" @submit.prevent="handleLogin">
+ <div class="brand card-brand">
+ <div class="logo">
+ <img :src="brandIconUrl" :alt="`${companyName} icon`" class="logo-image card-logo-image" />
+ </div>
+ <div class="brand-copy card-brand-copy">
+ <div class="brand-title">{{ companyName }}</div>
+ <small>鏁板瓧宸ュ巶缁熶竴鍏ュ彛</small>
+ </div>
</div>
- <el-form-item prop="username">
- <el-input
- v-model="loginForm.username"
- type="text"
- size="large"
- auto-complete="off"
- placeholder="璐﹀彿"
- >
- <template #prefix><el-icon><User /></el-icon></template>
- </el-input>
- </el-form-item>
+ <h2>娆㈣繋鐧诲綍</h2>
+ <p class="sub">杩涘叆 MOM 鏁板瓧宸ュ巶杩愯惀椹鹃┒鑸�</p>
- <el-form-item prop="password">
- <el-input
- v-model="loginForm.password"
- type="password"
- size="large"
- auto-complete="off"
- placeholder="瀵嗙爜"
- show-password
- @keyup.enter="handleLogin"
- >
- <template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
- </el-input>
- </el-form-item>
-
- <div class="login-options">
- <el-checkbox v-model="loginForm.rememberMe">璁颁綇瀵嗙爜</el-checkbox>
- <router-link v-if="register" class="register-link" :to="'/register'">绔嬪嵆娉ㄥ唽</router-link>
+ <div class="form-row">
+ <label>璐﹀彿</label>
+ <div class="input">
+ <svg viewBox="0 0 24 24" fill="none">
+ <path d="M20 21a8 8 0 0 0-16 0" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
+ <path d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z" stroke="currentColor" stroke-width="1.8" />
+ </svg>
+ <input v-model.trim="loginForm.username" type="text" placeholder="璇疯緭鍏ョ鐞嗗憳璐﹀彿" />
+ </div>
</div>
- <el-button
- :loading="loading"
- size="large"
- type="primary"
- class="login-submit"
- @click.prevent="handleLogin"
- >
- <span v-if="!loading">鐧诲綍</span>
- <span v-else>鐧诲綍涓�...</span>
- </el-button>
- </el-form>
+ <div class="form-row">
+ <label>瀵嗙爜</label>
+ <div class="input">
+ <svg viewBox="0 0 24 24" fill="none">
+ <path d="M7 10V8a5 5 0 0 1 10 0v2" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
+ <path d="M6.8 10h10.4A1.8 1.8 0 0 1 19 11.8v6.4A1.8 1.8 0 0 1 17.2 20H6.8A1.8 1.8 0 0 1 5 18.2v-6.4A1.8 1.8 0 0 1 6.8 10Z" stroke="currentColor" stroke-width="1.8" />
+ </svg>
+ <input
+ v-model="loginForm.password"
+ type="password"
+ placeholder="璇疯緭鍏ョ櫥褰曞瘑鐮�"
+ autocomplete="current-password"
+ @keyup.enter="handleLogin"
+ />
+ </div>
+ </div>
+
+ <div class="options">
+ <label class="check"><input v-model="loginForm.rememberMe" type="checkbox" />璁颁綇璐﹀彿</label>
+ </div>
+
+ <button class="login-btn" type="submit" :disabled="loading">
+ {{ loading ? "鐧诲綍涓�..." : "鐧诲綍鏁板瓧宸ュ巶" }}
+ </button>
+ </form>
</section>
- </div>
+ </main>
</div>
</template>
<script setup>
-import { getCodeImg } from "@/api/login"
+import { ElMessage } from "element-plus"
import Cookies from "js-cookie"
import { encrypt, decrypt } from "@/utils/jsencrypt"
import useUserStore from "@/store/modules/user"
-import brandLogo from "@/assets/logo/logo.png"
+import defaultBrandLogo from "@/assets/logo/logo.png"
-const title = import.meta.env.VITE_APP_TITLE
const userStore = useUserStore()
const route = useRoute()
const router = useRouter()
-const { proxy } = getCurrentInstance()
+
+const appTitle = String(import.meta.env.VITE_APP_TITLE || "鏁板瓧宸ュ巶 MOM 绯荤粺").trim()
+const companySubtitle = String(import.meta.env.VITE_LOGIN_SUBTITLE || "Digital Factory Operation Center").trim()
+const configuredLogo = String(import.meta.env.VITE_APP_LOGO || "").trim()
+const logoModules = import.meta.glob("/src/assets/logo/*.png", { eager: true })
+const brandIconUrl = `${import.meta.env.BASE_URL}favicon.ico`
+
+const redirect = ref("")
+const loading = ref(false)
+const now = ref(new Date())
+const brandLogoUrl = ref(defaultBrandLogo)
const loginForm = ref({
username: "",
@@ -98,304 +182,712 @@
rememberMe: false,
})
-const loginRules = {
- username: [{ required: true, trigger: "blur", message: "璇疯緭鍏ユ偍鐨勮处鍙�" }],
- password: [{ required: true, trigger: "blur", message: "璇疯緭鍏ユ偍鐨勫瘑鐮�" }],
-}
+const companyName = computed(() => {
+ const currentFactoryName = String(userStore.currentFactoryName || "").trim()
+ return currentFactoryName || appTitle
+})
-const codeUrl = ref("")
-const loading = ref(false)
-const captchaEnabled = ref(true)
-const register = ref(false)
-const redirect = ref(undefined)
+const todayLabel = computed(() => {
+ const date = now.value
+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
+})
+
+const clockLabel = computed(() => {
+ const date = now.value
+ return `${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`
+})
watch(
route,
(newRoute) => {
- redirect.value = newRoute.query && newRoute.query.redirect
+ redirect.value = String(newRoute.query?.redirect || "")
},
{ immediate: true }
)
-function handleLogin() {
- proxy.$refs.loginRef.validate((valid) => {
- if (valid) {
- loading.value = true
- Cookies.set("username", loginForm.value.username, { expires: 30 })
- Cookies.set("password", encrypt(loginForm.value.password), { expires: 30 })
- Cookies.set("rememberMe", loginForm.value.rememberMe, { expires: 30 })
- userStore
- .loginCheckFactory(loginForm.value)
- .then(() => {
- const query = route.query
- const otherQueryParams = Object.keys(query).reduce((acc, cur) => {
- if (cur !== "redirect") {
- acc[cur] = query[cur]
- }
- return acc
- }, {})
- router.push({ path: redirect.value || "/", query: otherQueryParams })
- })
- .catch(() => {
- loading.value = false
- if (captchaEnabled.value) {
- getCode()
- }
- })
- }
- })
+watch(
+ () => userStore.currentFactoryName,
+ () => updateBrandLogo(),
+ { immediate: true }
+)
+
+let timer = 0
+onMounted(() => {
+ timer = window.setInterval(() => {
+ now.value = new Date()
+ }, 1000)
+})
+
+onBeforeUnmount(() => {
+ if (timer) {
+ window.clearInterval(timer)
+ timer = 0
+ }
+})
+
+function pad(value) {
+ return String(value).padStart(2, "0")
}
-function getCode() {
- getCodeImg().then((res) => {
- captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled
- if (captchaEnabled.value) {
- codeUrl.value = "data:image/gif;base64," + res.img
- loginForm.value.uuid = res.uuid
- }
- })
+function resolveConfiguredLogo() {
+ if (!configuredLogo) {
+ return ""
+ }
+
+ if (/^(https?:)?\/\//.test(configuredLogo) || configuredLogo.startsWith("data:")) {
+ return configuredLogo
+ }
+
+ const cleanPath = configuredLogo.replace(/^\/+/, "")
+ const fullPath = cleanPath.startsWith("src/") ? `/${cleanPath}` : `/src/${cleanPath}`
+ const localLogo = logoModules[fullPath]
+
+ if (localLogo && localLogo.default) {
+ return localLogo.default
+ }
+
+ if (configuredLogo.startsWith("/")) {
+ return configuredLogo
+ }
+
+ return `${import.meta.env.BASE_URL}${cleanPath}`
+}
+
+function updateBrandLogo() {
+ const logoFromConfig = resolveConfiguredLogo()
+ if (logoFromConfig) {
+ brandLogoUrl.value = logoFromConfig
+ return
+ }
+
+ const currentFactoryName = String(userStore.currentFactoryName || "").trim()
+ if (!currentFactoryName) {
+ brandLogoUrl.value = defaultBrandLogo
+ return
+ }
+
+ const factoryLogoPath = `/src/assets/logo/${currentFactoryName}.png`
+ const matched = logoModules[factoryLogoPath]
+ brandLogoUrl.value = matched && matched.default ? matched.default : defaultBrandLogo
+}
+
+function handleLogoError() {
+ brandLogoUrl.value = defaultBrandLogo
+}
+
+function handleRememberCookie() {
+ if (!loginForm.value.rememberMe) {
+ Cookies.remove("username")
+ Cookies.remove("password")
+ Cookies.remove("rememberMe")
+ return
+ }
+
+ Cookies.set("username", loginForm.value.username, { expires: 30 })
+ Cookies.set("password", encrypt(loginForm.value.password), { expires: 30 })
+ Cookies.set("rememberMe", "true", { expires: 30 })
}
function getCookie() {
const username = Cookies.get("username")
const password = Cookies.get("password")
const rememberMe = Cookies.get("rememberMe")
- loginForm.value = {
- username: username === undefined ? loginForm.value.username : username,
- password: password === undefined ? loginForm.value.password : decrypt(password),
- rememberMe: rememberMe === undefined ? false : Boolean(rememberMe),
- }
+
+ loginForm.value.username = username || ""
+ loginForm.value.password = password ? decrypt(password) : ""
+ loginForm.value.rememberMe = rememberMe === "true"
}
-getCode()
+function handleLogin() {
+ if (!loginForm.value.username) {
+ ElMessage.error("璇疯緭鍏ヨ处鍙�")
+ return
+ }
+ if (!loginForm.value.password) {
+ ElMessage.error("璇疯緭鍏ュ瘑鐮�")
+ return
+ }
+
+ loading.value = true
+ handleRememberCookie()
+ userStore
+ .loginCheckFactory(loginForm.value)
+ .then(() => {
+ const query = route.query
+ const otherQueryParams = Object.keys(query).reduce((acc, cur) => {
+ if (cur !== "redirect") {
+ acc[cur] = query[cur]
+ }
+ return acc
+ }, {})
+ router.push({ path: redirect.value || "/", query: otherQueryParams })
+ })
+ .catch(() => {})
+ .finally(() => {
+ loading.value = false
+ })
+}
+
getCookie()
</script>
-<style lang="scss" scoped>
+<style scoped lang="scss">
+* {
+ box-sizing: border-box;
+}
+
.login-page {
+ --blue: #1f78ff;
+ --cyan: #20e0d2;
+ --violet: #8b5cf6;
+ --orange: #ff8a3d;
+ --text: #09203f;
+ --muted: #7a8da8;
+ --line: rgba(113, 154, 214, 0.24);
+ --shadow: 0 28px 80px rgba(14, 57, 120, 0.18);
min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 32px;
- background:
- radial-gradient(circle at top left, rgba(207, 223, 214, 0.95), transparent 30%),
- radial-gradient(circle at bottom right, rgba(222, 232, 227, 0.9), transparent 28%),
- linear-gradient(180deg, #f7faf8 0%, #eef2ee 100%);
-}
-
-.login-shell {
- width: min(1120px, 100%);
- min-height: 680px;
- display: grid;
- grid-template-columns: 1.1fr 0.9fr;
- border: 1px solid rgba(216, 225, 219, 0.9);
- border-radius: 32px;
overflow: hidden;
- background: rgba(255, 255, 255, 0.76);
- box-shadow: 0 26px 80px rgba(31, 49, 38, 0.12);
- backdrop-filter: blur(24px);
-}
-
-.login-brand {
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding: 56px 64px;
background:
- linear-gradient(180deg, rgba(244, 248, 245, 0.9), rgba(233, 240, 236, 0.9)),
- linear-gradient(135deg, rgba(31, 122, 114, 0.05), rgba(255, 255, 255, 0));
-
- &::after {
- content: "";
- position: absolute;
- inset: 28px;
- border: 1px solid rgba(31, 122, 114, 0.08);
- border-radius: 28px;
- pointer-events: none;
- }
+ radial-gradient(circle at 12% 16%, rgba(31, 120, 255, 0.22), transparent 32%),
+ radial-gradient(circle at 84% 14%, rgba(32, 224, 210, 0.24), transparent 28%),
+ radial-gradient(circle at 80% 84%, rgba(139, 92, 246, 0.14), transparent 28%),
+ linear-gradient(135deg, #eef6ff 0%, #f7fbff 52%, #edf8ff 100%);
}
-.brand-badge {
- width: fit-content;
- padding: 8px 14px;
- border-radius: 999px;
- background: rgba(31, 122, 114, 0.1);
- color: #1f7a72;
- font-size: 12px;
- font-weight: 700;
- letter-spacing: 0.14em;
+.login-page::before {
+ content: "";
+ position: fixed;
+ inset: 0;
+ background-image:
+ linear-gradient(rgba(22, 78, 160, 0.055) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(22, 78, 160, 0.055) 1px, transparent 1px);
+ background-size: 36px 36px;
+ mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
+ pointer-events: none;
}
-.brand-logo {
- width: 160px;
- height: auto;
- margin: 30px 0 24px;
+.page {
+ position: relative;
+ display: grid;
+ grid-template-columns: 1.15fr 0.85fr;
+ gap: 28px;
+ min-height: 100vh;
+ padding: 36px;
+}
+
+.factory {
+ position: relative;
+ overflow: hidden;
+ min-height: calc(100vh - 72px);
+ border-radius: 30px;
+ padding: 32px;
+ color: #fff;
+ background:
+ linear-gradient(135deg, rgba(5, 27, 67, 0.98), rgba(9, 71, 143, 0.92)),
+ radial-gradient(circle at 76% 18%, rgba(32, 224, 210, 0.38), transparent 30%);
+ box-shadow: var(--shadow);
+ border: 1px solid rgba(255, 255, 255, 0.16);
+ animation: enter 0.8s ease both;
+}
+
+.factory::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background:
+ linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.11) 46%, transparent 72%),
+ linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
+ background-size: 100% 100%, 44px 44px, 44px 44px;
+ opacity: 0.86;
+}
+
+.brand {
+ position: relative;
+ z-index: 2;
+ display: inline-flex;
+ align-items: center;
+}
+
+.logo {
+ width: 76px;
+ height: 76px;
+ border-radius: 14px;
+ display: grid;
+ place-items: center;
+ background: linear-gradient(135deg, var(--blue), var(--cyan));
+ box-shadow: 0 16px 40px rgba(32, 224, 210, 0.26);
+ overflow: hidden;
+ position: relative;
+}
+
+.logo-image {
+ width: 82%;
+ height: 82%;
object-fit: contain;
}
-.brand-title {
- margin: 0;
- font-size: 42px;
- line-height: 1.12;
- color: #21313f;
- letter-spacing: -0.03em;
+.hero-brand {
+ display: block;
}
-.brand-copy {
- max-width: 460px;
- margin: 18px 0 0;
- font-size: 16px;
- line-height: 1.75;
- color: #5f6d7e;
+.hero-logo {
+ width: 240px;
+ height: 84px;
+ border-radius: 0;
+ background: transparent;
+ box-shadow: none;
+ overflow: visible;
+ place-items: center start;
}
-.brand-points {
- margin-top: 34px;
- display: flex;
- flex-direction: column;
- gap: 14px;
+.hero-logo-image {
+ width: 100%;
+ height: auto;
+ max-height: 100%;
+ object-fit: contain;
}
-.brand-point {
- display: flex;
+.hero {
+ position: relative;
+ z-index: 2;
+ margin-top: 64px;
+ max-width: 680px;
+}
+
+.chip {
+ display: inline-flex;
align-items: center;
- gap: 12px;
- color: #3d4b59;
- font-size: 15px;
- font-weight: 500;
+ gap: 8px;
+ padding: 8px 14px;
+ border-radius: 999px;
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ background: rgba(255, 255, 255, 0.1);
+ color: rgba(255, 255, 255, 0.78);
+ font-size: 13px;
+ animation: enter 0.75s ease 0.15s both;
}
-.point-dot {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background: linear-gradient(135deg, #1f7a72, #5ca39c);
- box-shadow: 0 0 0 6px rgba(31, 122, 114, 0.08);
+.hero h1 {
+ margin: 24px 0 14px;
+ font-size: clamp(42px, 5.6vw, 78px);
+ line-height: 1.02;
+ font-weight: 900;
+ letter-spacing: 0;
+ animation: enter 0.8s ease 0.25s both;
}
-.login-panel {
+.hero p {
+ margin: 0;
+ max-width: 630px;
+ font-size: 17px;
+ line-height: 1.8;
+ color: rgba(255, 255, 255, 0.72);
+ animation: enter 0.8s ease 0.35s both;
+}
+
+.scene {
+ position: absolute;
+ left: 42px;
+ right: 42px;
+ bottom: 24px;
+ height: 44%;
+ z-index: 1;
+}
+
+.floor {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 48%;
+ border-radius: 28px;
+ background:
+ linear-gradient(90deg, rgba(32, 224, 210, 0), rgba(32, 224, 210, 0.22), rgba(31, 120, 255, 0)),
+ repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 64px),
+ repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 34px);
+ transform: perspective(620px) rotateX(58deg);
+ transform-origin: bottom;
+ opacity: 0.82;
+}
+
+.factory-svg {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 18%;
+ width: 100%;
+ height: 78%;
+ filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.18));
+}
+
+.belt {
+ stroke-dasharray: 10 12;
+ animation: flow 1.2s linear infinite;
+}
+
+.arm {
+ transform-origin: 612px 124px;
+ animation: armMove 3.6s ease-in-out infinite;
+}
+
+.box {
+ animation: boxMove 5.4s linear infinite;
+}
+
+.box.two {
+ animation-delay: -1.8s;
+}
+
+.box.three {
+ animation-delay: -3.6s;
+}
+
+.signal {
+ opacity: 0.8;
+ animation: pulse 2.2s ease-in-out infinite;
+}
+
+.signal.two {
+ animation-delay: -0.7s;
+}
+
+.signal.three {
+ animation-delay: -1.4s;
+}
+
+.login-wrap {
+ position: relative;
+ z-index: 2;
display: flex;
align-items: center;
justify-content: center;
- padding: 40px;
- background: rgba(255, 255, 255, 0.7);
+ min-height: calc(100vh - 72px);
+ border-radius: 30px;
+ border: 1px solid rgba(255, 255, 255, 0.8);
+ background: rgba(255, 255, 255, 0.62);
+ backdrop-filter: blur(20px);
+ box-shadow: var(--shadow);
+ animation: enter 0.8s ease 0.12s both;
}
-.login-form {
- width: min(420px, 100%);
- padding: 38px 34px 34px;
- border: 1px solid rgba(216, 225, 219, 0.92);
+.time {
+ position: absolute;
+ top: 26px;
+ right: 28px;
+ display: flex;
+ gap: 9px;
+ align-items: center;
+ font-weight: 900;
+ color: #12325e;
+}
+
+.time span {
+ padding: 8px 12px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.66);
+ border: 1px solid var(--line);
+ color: var(--muted);
+ font-size: 13px;
+ font-weight: 700;
+}
+
+.login-card {
+ width: min(440px, 100%);
+ padding: 34px;
border-radius: 28px;
+ border: 1px solid rgba(255, 255, 255, 0.95);
background: rgba(255, 255, 255, 0.88);
- box-shadow: 0 18px 52px rgba(31, 49, 38, 0.1);
+ box-shadow: 0 22px 60px rgba(21, 73, 143, 0.15);
+ position: relative;
+ overflow: hidden;
}
-.panel-head {
- margin-bottom: 28px;
+.login-card::before {
+ content: "";
+ position: absolute;
+ right: -92px;
+ top: -92px;
+ width: 190px;
+ height: 190px;
+ border-radius: 999px;
+ background: conic-gradient(from 0deg, rgba(31, 120, 255, 0.2), rgba(32, 224, 210, 0.32), rgba(139, 92, 246, 0.18), rgba(31, 120, 255, 0.2));
+ animation: rotate 9s linear infinite;
}
-.panel-kicker {
- margin: 0 0 10px;
- color: #8a98a8;
- font-size: 12px;
- font-weight: 700;
- letter-spacing: 0.16em;
+.login-card > * {
+ position: relative;
+ z-index: 1;
}
-.panel-title {
- margin: 0;
- color: #21313f;
- font-size: 30px;
- font-weight: 700;
+.card-brand {
+ margin-bottom: 18px;
}
-.panel-subtitle {
- margin: 10px 0 0;
- color: #6b7888;
+.card-brand .logo {
+ width: 52px;
+ height: 52px;
+}
+
+.card-brand-copy {
+ margin-left: 12px;
+}
+
+.card-logo-image {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+}
+
+.card-brand .logo {
+ width: 68px;
+ height: 68px;
+}
+
+.login-card h2 {
+ margin: 8px 0;
+ font-size: 31px;
+ line-height: 1.15;
+ color: #0d2c5e;
+ font-weight: 900;
+ letter-spacing: 0;
+}
+
+.sub {
+ margin: 0 0 24px;
+ color: var(--muted);
font-size: 14px;
}
-.login-options {
- margin: -4px 0 22px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #5f6d7e;
+.form-row {
+ margin-bottom: 14px;
+ animation: enter 0.6s ease both;
}
-.register-link {
- color: var(--el-color-primary);
- font-weight: 600;
+.form-row:nth-of-type(1) {
+ animation-delay: 0.32s;
}
-.login-submit {
+.form-row:nth-of-type(2) {
+ animation-delay: 0.4s;
+}
+
+.form-row:nth-of-type(3) {
+ animation-delay: 0.48s;
+}
+
+label {
+ display: block;
+ margin-bottom: 8px;
+ color: #24436b;
+ font-size: 13px;
+ font-weight: 800;
+}
+
+.input {
+ position: relative;
+}
+
+.input svg {
+ position: absolute;
+ left: 15px;
+ top: 50%;
+ width: 19px;
+ height: 19px;
+ transform: translateY(-50%);
+ color: #8197b6;
+ pointer-events: none;
+}
+
+input[type="text"],
+input[type="password"] {
width: 100%;
- height: 48px;
+ height: 52px;
+ padding: 0 15px 0 46px;
+ border: 1px solid rgba(108, 143, 190, 0.34);
+ border-radius: 16px;
+ outline: none;
+ background: linear-gradient(180deg, #fff, #f8fbff);
+ color: var(--text);
+ font-size: 15px;
+ transition: 0.2s ease;
}
-.input-icon {
- width: 14px;
+input[type="text"]:hover,
+input[type="password"]:hover {
+ border-color: rgba(31, 120, 255, 0.48);
+ box-shadow: 0 10px 24px rgba(31, 120, 255, 0.08);
}
-:deep(.el-form-item) {
- margin-bottom: 22px;
+input[type="text"]:focus,
+input[type="password"]:focus {
+ border-color: rgba(31, 120, 255, 0.72);
+ box-shadow: 0 0 0 4px rgba(31, 120, 255, 0.1);
}
-:deep(.el-input__wrapper) {
- min-height: 42px;
- height: 42px;
- padding-top: 0;
- padding-bottom: 0;
+.options {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ margin: 12px 0 22px;
+ font-size: 13px;
+ color: var(--muted);
}
-:deep(.el-input__inner) {
- height: 42px;
- line-height: 42px;
+.check {
+ display: inline-flex;
+ gap: 8px;
+ align-items: center;
+ cursor: pointer;
}
-:deep(.el-checkbox) {
- color: #5f6d7e;
+.check input {
+ width: 16px;
+ height: 16px;
+ padding: 0;
+ accent-color: var(--blue);
}
-@media (max-width: 960px) {
+.login-btn {
+ width: 100%;
+ height: 54px;
+ border: none;
+ border-radius: 17px;
+ cursor: pointer;
+ color: #fff;
+ font-size: 16px;
+ font-weight: 900;
+ background: linear-gradient(135deg, var(--blue), var(--cyan));
+ box-shadow: 0 18px 38px rgba(31, 120, 255, 0.25);
+ position: relative;
+ overflow: hidden;
+ transition: 0.18s ease;
+}
+
+.login-btn:hover:not(:disabled) {
+ transform: translateY(-2px);
+ box-shadow: 0 22px 48px rgba(31, 120, 255, 0.32);
+}
+
+.login-btn:disabled {
+ opacity: 0.8;
+ cursor: not-allowed;
+}
+
+@keyframes enter {
+ from {
+ opacity: 0;
+ transform: translateY(26px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@keyframes rotate {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+@keyframes flow {
+ to {
+ stroke-dashoffset: -44;
+ }
+}
+
+@keyframes boxMove {
+ 0% {
+ transform: translateX(-150px);
+ opacity: 0;
+ }
+ 12% {
+ opacity: 1;
+ }
+ 78% {
+ opacity: 1;
+ }
+ 100% {
+ transform: translateX(650px);
+ opacity: 0;
+ }
+}
+
+@keyframes armMove {
+ 0%,
+ 100% {
+ transform: rotate(-4deg);
+ }
+ 50% {
+ transform: rotate(9deg);
+ }
+}
+
+@keyframes pulse {
+ 0%,
+ 100% {
+ opacity: 0.45;
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 1;
+ transform: scale(1.18);
+ }
+}
+
+@keyframes glow {
+ 0%,
+ 100% {
+ box-shadow: 0 0 18px rgba(32, 224, 210, 0.3);
+ }
+ 50% {
+ box-shadow: 0 0 34px rgba(32, 224, 210, 0.68);
+ }
+}
+
+@media (max-width: 1320px) {
+ .hero h1 {
+ font-size: clamp(52px, 5.2vw, 78px);
+ }
+}
+
+@media (max-width: 980px) {
.login-page {
- padding: 18px;
+ overflow: auto;
}
- .login-shell {
- min-height: auto;
+ .page {
grid-template-columns: 1fr;
+ padding: 18px;
+ min-height: auto;
}
- .login-brand {
- padding: 40px 28px 22px;
+ .factory,
+ .login-wrap {
+ min-height: auto;
}
- .login-brand::after {
- inset: 16px;
+ .factory {
+ min-height: 760px;
}
- .brand-title {
- font-size: 32px;
+ .time {
+ display: none;
}
- .brand-copy {
- font-size: 14px;
+ .login-wrap {
+ padding: 22px;
}
- .brand-points {
- margin-top: 24px;
- }
-
- .login-panel {
- padding: 12px 18px 24px;
- }
-
- .login-form {
+ .login-card {
width: 100%;
- padding: 28px 22px 24px;
+ padding: 26px;
}
+
+ .login-btn {
+ font-size: 16px;
+ }
+
}
</style>
diff --git a/src/views/productionManagement/productionTraceability/index.vue b/src/views/productionManagement/productionTraceability/index.vue
index 2b220dc..b9d37a1 100644
--- a/src/views/productionManagement/productionTraceability/index.vue
+++ b/src/views/productionManagement/productionTraceability/index.vue
@@ -1,6 +1,7 @@
<template>
<div class="app-container">
- <PageHeader content="鐢熶骇璁㈠崟" />
+ <PageHeader v-if="showHeader"
+ content="鐢熶骇璁㈠崟" />
<el-card style="height:82vh;overflow:auto;">
<template #header>
<div class="card-header">
@@ -283,7 +284,7 @@
</template>
<script setup>
- import { ref, reactive, onMounted } from "vue";
+ import { ref, reactive, onMounted, computed } from "vue";
import { useRoute, useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { parseTime } from "@/utils/ruoyi";
@@ -296,6 +297,13 @@
const route = useRoute();
const router = useRouter();
+ // 鍒ゆ柇鏄惁鏄剧ず椤靛ご
+ const showHeader = computed(() => {
+ return (
+ Object.keys(route.query).length > 0 || Object.keys(route.params).length > 0
+ );
+ });
+
// 鎼滅储鐩稿叧
const searchForm = reactive({
npsNo: "",
diff --git a/src/views/systemArchitecture/index.vue b/src/views/systemArchitecture/index.vue
index c3c6c49..c4cb56b 100644
--- a/src/views/systemArchitecture/index.vue
+++ b/src/views/systemArchitecture/index.vue
@@ -1,658 +1,699 @@
<template>
<div class="architecture-page">
- <div class="page-header">
- <span class="header-line"></span>
- <h1 class="page-title">绯荤粺鏋舵瀯鍥�</h1>
- </div>
+ <div class="architecture-shell">
+ <header class="page-title">
+ <span class="page-title__bar"></span>
+ <h1>绯荤粺鏋舵瀯鍥�</h1>
+ </header>
- <section ref="canvasRef" class="canvas">
- <svg
- v-if="svgSize.width && svgSize.height"
- class="link-overlay"
- :width="svgSize.width"
- :height="svgSize.height"
- aria-hidden="true"
- >
- <defs>
- <marker
- id="erp-link-arrow"
- markerWidth="10"
- markerHeight="10"
- refX="7"
- refY="4.5"
- orient="auto"
- markerUnits="strokeWidth"
- >
- <path d="M0,0 L0,7 L7,3.5 z" fill="#a7bdda" />
- </marker>
- </defs>
-
- <path
- v-for="path in aiPaths"
- :key="path.key"
- :d="path.d"
- class="link-overlay__path link-overlay__path--ai"
- />
-
- <path
- v-if="flowPath"
- :d="flowPath"
- class="link-overlay__path"
- marker-end="url(#erp-link-arrow)"
- />
- </svg>
-
- <section
- v-for="row in architectureRows"
- :key="row.key"
- class="lane"
- >
- <aside class="lane__aside">
- <div class="lane__aside-card" :class="`lane__aside-card--${row.key}`">
- <div class="lane__aside-icon">
- <svg-icon :icon-class="row.icon" class="lane__icon" />
- </div>
- <div class="lane__aside-content">
- <h2>{{ row.label }}</h2>
- </div>
+ <section class="section-card section-card--top">
+ <article class="module-title module-title--basic">
+ <div class="module-title__icon">
+ <span class="module-title__icon-shape">
+ <svg-icon icon-class="system" />
+ </span>
</div>
- </aside>
+ <div class="module-title__text">
+ <h2>鍩虹閰嶇疆</h2>
+ <p>绯荤粺鍩虹淇℃伅绠$悊</p>
+ </div>
+ </article>
- <div class="lane__flow" :class="`lane__flow--${row.key}`">
- <template v-for="(item, index) in row.items" :key="item.name">
- <div
- class="node-wrap"
- :class="{ 'node-wrap--spacer': item.spacer }"
- >
- <template v-if="item.isCore">
- <article ref="coreRef" class="ai-core">
- <div class="ai-core__halo"></div>
- <div class="ai-core__brain">
- <img :src="aiHead" alt="AI 鏍稿績" class="ai-core__head-image" />
- </div>
- </article>
- </template>
-
- <template v-else>
- <article
- class="node"
- :class="{ 'node--accent': item.accent, 'node--small-gap': item.compact }"
- :ref="setNodeRef(item)"
- >
- <div class="node__icon-wrapper">
- <svg-icon :icon-class="item.icon" class="node__icon" />
- </div>
- <h3>{{ item.name }}</h3>
- </article>
- </template>
-
- <span
- v-if="index < row.items.length - 1"
- class="flow-arrow"
- :class="{ 'flow-arrow--hidden': item.hideArrowAfter }"
- ></span>
+ <div class="flow-row flow-row--top">
+ <template v-for="item in basicFlow" :key="item.key">
+ <div class="flow-item">
+ <article class="flow-node">
+ <div class="flow-node__icon">
+ <svg-icon :icon-class="item.icon" />
+ </div>
+ <span>{{ item.name }}</span>
+ </article>
</div>
</template>
</div>
</section>
- </section>
+
+ <section class="middle-layout">
+ <div class="panel-card panel-card--sale">
+ <article class="module-title module-title--sale">
+ <div class="module-title__icon">
+ <span class="module-title__icon-shape">
+ <svg-icon icon-class="chart" />
+ </span>
+ </div>
+ <div class="module-title__text">
+ <h2>閿�鍞厤缃�</h2>
+ <p>瀹㈡埛涓庨攢鍞鐞�</p>
+ </div>
+ </article>
+
+ <div class="flow-grid flow-grid--sale">
+ <template v-for="(item, index) in saleFlow" :key="item.key">
+ <div class="grid-cell">
+ <article class="flow-node">
+ <div class="flow-node__icon" :class="{ 'flow-node__icon--accent': item.accent }">
+ <svg-icon :icon-class="item.icon" />
+ </div>
+ <span>{{ item.name }}</span>
+ </article>
+ <span
+ v-if="item.arrow === 'right'"
+ class="flow-arrow flow-arrow--right flow-arrow--grid"
+ ></span>
+ <span
+ v-if="item.arrow === 'down'"
+ class="flow-arrow flow-arrow--down flow-arrow--grid"
+ ></span>
+ </div>
+ </template>
+ </div>
+ </div>
+
+ <div class="ai-stage">
+ <div class="ai-stage__connector ai-stage__connector--top"></div>
+ <div class="ai-stage__connector ai-stage__connector--left"></div>
+ <div class="ai-stage__connector ai-stage__connector--right"></div>
+ <div class="ai-stage__connector ai-stage__connector--bottom"></div>
+
+ <div class="ai-stage__ring">
+ <div class="ai-stage__core">
+ <img :src="aiHead" alt="AI 鏍稿績寮曟搸" />
+ </div>
+ </div>
+ </div>
+
+ <div class="panel-card panel-card--purchase">
+ <article class="module-title module-title--purchase">
+ <div class="module-title__icon">
+ <span class="module-title__icon-shape">
+ <svg-icon icon-class="shopping" />
+ </span>
+ </div>
+ <div class="module-title__text">
+ <h2>閲囪喘閰嶇疆</h2>
+ <p>閲囪喘涓庝緵搴斿晢绠$悊</p>
+ </div>
+ </article>
+
+ <div class="flow-grid flow-grid--purchase">
+ <template v-for="(item, index) in purchaseFlow" :key="item.key">
+ <div class="grid-cell">
+ <article class="flow-node">
+ <div class="flow-node__icon" :class="{ 'flow-node__icon--accent': item.accent }">
+ <svg-icon :icon-class="item.icon" />
+ </div>
+ <span>{{ item.name }}</span>
+ </article>
+ <span
+ v-if="item.arrow === 'right'"
+ class="flow-arrow flow-arrow--right flow-arrow--grid"
+ ></span>
+ <span
+ v-if="item.arrow === 'down'"
+ class="flow-arrow flow-arrow--down flow-arrow--grid"
+ ></span>
+ </div>
+ </template>
+ </div>
+ </div>
+ </section>
+
+ <section class="section-card section-card--bottom">
+ <article class="module-title module-title--produce">
+ <div class="module-title__icon">
+ <span class="module-title__icon-shape">
+ <svg-icon icon-class="build" />
+ </span>
+ </div>
+ <div class="module-title__text">
+ <h2>鐢熶骇閰嶇疆</h2>
+ <p>鐢熶骇杩囩▼绠$悊</p>
+ </div>
+ </article>
+
+ <div class="flow-row flow-row--wide">
+ <template v-for="(item, index) in produceFlow" :key="item.key">
+ <div class="flow-item">
+ <article class="flow-node">
+ <div class="flow-node__icon" :class="{ 'flow-node__icon--green': item.green, 'flow-node__icon--accent': item.accent }">
+ <svg-icon :icon-class="item.icon" />
+ </div>
+ <span>{{ item.name }}</span>
+ </article>
+ <span v-if="index < produceFlow.length - 1" class="flow-arrow flow-arrow--right"></span>
+ </div>
+ </template>
+ </div>
+ </section>
+
+ <section class="section-card section-card--bottom">
+ <article class="module-title module-title--store">
+ <div class="module-title__icon">
+ <span class="module-title__icon-shape">
+ <svg-icon icon-class="redis" />
+ </span>
+ </div>
+ <div class="module-title__text">
+ <h2>浠撳偍鐗╂祦</h2>
+ <p>搴撳瓨涓庡嚭鍏ュ簱绠$悊</p>
+ </div>
+ </article>
+
+ <div class="flow-row flow-row--store">
+ <template v-for="(item, index) in storeFlow" :key="item.key">
+ <div class="flow-item">
+ <article class="flow-node">
+ <div class="flow-node__icon">
+ <svg-icon :icon-class="item.icon" />
+ </div>
+ <span>{{ item.name }}</span>
+ </article>
+ <span v-if="index < storeFlow.length - 1" class="flow-arrow flow-arrow--right"></span>
+ </div>
+ </template>
+ </div>
+ </section>
+ </div>
</div>
</template>
<script setup>
-import { nextTick, onBeforeUnmount, onMounted, onUpdated, ref } from 'vue'
import aiHead from '@/assets/images/head.svg'
-const architectureRows = [
- {
- key: 'basic',
- label: '鍩虹閰嶇疆',
- description: '绯荤粺鍩虹淇℃伅绠$悊',
- icon: 'system',
- items: [
- { name: '瑙掕壊鐢ㄦ埛绠$悊', icon: 'user' },
- { name: '浜у搧缁存姢', icon: 'monitor' },
- { name: '瀹℃壒绠$悊', icon: 'tree', accent: true }
- ]
- },
- {
- key: 'sale',
- label: '閿�鍞厤缃�',
- description: '瀹㈡埛涓庨攢鍞鐞�',
- icon: 'chart',
- items: [
- { name: '瀹㈡埛妗f', icon: 'peoples' },
- { name: '閿�鍞姤浠�', icon: 'form' },
- { name: '閿�鍞姤浠�', icon: 'chart' },
- { name: '閿�鍞彴璐�', icon: 'table' },
- { name: '鍙戣揣鍙拌处', icon: 'clipboard', accent: true, linkSource: true, aiLink: true },
- { name: '閿�鍞��璐�', icon: 'nested', accent: true, aiLink: true },
- { name: '瀹㈡埛寰�鏉�', icon: 'money' },
- { name: '鎸囨爣缁熻', icon: 'pie-chart' }
- ]
- },
- {
- key: 'purchase',
- label: '閲囪喘閰嶇疆',
- description: '閲囪喘涓庝緵搴斿晢绠$悊',
- icon: 'shopping',
- items: [
- { name: '渚涘簲鍟嗘。妗�', icon: 'people' },
- { name: '閲囪喘鍙拌处', icon: 'table' },
- { name: '閲囪喘閫�璐�', icon: 'nested', accent: true, aiLink: true },
- { isCore: true, hideArrowAfter: true },
- { name: '渚涘簲鍟嗗線鏉�', icon: 'money' },
- { name: '閲囪喘鎶ヨ〃', icon: 'chart' }
- ]
- },
- {
- key: 'produce',
- label: '鐢熶骇閰嶇疆',
- description: '鐢熶骇杩囩▼绠$悊',
- icon: 'build',
- items: [
- { name: '宸ュ簭', icon: 'tree' },
- { name: 'BOM', icon: 'list' },
- { name: '宸ヨ壓璺嚎', icon: 'guide', accent: true },
- { name: '鐢熶骇璁㈠崟', icon: 'peoples', aiLink: true },
- { name: '鐢熶骇鎺掍骇', icon: 'date' },
- { name: '鐢熶骇鎶ュ伐', icon: 'edit' },
- { name: '鎶ュ伐鍙拌处', icon: 'clipboard' },
- { name: '鐢熶骇鏍哥畻', icon: 'money', accent: true }
- ]
- },
- {
- key: 'store',
- label: '浠撳偍鐗╂祦',
- description: '搴撳瓨涓庡嚭鍏ュ簱绠$悊',
- icon: 'redis',
- items: [
- { name: '鍏ュ簱绠$悊', icon: 'download' },
- { name: '鍑哄簱绠$悊', icon: 'upload', linkTarget: true },
- { name: '搴撳瓨绠$悊', icon: 'redis-list' }
- ]
- }
+const basicFlow = [
+ { key: 'basic-role', name: '瑙掕壊绠$悊', icon: 'user' },
+ { key: 'basic-user', name: '鐢ㄦ埛绠$悊', icon: 'peoples' },
+ { key: 'basic-post', name: '宀椾綅绠$悊', icon: 'tree' },
+ { key: 'basic-dept', name: '閮ㄩ棬绠$悊', icon: 'tree' },
+ { key: 'basic-product', name: '浜у搧缁存姢', icon: 'table' },
+ { key: 'basic-approval', name: '瀹℃壒绠$悊', icon: 'form' }
]
-const canvasRef = ref(null)
-const coreRef = ref(null)
-const sourceNodeRef = ref(null)
-const targetNodeRef = ref(null)
-const svgSize = ref({ width: 0, height: 0 })
-const flowPath = ref('')
-const aiPaths = ref([])
-const aiNodeRefs = []
-let resizeObserver = null
+const saleFlow = [
+ { key: 'sale-customer', name: '瀹㈡埛妗f', icon: 'peoples', arrow: 'right' },
+ { key: 'sale-quote', name: '閿�鍞姤浠�', icon: 'form', arrow: 'right' },
+ { key: 'sale-ledger', name: '閿�鍞彴璐�', icon: 'monitor', arrow: 'right' },
+ { key: 'sale-delivery', name: '鍙戣揣鍙拌处', icon: 'clipboard', arrow: 'right' },
+ { key: 'sale-return', name: '閿�鍞��璐�', icon: 'nested', accent: true }
+]
-function setNodeRef(item) {
- return (el) => {
- if (item.linkSource) sourceNodeRef.value = el
- if (item.linkTarget) targetNodeRef.value = el
+const purchaseFlow = [
+ { key: 'purchase-supplier', name: '渚涘簲鍟嗘。妗�', icon: 'people', arrow: 'right' },
+ { key: 'purchase-ledger', name: '閲囪喘鍙拌处', icon: 'monitor', arrow: 'right' },
+ { key: 'purchase-return', name: '閲囪喘閫�璐�', icon: 'nested', accent: true },
+ { key: 'purchase-contact', name: '渚涘簲鍟嗗線鏉�', icon: 'peoples', arrow: 'right' },
+ { key: 'purchase-report', name: '閲囪喘鎶ヨ〃', icon: 'chart' }
+]
- if (item.aiLink) {
- if (el && !aiNodeRefs.some((entry) => entry.key === item.name && entry.el === el)) {
- aiNodeRefs.push({ key: item.name, el })
- }
- }
- }
-}
+const produceFlow = [
+ { key: 'produce-process', name: '宸ュ簭', icon: 'list' },
+ { key: 'produce-bom', name: 'BOM', icon: 'monitor' },
+ { key: 'produce-route', name: '宸ヨ壓璺嚎', icon: 'tree', green: true },
+ { key: 'produce-order', name: '鐢熶骇璁㈠崟', icon: 'peoples', green: true },
+ { key: 'produce-schedule', name: '鐢熶骇鎺掍骇', icon: 'time' },
+ { key: 'produce-work', name: '鐢熶骇鎶ュ伐', icon: 'edit' },
+ { key: 'produce-ledger', name: '鎶ュ伐鍙拌处', icon: 'form' },
+ { key: 'produce-cost', name: '鐢熶骇鏍哥畻', icon: 'money', accent: true }
+]
-function resetLines() {
- flowPath.value = ''
- aiPaths.value = []
-}
-
-function getCenter(rect) {
- return {
- x: rect.left + rect.width / 2,
- y: rect.top + rect.height / 2
- }
-}
-
-function getEdgePoint(sourceRect, targetRect) {
- const sourceCenter = getCenter(sourceRect)
- const targetCenter = getCenter(targetRect)
- const deltaX = targetCenter.x - sourceCenter.x
- const deltaY = targetCenter.y - sourceCenter.y
-
- if (Math.abs(deltaX) > Math.abs(deltaY)) {
- return {
- x: deltaX > 0 ? sourceRect.right : sourceRect.left,
- y: sourceCenter.y
- }
- }
-
- return {
- x: sourceCenter.x,
- y: deltaY > 0 ? sourceRect.bottom : sourceRect.top
- }
-}
-
-function updateLinkLines() {
- if (!canvasRef.value) {
- resetLines()
- return
- }
-
- svgSize.value = {
- width: Math.ceil(canvasRef.value.scrollWidth),
- height: Math.ceil(canvasRef.value.scrollHeight)
- }
-
- if (window.innerWidth <= 1200 || !coreRef.value) {
- resetLines()
- return
- }
-
- const canvasRect = canvasRef.value.getBoundingClientRect()
- const coreRect = coreRef.value.getBoundingClientRect()
- const validAiNodes = aiNodeRefs.filter((entry) => entry.el?.isConnected)
-
- aiPaths.value = validAiNodes.map((entry) => {
- const nodeRect = entry.el.getBoundingClientRect()
- const corePoint = getEdgePoint(coreRect, nodeRect)
- const nodePoint = getEdgePoint(nodeRect, coreRect)
- const startX = nodePoint.x - canvasRect.left
- const startY = nodePoint.y - canvasRect.top
- const endX = corePoint.x - canvasRect.left
- const endY = corePoint.y - canvasRect.top
- const controlY = startY < endY ? startY + (endY - startY) * 0.45 : startY - (startY - endY) * 0.45
- const controlX = (startX + endX) / 2
-
- return {
- key: entry.key,
- d: `M ${startX} ${startY} C ${controlX} ${controlY}, ${controlX} ${controlY}, ${endX} ${endY}`
- }
- })
-
- if (!sourceNodeRef.value || !targetNodeRef.value) {
- flowPath.value = ''
- return
- }
-
- const sourceRect = sourceNodeRef.value.getBoundingClientRect()
- const targetRect = targetNodeRef.value.getBoundingClientRect()
- const startX = sourceRect.left + sourceRect.width / 2 - canvasRect.left
- const startY = sourceRect.bottom - canvasRect.top + 2
- const endX = targetRect.left + targetRect.width / 2 - canvasRect.left
- const endY = targetRect.top - canvasRect.top - 4
- const middleY = startY + (endY - startY) / 2
-
- flowPath.value = `M ${startX} ${startY} C ${startX} ${middleY}, ${endX} ${middleY}, ${endX} ${endY}`
-}
-
-function handleResize() {
- requestAnimationFrame(() => {
- requestAnimationFrame(updateLinkLines)
- })
-}
-
-onMounted(async () => {
- await nextTick()
- handleResize()
- window.addEventListener('resize', handleResize)
- if (window.ResizeObserver && canvasRef.value) {
- resizeObserver = new ResizeObserver(handleResize)
- resizeObserver.observe(canvasRef.value)
- }
-})
-
-onUpdated(() => {
- nextTick(handleResize)
-})
-
-onBeforeUnmount(() => {
- window.removeEventListener('resize', handleResize)
- if (resizeObserver) resizeObserver.disconnect()
-})
+const storeFlow = [
+ { key: 'store-in', name: '鍏ュ簱绠$悊', icon: 'download' },
+ { key: 'store-out', name: '鍑哄簱绠$悊', icon: 'guide' },
+ { key: 'store-stock', name: '搴撳瓨绠$悊', icon: 'redis-list' }
+]
</script>
<style scoped>
.architecture-page {
- min-height: calc(100vh - 84px);
- padding: 24px;
- background: #f0f4fb;
+ padding: 20px 0;
}
-.page-header {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 24px;
-}
-
-.header-line {
- width: 4px;
- height: 20px;
- background: #2563eb;
- border-radius: 2px;
+.architecture-shell {
+ max-width: 1680px;
+ margin: 0 auto;
+ padding: 12px 12px 18px;
+ border-radius: 34px;
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
+ box-shadow:
+ 0 18px 48px rgba(117, 146, 198, 0.12),
+ inset 0 0 0 1px rgba(228, 237, 250, 0.9);
}
.page-title {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 8px 10px 18px;
+}
+
+.page-title__bar {
+ width: 5px;
+ height: 24px;
+ border-radius: 999px;
+ background: linear-gradient(180deg, #1f71ff 0%, #5daaff 100%);
+}
+
+.page-title h1 {
margin: 0;
- font-size: 18px;
+ font-size: 24px;
font-weight: 700;
- color: #1f2937;
+ color: #1f2d3d;
}
-.canvas {
- position: relative;
- display: flex;
- flex-direction: column;
- gap: 20px;
- padding: 28px 24px;
- background: #fff;
- border: 1px solid rgba(219, 234, 254, 0.9);
- border-radius: 18px;
- box-shadow: 0 10px 30px rgba(30, 64, 175, 0.06);
+.section-card,
+.panel-card {
+ background: rgba(255, 255, 255, 0.96);
+ border-radius: 26px;
+ box-shadow:
+ 0 12px 28px rgba(118, 147, 204, 0.08),
+ 0 4px 12px rgba(118, 147, 204, 0.05);
}
-.lane {
+.section-card {
display: grid;
- grid-template-columns: 190px 1fr;
- gap: 18px;
- align-items: stretch;
+ grid-template-columns: 290px minmax(0, 1fr);
+ gap: 8px;
+ align-items: center;
+ padding: 18px 24px;
}
-.lane__aside-card {
+.section-card + .section-card {
+ margin-top: 18px;
+}
+
+.middle-layout {
+ display: grid;
+ grid-template-columns: minmax(300px, 1fr) 420px minmax(300px, 1fr);
+ gap: 18px;
+ align-items: center;
+}
+
+.panel-card {
+ min-height: 284px;
+ padding: 16px 18px 18px;
+}
+
+.module-title {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.module-title__icon {
+ width: 44px;
+ height: 50px;
+ position: relative;
+ display: grid;
+ place-items: center;
+ transform: translateY(-1px);
+ filter: drop-shadow(0 10px 14px rgba(82, 125, 211, 0.28))
+ drop-shadow(0 4px 8px rgba(82, 125, 211, 0.18));
+}
+
+.module-title__icon-shape {
+ width: 100%;
height: 100%;
- min-height: 138px;
- padding: 22px 20px;
+ clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
+ display: grid;
+ place-items: center;
+ color: #fff;
+ font-size: 18px;
+}
+
+.module-title__text h2 {
+ margin: 0;
+ font-size: 17px;
+ font-weight: 800;
+ color: #1f2d3d;
+}
+
+.module-title__text p {
+ margin: 6px 0 0;
+ font-size: 12px;
+ color: #7f8ba3;
+}
+
+.module-title--basic .module-title__icon {
+ filter: drop-shadow(0 10px 14px rgba(47, 110, 236, 0.28))
+ drop-shadow(0 4px 8px rgba(47, 110, 236, 0.18));
+}
+
+.module-title--basic .module-title__icon-shape {
+ background: linear-gradient(135deg, #2069ff 0%, #5bb0ff 100%);
+}
+
+.module-title--sale .module-title__icon {
+ filter: drop-shadow(0 10px 14px rgba(123, 66, 255, 0.24))
+ drop-shadow(0 4px 8px rgba(123, 66, 255, 0.16));
+}
+
+.module-title--sale .module-title__icon-shape {
+ background: linear-gradient(135deg, #7b42ff 0%, #a172ff 100%);
+}
+
+.module-title--purchase .module-title__icon {
+ filter: drop-shadow(0 10px 14px rgba(52, 161, 255, 0.24))
+ drop-shadow(0 4px 8px rgba(52, 161, 255, 0.16));
+}
+
+.module-title--purchase .module-title__icon-shape {
+ background: linear-gradient(135deg, #34a1ff 0%, #66c6ff 100%);
+}
+
+.module-title--produce .module-title__icon {
+ filter: drop-shadow(0 10px 14px rgba(36, 183, 118, 0.24))
+ drop-shadow(0 4px 8px rgba(36, 183, 118, 0.16));
+}
+
+.module-title--produce .module-title__icon-shape {
+ background: linear-gradient(135deg, #24b776 0%, #62d49d 100%);
+}
+
+.module-title--store .module-title__icon {
+ filter: drop-shadow(0 10px 14px rgba(119, 81, 255, 0.24))
+ drop-shadow(0 4px 8px rgba(119, 81, 255, 0.16));
+}
+
+.module-title--store .module-title__icon-shape {
+ background: linear-gradient(135deg, #7751ff 0%, #9b76ff 100%);
+}
+
+.flow-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ min-width: 0;
+}
+
+.flow-row--top {
+ padding-right: 16px;
+}
+
+.flow-row--wide {
+ gap: 2px;
+}
+
+.flow-row--store {
+ justify-content: flex-start;
+ gap: 36px;
+}
+
+.flow-item {
+ display: flex;
+ align-items: center;
+ min-width: 0;
+}
+
+.flow-node {
+ width: 84px;
display: flex;
flex-direction: column;
align-items: center;
- justify-content: center;
- gap: 14px;
- background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
- border: 1px solid rgba(219, 234, 254, 0.95);
- border-radius: 18px;
- box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.9);
+ gap: 8px;
+ text-align: center;
}
-.lane__aside-card--sale .lane__aside-icon {
- background: linear-gradient(180deg, #f3e8ff 0%, #e9d5ff 100%);
- color: #9333ea;
-}
-
-.lane__aside-card--purchase .lane__aside-icon {
- background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
- color: #0284c7;
-}
-
-.lane__aside-card--produce .lane__aside-icon {
- background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
- color: #16a34a;
-}
-
-.lane__aside-card--store .lane__aside-icon {
- background: linear-gradient(180deg, #eef2ff 0%, #dbeafe 100%);
- color: #2563eb;
-}
-
-.lane__aside-icon {
- width: 44px;
- height: 44px;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 14px;
- background: linear-gradient(180deg, #e0ecff 0%, #dbeafe 100%);
- color: #2563eb;
- box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
-}
-
-.lane__icon {
+.flow-node__icon {
+ width: 38px;
+ height: 38px;
+ display: grid;
+ place-items: center;
+ color: #3f76f3;
font-size: 24px;
}
-.lane__aside-content h2 {
- margin: 0;
- font-size: 18px;
- font-weight: 700;
- color: #1d4ed8;
- line-height: 1.2;
- text-align: center;
+.flow-node__icon--accent {
+ color: #ff6c4f;
}
-.lane__aside-content p {
- margin: 0;
+.flow-node__icon--green {
+ color: #2bb875;
+}
+
+.flow-node span {
font-size: 13px;
- color: #7c8aa5;
+ line-height: 1.2;
+ font-weight: 600;
+ color: #1f2d3d;
}
-.lane__flow {
+.flow-arrow {
position: relative;
- z-index: 2;
- display: flex;
- align-items: center;
- gap: 12px;
- min-height: 138px;
- padding: 18px 22px;
- background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
- border: 1px solid rgba(219, 234, 254, 0.9);
- border-radius: 18px;
- box-shadow: inset 0 1px 10px rgba(255, 255, 255, 0.92);
+ flex: 0 0 auto;
+ opacity: 0.68;
}
-.lane__flow--purchase,
-.lane__flow--produce {
- padding-left: 28px;
- padding-right: 28px;
+.flow-arrow--right {
+ width: 24px;
+ height: 1px;
+ margin: 0 4px;
+ background: linear-gradient(90deg, rgba(182, 205, 255, 0.9) 0%, rgba(127, 168, 255, 0.9) 100%);
}
-.node-wrap {
- display: flex;
- align-items: center;
- gap: 12px;
- flex-shrink: 0;
+.flow-arrow--right::after {
+ content: '';
+ position: absolute;
+ right: 0;
+ top: 50%;
+ width: 6px;
+ height: 6px;
+ border-top: 1px solid #8aacff;
+ border-right: 1px solid #8aacff;
+ transform: translateY(-50%) rotate(45deg);
}
-.node {
- width: 96px;
- min-height: 86px;
- padding: 8px 6px;
+.flow-arrow--down {
+ width: 1px;
+ height: 22px;
+ margin: 2px auto 0;
+ background: linear-gradient(180deg, rgba(182, 205, 255, 0.9) 0%, rgba(127, 168, 255, 0.9) 100%);
+}
+
+.flow-arrow--down::after {
+ content: '';
+ position: absolute;
+ left: 50%;
+ bottom: 0;
+ width: 6px;
+ height: 6px;
+ border-right: 1px solid #8aacff;
+ border-bottom: 1px solid #8aacff;
+ transform: translateX(-50%) rotate(45deg);
+}
+
+.flow-grid {
+ display: grid;
+ margin-top: 26px;
+}
+
+.flow-grid--sale {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ row-gap: 18px;
+}
+
+.flow-grid--purchase {
+ grid-template-columns: repeat(3, 1fr);
+ grid-template-rows: repeat(2, auto);
+ row-gap: 34px;
+}
+
+.grid-cell {
+ position: relative;
+ min-height: 80px;
+}
+
+.flow-arrow--grid.flow-arrow--right {
+ position: absolute;
+ top: 18px;
+ right: 2px;
+ margin: 0;
+}
+
+.flow-arrow--grid.flow-arrow--down {
+ position: absolute;
+ left: 50%;
+ bottom: -2px;
+ transform: translateX(-50%);
+ margin: 0;
+}
+
+.ai-stage {
+ position: relative;
+ height: 388px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- gap: 8px;
- background: transparent;
+ transform: translateX(-30px);
}
-.node__icon-wrapper {
- width: 58px;
- height: 58px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 16px;
- background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
- border: 1px solid rgba(191, 219, 254, 0.95);
- box-shadow:
- 0 8px 18px rgba(37, 99, 235, 0.08),
- inset 0 1px 8px rgba(255, 255, 255, 0.95);
-}
-
-.node__icon {
- font-size: 26px;
- color: #2563eb;
-}
-
-.node--accent .node__icon-wrapper {
- background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
-}
-
-.node h3 {
- margin: 0;
- font-size: 12px;
- line-height: 1.35;
- font-weight: 600;
- color: #334155;
- text-align: center;
-}
-
-.flow-arrow {
- width: 36px;
- height: 1px;
+.ai-stage__ring {
+ width: 300px;
+ height: 300px;
+ display: grid;
+ place-items: center;
position: relative;
- background: repeating-linear-gradient(
- to right,
- #bfd7ff 0,
- #bfd7ff 4px,
- transparent 4px,
- transparent 8px
- );
}
-.flow-arrow::after {
- content: '';
- position: absolute;
- top: 50%;
- right: -1px;
- width: 6px;
- height: 6px;
- border-top: 1px solid #9ec5ff;
- border-right: 1px solid #9ec5ff;
- transform: translateY(-50%) rotate(45deg);
+.ai-stage__core {
+ width: 340px;
+ height: 340px;
+ display: grid;
+ place-items: center;
}
-.flow-arrow--hidden {
- visibility: hidden;
-}
-
-.ai-core {
- position: relative;
- width: 252px;
- height: 176px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.ai-core__halo {
- position: absolute;
- inset: 14px 28px 32px;
- border-radius: 50%;
- background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0) 72%);
- transform: scale(1.08);
-}
-
-.ai-core__brain {
- position: absolute;
- inset: 6px 0 0;
- left: 50%;
- width: 232px;
- height: 156px;
- transform: translateX(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- filter: drop-shadow(0 10px 18px rgba(96, 165, 250, 0.18));
-}
-
-.ai-core__head-image {
- width: 100%;
- height: 100%;
+.ai-stage__core img {
+ width: 360px;
+ height: 360px;
object-fit: contain;
+ transform: translateY(-24px);
+ filter: drop-shadow(0 10px 24px rgba(76, 135, 255, 0.22));
}
-.link-overlay {
+.ai-stage__base {
+ width: 210px;
+ height: 42px;
+ margin-top: -14px;
+ border-radius: 999px;
+ background:
+ radial-gradient(circle at center, rgba(111, 223, 255, 0.8) 0%, rgba(111, 223, 255, 0.22) 34%, rgba(111, 223, 255, 0) 66%),
+ linear-gradient(180deg, #ffffff 0%, #dce9ff 100%);
+ box-shadow:
+ 0 10px 22px rgba(102, 145, 222, 0.14),
+ inset 0 -4px 10px rgba(94, 170, 255, 0.2);
+}
+
+.ai-stage__label {
+ margin-top: 18px;
+ padding: 8px 18px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.9);
+ color: #537ae5;
+ font-size: 14px;
+ font-weight: 700;
+ box-shadow: 0 10px 20px rgba(118, 147, 204, 0.08);
+}
+
+.ai-stage__connector {
position: absolute;
- inset: 0;
- z-index: 3;
+ border-color: rgba(145, 181, 247, 0.5);
+ border-style: dashed;
+ border-width: 1px;
pointer-events: none;
}
-.link-overlay__path {
- fill: none;
- stroke: #bfd2ea;
- stroke-width: 1.2;
- stroke-dasharray: 4 5;
- stroke-linecap: round;
- stroke-linejoin: round;
+.ai-stage__connector--top {
+ top: 24px;
+ left: 50%;
+ width: 0;
+ height: 64px;
+ border-left-width: 1px;
+ transform: translateX(-50%);
}
-.link-overlay__path--ai {
- stroke: #bfd7ff;
- stroke-width: 1.4;
+.ai-stage__connector--left,
+.ai-stage__connector--right {
+ top: 148px;
+ width: 74px;
+ border-top-width: 1px;
}
-@media (max-width: 1200px) {
- .architecture-page {
- padding: 16px;
+.ai-stage__connector--left {
+ left: 18px;
+}
+
+.ai-stage__connector--right {
+ right: 18px;
+}
+
+.ai-stage__connector--bottom {
+ bottom: 32px;
+ left: 50%;
+ width: 0;
+ height: 64px;
+ border-left-width: 1px;
+ transform: translateX(-50%);
+}
+
+@media (max-width: 1440px) {
+ .middle-layout {
+ grid-template-columns: 1fr 360px 1fr;
}
- .lane {
+ .ai-stage__ring {
+ width: 260px;
+ height: 260px;
+ }
+
+ .ai-stage__core img {
+ width: 272px;
+ height: 272px;
+ }
+}
+
+@media (max-width: 1180px) {
+ .section-card {
+ grid-template-columns: 1fr;
+ gap: 18px;
+ }
+
+ .middle-layout {
grid-template-columns: 1fr;
}
- .lane__aside-card,
- .lane__flow {
- min-height: auto;
+ .ai-stage {
+ order: 2;
+ height: 360px;
}
- .lane__flow {
- flex-wrap: wrap;
+ .panel-card--sale {
+ order: 1;
}
- .ai-core {
- order: 99;
- width: 100%;
- max-width: 268px;
- margin: 0 auto;
- }
-
- .link-overlay {
- display: none;
+ .panel-card--purchase {
+ order: 3;
}
}
-@media (max-width: 768px) {
- .canvas {
+@media (max-width: 860px) {
+ .architecture-page {
+ padding: 12px;
+ }
+
+ .architecture-shell {
+ padding: 10px;
+ border-radius: 24px;
+ }
+
+ .page-title h1 {
+ font-size: 22px;
+ }
+
+ .section-card,
+ .panel-card {
padding: 16px;
- gap: 16px;
+ border-radius: 20px;
}
- .lane__aside-card {
- min-height: auto;
- padding: 18px 16px;
+ .module-title__icon {
+ width: 40px;
+ height: 46px;
+ font-size: 16px;
}
- .lane__flow {
- padding: 16px;
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
- gap: 12px;
+ .module-title__text h2 {
+ font-size: 16px;
}
- .node-wrap {
- flex-direction: column;
- gap: 8px;
+ .flow-row {
+ justify-content: flex-start;
+ flex-wrap: wrap;
}
- .node {
- width: 100%;
- }
-
- .flow-arrow {
- width: 1px;
- height: 16px;
- margin: 0 auto;
- background: repeating-linear-gradient(
- to bottom,
- #bfd7ff 0,
- #bfd7ff 4px,
- transparent 4px,
- transparent 8px
- );
- }
-
- .flow-arrow::after {
- top: auto;
- right: 50%;
- bottom: -1px;
- transform: translateX(50%) rotate(135deg);
+ .flow-grid--sale,
+ .flow-grid--purchase {
+ grid-template-columns: repeat(2, 1fr);
}
}
</style>
--
Gitblit v1.9.3