deving
This commit is contained in:
+3
-1
@@ -446,7 +446,9 @@ async def result_page(request: Request, task_id: str, db_session: AsyncSession =
|
|||||||
"manufacturing_info": {
|
"manufacturing_info": {
|
||||||
"mold_material": mold_cavity_data.mold_material,
|
"mold_material": mold_cavity_data.mold_material,
|
||||||
"estimated_clamping_force": mold_cavity_data.estimated_clamping_force,
|
"estimated_clamping_force": mold_cavity_data.estimated_clamping_force,
|
||||||
"parting_line_length": mold_cavity_data.parting_line_length
|
"parting_line_length": mold_cavity_data.parting_line_length,
|
||||||
|
"estimated_cycle_time": mold_cavity_data.estimated_cycle_time,
|
||||||
|
"manufacturing_tolerance": mold_cavity_data.manufacturing_tolerance
|
||||||
},
|
},
|
||||||
"mold_cavities": {
|
"mold_cavities": {
|
||||||
"cavity_key_info": {
|
"cavity_key_info": {
|
||||||
|
|||||||
@@ -199,6 +199,8 @@ class MoldCavityData(Base):
|
|||||||
product_volume = Column(Float, nullable=True)
|
product_volume = Column(Float, nullable=True)
|
||||||
wall_thickness_range = Column(String(50), nullable=True)
|
wall_thickness_range = Column(String(50), nullable=True)
|
||||||
complexity_score = Column(Float, nullable=True)
|
complexity_score = Column(Float, nullable=True)
|
||||||
|
estimated_cycle_time = Column(String(50), nullable=True)
|
||||||
|
manufacturing_tolerance = Column(String(50), nullable=True
|
||||||
|
|
||||||
# 质量评估
|
# 质量评估
|
||||||
weld_line_risk = Column(String(50), nullable=True) # 熔接痕风险
|
weld_line_risk = Column(String(50), nullable=True) # 熔接痕风险
|
||||||
|
|||||||
+1
-19
@@ -173,25 +173,7 @@ body {
|
|||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 关键工艺参数三列布局 - 使用最高优先级 */
|
/* 关键工艺参数布局由result.html内联样式控制 */
|
||||||
.key-info-categories {
|
|
||||||
display: grid !important;
|
|
||||||
grid-template-columns: repeat(3, 1fr) !important;
|
|
||||||
gap: 20px !important;
|
|
||||||
margin-bottom: 20px !important;
|
|
||||||
width: 100% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 确保所有子元素正确布局 */
|
|
||||||
.key-info-categories > .category-section {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.key-info-categories > .category-section .category-content {
|
|
||||||
display: flex !important;
|
|
||||||
flex-direction: column !important;
|
|
||||||
gap: 12px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.data-grid {
|
.data-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
+15
-6
@@ -107,24 +107,33 @@
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 强制关键工艺参数三列布局 */
|
/* 强制关键工艺参数一行显示 - 三列并排 */
|
||||||
.key-info-categories {
|
.key-info-categories {
|
||||||
display: grid !important;
|
display: flex !important;
|
||||||
grid-template-columns: repeat(3, 1fr) !important;
|
flex-direction: row !important;
|
||||||
|
justify-content: space-between !important;
|
||||||
|
align-items: flex-start !important;
|
||||||
gap: 20px !important;
|
gap: 20px !important;
|
||||||
margin-bottom: 20px !important;
|
margin-bottom: 20px !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
align-items: start !important;
|
min-height: 200px !important;
|
||||||
|
flex-wrap: nowrap !important;
|
||||||
|
overflow-x: visible !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.key-info-categories .category-section {
|
.key-info-categories .category-section {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
width: 100% !important;
|
width: calc(33.333% - 14px) !important;
|
||||||
|
min-width: 250px !important;
|
||||||
|
max-width: 400px !important;
|
||||||
min-height: 200px !important;
|
min-height: 200px !important;
|
||||||
background: #f8f9fa !important;
|
background: #f8f9fa !important;
|
||||||
border: 1px solid #e0e0e0 !important;
|
border: 1px solid #e0e0e0 !important;
|
||||||
border-radius: 8px !important;
|
border-radius: 8px !important;
|
||||||
padding: 15px !important;
|
padding: 15px !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
|
flex-grow: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.key-info-categories .category-title {
|
.key-info-categories .category-title {
|
||||||
@@ -221,7 +230,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// 从模板获取任务数据
|
// 从模板获取任务数据
|
||||||
const task = {{ task | tojson | safe }};
|
const task = JSON.parse('{{ task | tojson | safe }}');
|
||||||
|
|
||||||
// 页面加载完成后显示任务数据
|
// 页面加载完成后显示任务数据
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user