修改了简易配置

This commit is contained in:
root 2025-09-08 08:50:27 +08:00
parent 00bba8f7cf
commit 54e81ac0ea
3 changed files with 54 additions and 245 deletions

View File

@ -34,7 +34,7 @@ synchronized_images_only = False
[DEVICES]
imu_device_type = real
imu_port = COM8
imu_port = COM9
imu_baudrate = 9600
pressure_device_type = real
pressure_use_mock = False

View File

@ -1,4 +1,5 @@
/* 全局样式重置 */
/* Global styles for BodyBalanceEvaluation frontend */
* {
margin: 0;
padding: 0;
@ -6,72 +7,40 @@
}
body {
font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
background-color: #f5f7fa;
color: #303133;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* 布局容器 */
.app-container {
display: flex;
#app {
width: 100%;
height: 100vh;
overflow: hidden;
}
.sidebar {
width: 250px;
background: #304156;
color: white;
overflow-y: auto;
transition: width 0.3s;
}
.sidebar.collapsed {
width: 64px;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.header {
height: 60px;
border-bottom: 1px solid #e4e7ed;
display: flex;
align-items: center;
padding: 0 20px;
box-shadow: 0 1px 4px rgba(0,21,41,.08);
}
.content {
flex: 1;
/* 通用样式 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
overflow-y: auto;
background: #f5f7fa;
}
/* 按钮样式 */
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-primary {
background-color: #409eff;
color: white;
}
.btn-primary:hover {
background-color: #66b1ff;
}
/* 卡片样式 */
@ -83,201 +52,31 @@ body {
margin-bottom: 20px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
}
.card-title {
font-size: 18px;
font-weight: 600;
color: #303133;
}
/* 状态指示器 */
.status-indicator {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.status-online {
background-color: #67c23a;
}
.status-offline {
background-color: #f56c6c;
}
.status-warning {
background-color: #e6a23c;
}
/* 数据展示 */
.data-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.data-item {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
text-align: center;
}
.data-value {
font-size: 32px;
font-weight: bold;
color: #409eff;
margin-bottom: 8px;
}
.data-label {
font-size: 14px;
color: #909399;
}
/* 按钮组 */
.button-group {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
/* 表单样式 */
.form-container {
/* max-width: 600px; */
margin: 0 auto;
}
.form-row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.form-item {
flex: 1;
}
/* 图表容器 */
.chart-container {
height: 400px;
margin: 20px 0;
}
/* 视频容器 */
.video-container {
position: relative;
background: #000;
border-radius: 8px;
overflow: hidden;
}
.video-player {
width: 100%;
height: 100%;
object-fit: cover;
}
.video-controls {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
padding: 20px;
display: flex;
align-items: center;
gap: 15px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.sidebar {
width: 100%;
position: fixed;
top: 0;
left: -100%;
z-index: 1000;
transition: left 0.3s;
.container {
padding: 10px;
}
.sidebar.open {
left: 0;
}
.main-content {
margin-left: 0;
}
.data-grid {
grid-template-columns: 1fr;
}
.form-row {
flex-direction: column;
.card {
padding: 15px;
}
}
/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.3s;
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
::-webkit-scrollbar-track {
background: #f1f1f1;
}
.slide-enter-active,
.slide-leave-active {
transition: transform 0.3s;
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
.slide-enter-from {
transform: translateX(-100%);
}
.slide-leave-to {
transform: translateX(100%);
}
/* 工具类 */
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.mb-20 {
margin-bottom: 20px;
}
.mt-20 {
margin-top: 20px;
}
.p-20 {
padding: 20px;
}
.full-width {
width: 100%;
}
.full-height {
height: 100%;
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}

View File

@ -535,6 +535,16 @@
<el-option label="COM8" value="COM8" />
<el-option label="COM9" value="COM9" />
<el-option label="COM10" value="COM10" />
<el-option label="COM11" value="COM11" />
<el-option label="COM12" value="COM12" />
<el-option label="COM13" value="COM13" />
<el-option label="COM14" value="COM14" />
<el-option label="COM15" value="COM15" />
<el-option label="COM16" value="COM16" />
<el-option label="COM17" value="COM17" />
<el-option label="COM18" value="COM18" />
<el-option label="COM19" value="COM19" />
<el-option label="COM20" value="COM20" />
</el-select>
</el-form-item>
</el-form>