x
This commit is contained in:
@@ -212,6 +212,27 @@
|
||||
</div>
|
||||
|
||||
<div v-if="sideActionAiAdvice" class="result-grid">
|
||||
<div class="result-card">
|
||||
<h4>规则检测摘要</h4>
|
||||
<div class="info-list">
|
||||
<div class="info-item">
|
||||
<span class="info-label">检测状态</span>
|
||||
<span class="info-value">{{ ruleActionSummary.total_mechanism_count > 0 ? '检测到倒扣' : '未检测到倒扣' }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">滑块数量</span>
|
||||
<span class="info-value">{{ ruleActionSummary.total_slider_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">斜顶数量</span>
|
||||
<span class="info-value">{{ ruleActionSummary.total_lifter_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">复杂度</span>
|
||||
<span class="info-value">{{ ruleActionSummary.complexity || '未知' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="result-card result-card-highlight">
|
||||
<h4>AI 结论</h4>
|
||||
<div class="info-list">
|
||||
@@ -815,6 +836,16 @@ const sideActionAiAdvice = computed(() => {
|
||||
) || fallbackSideActionAiAdvice.value
|
||||
})
|
||||
|
||||
const ruleActionSummary = computed(() => {
|
||||
const summary = selectedScheme.value?.side_actions?.summary || {}
|
||||
return {
|
||||
total_slider_count: summary.total_slider_count ?? 0,
|
||||
total_lifter_count: summary.total_lifter_count ?? 0,
|
||||
total_mechanism_count: summary.total_mechanism_count ?? 0,
|
||||
complexity: summary.complexity || '未知',
|
||||
}
|
||||
})
|
||||
|
||||
const designReport = computed<DesignReport | null>(() =>
|
||||
parseEmbeddedDesignReport(state.task?.llm_report || '')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user