This commit is contained in:
2026-03-04 00:47:41 +08:00
parent 54f83cd76c
commit f3196f3e87
9 changed files with 2929 additions and 650 deletions
+24
View File
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gemold - 模具制造管理系统</title>
<link rel="stylesheet" href="/static/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div id="app">
<div class="loading-state" style="height: 100vh;">
<div class="spinner"></div>
<span>加载中...</span>
</div>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
<script src="https://unpkg.com/vue-router@4/dist/vue-router.global.prod.js"></script>
<script src="/static/vue-app.js"></script>
</body>
</html>
+468
View File
@@ -1307,3 +1307,471 @@ a:hover {
white-space: nowrap;
border: 0;
}
.badge-primary {
background: var(--primary-100);
color: var(--primary-700);
}
.text-warning {
color: var(--warning);
}
.user-section {
display: flex;
align-items: center;
gap: var(--space-4);
}
.user-info {
display: flex;
align-items: center;
gap: var(--space-2);
}
.user-name {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-primary);
}
.admin-badge {
font-size: var(--text-xs);
padding: var(--space-1) var(--space-2);
background: var(--primary-100);
color: var(--primary-700);
border-radius: var(--radius-sm);
}
.btn-logout {
padding: var(--space-2) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-secondary);
background: transparent;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--duration-fast) var(--ease-default);
}
.btn-logout:hover {
background: var(--gray-100);
color: var(--text-primary);
}
.btn-login {
padding: var(--space-2) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: white;
background: var(--gradient-primary);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--duration-fast) var(--ease-default);
}
.btn-login:hover {
opacity: 0.9;
}
.auth-page {
min-height: calc(100vh - 200px);
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-8);
}
.auth-card {
width: 100%;
max-width: 400px;
background: var(--bg-primary);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-xl);
padding: var(--space-8);
}
.auth-header {
text-align: center;
margin-bottom: var(--space-8);
}
.auth-logo {
width: 60px;
height: 60px;
background: var(--gradient-primary);
border-radius: var(--radius-xl);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
margin: 0 auto var(--space-4);
box-shadow: var(--shadow-lg);
}
.auth-header h1 {
font-size: var(--text-2xl);
margin-bottom: var(--space-2);
}
.auth-header p {
font-size: var(--text-sm);
color: var(--text-tertiary);
}
.auth-form {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
.form-group {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.form-group label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-secondary);
}
.form-group input {
padding: var(--space-3) var(--space-4);
font-size: var(--text-base);
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
background: var(--bg-primary);
color: var(--text-primary);
transition: all var(--duration-fast) var(--ease-default);
}
.form-group input:focus {
outline: none;
border-color: var(--primary-500);
box-shadow: 0 0 0 3px var(--primary-100);
}
.form-group input::placeholder {
color: var(--text-muted);
}
.error-message {
padding: var(--space-3);
background: var(--error-bg);
color: var(--error);
font-size: var(--text-sm);
border-radius: var(--radius-md);
text-align: center;
}
.btn-full {
width: 100%;
}
.auth-footer {
margin-top: var(--space-6);
text-align: center;
font-size: var(--text-sm);
color: var(--text-tertiary);
}
.auth-footer a {
color: var(--primary-600);
font-weight: var(--font-medium);
cursor: pointer;
}
.auth-footer a:hover {
color: var(--primary-700);
}
.page-container {
max-width: 1200px;
margin: 0 auto;
}
.page-header {
margin-bottom: var(--space-6);
}
.page-header h1 {
font-size: var(--text-3xl);
margin-bottom: var(--space-2);
}
.page-header p {
font-size: var(--text-base);
color: var(--text-tertiary);
}
.section {
margin-top: var(--space-8);
}
.section-title {
font-size: var(--text-xl);
margin-bottom: var(--space-4);
}
.loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--space-12);
gap: var(--space-4);
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--gray-200);
border-top-color: var(--primary-500);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.error-state {
text-align: center;
padding: var(--space-12);
color: var(--error);
}
.tabs {
display: flex;
gap: var(--space-2);
margin-bottom: var(--space-6);
border-bottom: 1px solid var(--border-light);
padding-bottom: var(--space-2);
overflow-x: auto;
}
.tab {
padding: var(--space-2) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-tertiary);
background: transparent;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all var(--duration-fast) var(--ease-default);
white-space: nowrap;
}
.tab:hover {
color: var(--text-primary);
}
.tab.active {
color: var(--primary-600);
border-bottom-color: var(--primary-600);
}
.table-container {
background: var(--bg-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.action-buttons {
display: flex;
gap: var(--space-2);
}
.btn-sm {
padding: var(--space-1) var(--space-3);
font-size: var(--text-xs);
font-weight: var(--font-medium);
border-radius: var(--radius-sm);
border: none;
cursor: pointer;
transition: all var(--duration-fast) var(--ease-default);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-success:hover {
background: var(--accent-600);
}
.btn-warning {
background: var(--warning-bg);
color: var(--warning);
}
.btn-warning:hover {
background: var(--warning);
color: white;
}
.btn-back {
padding: var(--space-2) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-secondary);
background: transparent;
border: none;
cursor: pointer;
margin-bottom: var(--space-4);
}
.btn-back:hover {
color: var(--text-primary);
}
.result-container {
display: flex;
flex-direction: column;
gap: var(--space-6);
}
.result-header {
display: flex;
align-items: center;
gap: var(--space-4);
}
.result-header h2 {
font-size: var(--text-2xl);
}
.result-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--space-6);
}
.result-card {
background: var(--bg-primary);
border-radius: var(--radius-lg);
padding: var(--space-6);
box-shadow: var(--shadow-sm);
}
.result-card h3 {
font-size: var(--text-lg);
margin-bottom: var(--space-4);
padding-bottom: var(--space-3);
border-bottom: 1px solid var(--border-light);
}
.info-list {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
}
.info-label {
font-size: var(--text-sm);
color: var(--text-tertiary);
}
.info-value {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-primary);
}
.viewer-section {
background: var(--bg-primary);
border-radius: var(--radius-lg);
padding: var(--space-6);
box-shadow: var(--shadow-sm);
}
.viewer-section h3 {
font-size: var(--text-lg);
margin-bottom: var(--space-4);
}
.viewer-frame {
width: 100%;
height: 500px;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
}
.quick-actions {
margin-top: var(--space-8);
}
.action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-4);
}
.action-card {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
padding: var(--space-6);
background: var(--bg-primary);
border-radius: var(--radius-lg);
border: 1px solid var(--border-light);
cursor: pointer;
transition: all var(--duration-fast) var(--ease-default);
}
.action-card:hover {
border-color: var(--primary-300);
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.action-icon {
font-size: 1.5rem;
}
.action-label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-secondary);
}
.nav-icon {
margin-right: var(--space-2);
}
.upload-section {
display: flex;
flex-direction: column;
gap: var(--space-4);
margin-bottom: var(--space-8);
}
.file-info {
display: flex;
align-items: center;
gap: var(--space-4);
padding: var(--space-3) var(--space-4);
background: var(--bg-primary);
border-radius: var(--radius-md);
border: 1px solid var(--border-light);
}
.file-name {
font-weight: var(--font-medium);
color: var(--text-primary);
}
.file-size {
font-size: var(--text-sm);
color: var(--text-tertiary);
}
+1059 -613
View File
File diff suppressed because it is too large Load Diff