feat: 完善追溯码出库上链管理

This commit is contained in:
Nixevol
2026-07-04 06:04:46 +08:00
parent a1120848e9
commit cfce2d9a75
16 changed files with 457 additions and 46 deletions
+11 -3
View File
@@ -1,5 +1,5 @@
<template>
<n-layout has-sider position="absolute">
<n-layout has-sider position="absolute" class="admin-layout">
<n-layout-sider
bordered
:collapsed="collapsed"
@@ -24,7 +24,7 @@
/>
</n-layout-sider>
<n-layout>
<n-layout class="admin-main">
<n-layout-header bordered class="header">
<div class="header-title text-ellipsis">{{ currentTitle }}</div>
<div class="spacer" />
@@ -177,6 +177,13 @@ onUnmounted(() => window.removeEventListener('resize', resizeHandler));
font-weight: 600;
color: var(--brand);
}
.admin-layout {
min-width: var(--admin-min-width);
min-height: var(--admin-min-height);
}
.admin-main {
min-width: 0;
}
.header {
display: flex;
align-items: center;
@@ -193,7 +200,8 @@ onUnmounted(() => window.removeEventListener('resize', resizeHandler));
flex: 1 1 auto;
}
.content {
height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
height: calc(max(100vh, var(--admin-min-height)) - var(--admin-header-height) - var(--admin-footer-height));
min-height: calc(var(--admin-min-height) - var(--admin-header-height) - var(--admin-footer-height));
}
.footer {
height: var(--admin-footer-height);