更新:重构多个页面代码,简化代码。实现无刷新更新数据。

This commit is contained in:
杨水淼
2025-07-14 12:46:48 +08:00
parent daeae185dd
commit de11c31f0b
18 changed files with 890 additions and 288 deletions
+86 -1
View File
@@ -41,4 +41,89 @@ A:hover {
FONT-SIZE: 16px;
COLOR: #043B9C;
TEXT-DECORATION: underline
}
}
.btn-submit {
background-color: var(--primary-color);
color: #0c0c0c;
border: none;
padding: 2px 2px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: background-color 0.3s;
display: flex;
align-items: center;
gap: 8px;
margin-top: 15px; /* ADDED 上边距 */
display: inline-flex; /* MODIFIED from flex */
}
.btn-submit:hover {
background-color: #2980b9;
}
.btn-submit:disabled {
background-color: #95a5a6;
cursor: not-allowed;
}
#chartCanvas {
width: 100%;
height: 10px;
}
.loading-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.85);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
z-index: 10;
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
}
.loading-overlay.active {
opacity: 1;
pointer-events: auto;
}
/* 加载文字样式 */
.loading-overlay p {
font-size: 18px;
color: var(--secondary-color);
margin-top: 10px;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(52, 152, 219, 0.2);
border-top: 5px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 15px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.chart-container {
width: 1000px;
height: 400px;
margin-top: 20px;
}
.chart-container:last-child {
margin-bottom: 20px;
}