Files
param-auto-manager/static/css/process.css
T
hz4th_coder 96c479916b feat: 步骤4提取产品数据改用智能体hz4th_editor执行
- 步骤4调用 openclaw agent --agent hz4th_editor --message 执行提取任务
- 新增任务文本模板(config/agent_task_template.txt),支持变量填充
- /process页面新增模板编辑面板,可查看/编辑/保存/预览模板
- 模板变量: {{product_name}} {{category}} {{subcategory}} {{library_results}} {{internet_results}}
- 新增API: GET/POST /api/process/agent-template, POST /api/process/agent-template/preview
2026-07-15 11:18:47 +08:00

405 lines
6.5 KiB
CSS

/* 处理监控页面专用样式 */
.process-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* 头部 */
.process-header {
background: white;
padding: 20px 30px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.header-left {
display: flex;
align-items: center;
gap: 20px;
}
.back-link {
color: #667eea;
text-decoration: none;
display: flex;
align-items: center;
gap: 5px;
font-size: 14px;
}
.back-link:hover {
text-decoration: underline;
}
.process-header h1 {
color: #333;
font-size: 24px;
display: flex;
align-items: center;
gap: 10px;
}
/* 活动处理列表 */
.active-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.active-process-item {
border: 2px solid #667eea;
border-radius: 12px;
padding: 20px;
background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%);
}
.active-process-item.paused {
border-color: #f59e0b;
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.process-info {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.process-name {
font-size: 18px;
font-weight: 600;
color: #333;
}
.process-meta {
font-size: 13px;
color: #666;
margin-top: 5px;
}
.process-status-badge {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
}
.status-running {
background: #d1fae5;
color: #065f46;
}
.status-paused {
background: #fef3c7;
color: #92400e;
}
/* 步骤进度条 */
.steps-progress {
display: flex;
align-items: center;
gap: 0;
margin: 15px 0;
}
.step-node {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
position: relative;
}
.step-node::before {
content: '';
position: absolute;
top: 15px;
left: 50%;
width: 100%;
height: 3px;
background: #e9ecef;
z-index: 0;
}
.step-node:last-child::before {
display: none;
}
.step-circle {
width: 30px;
height: 30px;
border-radius: 50%;
background: #e9ecef;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
color: #999;
z-index: 1;
position: relative;
}
.step-node.completed .step-circle {
background: #10b981;
color: white;
}
.step-node.running .step-circle {
background: #667eea;
color: white;
animation: pulse 1.5s infinite;
}
.step-node.failed .step-circle {
background: #ef4444;
color: white;
}
.step-node.skipped .step-circle {
background: #9ca3af;
color: white;
}
.step-label {
font-size: 11px;
color: #666;
margin-top: 5px;
text-align: center;
max-width: 80px;
}
.step-value {
font-size: 12px;
font-weight: 600;
color: #10b981;
margin-top: 3px;
padding: 2px 6px;
background: #d1fae5;
border-radius: 3px;
}
.step-node.running .step-value {
color: #667eea;
background: #e0e7ff;
}
.step-node.failed .step-value {
color: #ef4444;
background: #fee2e2;
}
.step-node.skipped .step-value {
color: #6b7280;
background: #f3f4f6;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* 操作按钮 */
.process-actions {
display: flex;
gap: 10px;
margin-top: 15px;
}
/* 步骤定义流程 */
.steps-flow {
display: flex;
justify-content: space-between;
padding: 20px;
overflow-x: auto;
}
.step-card {
flex: 0 0 150px;
text-align: center;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
margin-right: 10px;
}
.step-card:last-child {
margin-right: 0;
}
.step-number {
width: 40px;
height: 40px;
border-radius: 50%;
background: #667eea;
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
margin: 0 auto 10px;
}
.step-title {
font-weight: 500;
color: #333;
margin-bottom: 5px;
}
.step-desc {
font-size: 12px;
color: #666;
}
/* 历史表格 */
.history-section .data-table td {
vertical-align: middle;
}
.step-indicator {
display: flex;
align-items: center;
gap: 5px;
font-size: 13px;
}
.step-indicator .dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.step-indicator .dot.completed {
background: #10b981;
}
.step-indicator .dot.running {
background: #667eea;
}
.step-indicator .dot.failed {
background: #ef4444;
}
/* 详情模态框 */
.detail-steps {
display: flex;
flex-direction: column;
gap: 10px;
}
.detail-step {
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 15px;
}
.detail-step-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.detail-step-name {
font-weight: 500;
display: flex;
align-items: center;
gap: 10px;
}
.detail-step-status {
padding: 2px 8px;
border-radius: 4px;
font-size: 12px;
}
.detail-step-content {
background: #f8f9fa;
padding: 10px;
border-radius: 6px;
font-size: 13px;
max-height: 200px;
overflow-y: auto;
}
.detail-step-time {
font-size: 12px;
color: #999;
margin-top: 5px;
}
/* 响应式 */
@media (max-width: 768px) {
.steps-flow {
flex-direction: column;
}
.step-card {
margin-right: 0;
margin-bottom: 10px;
}
.steps-progress {
flex-wrap: wrap;
}
}
/* 智能体任务模板区域 */
.template-section .panel-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.template-actions {
display: flex;
gap: 8px;
}
.template-info {
background: #f0f4ff;
border: 1px solid #c7d2fe;
border-radius: 8px;
padding: 12px 16px;
margin-bottom: 15px;
font-size: 13px;
color: #4338ca;
}
.template-info p {
margin: 4px 0;
}
.template-info code {
background: #e0e7ff;
padding: 1px 5px;
border-radius: 3px;
font-size: 12px;
color: #3730a3;
}
.template-editor {
width: 100%;
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
padding: 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
resize: vertical;
background: #fafafa;
}
.template-editor:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}