feat: update prediction workbook output
This commit is contained in:
@@ -51,12 +51,13 @@
|
||||
</section>
|
||||
|
||||
<section class="flex flex-1 flex-col rounded-lg border border-line bg-white p-5 shadow-panel">
|
||||
<h2 class="text-lg font-extrabold">样本预览</h2>
|
||||
<h2 class="text-lg font-extrabold">结果展示</h2>
|
||||
<div class="mt-4 overflow-hidden rounded-md border border-line">
|
||||
<table class="w-full text-sm">
|
||||
<thead class="bg-slate-50 text-xs font-bold text-textSub">
|
||||
<tr>
|
||||
<th class="px-3 py-3 text-left">管道编号</th>
|
||||
<th class="px-3 py-3 text-left">编号</th>
|
||||
<th class="px-3 py-3 text-left">管龄</th>
|
||||
<th class="px-3 py-3 text-left">等级</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -64,6 +65,7 @@
|
||||
{% for item in result.summary_rows %}
|
||||
<tr class="border-t border-line">
|
||||
<td class="px-3 py-3 font-semibold">{{ item.pipe_id }}</td>
|
||||
<td class="px-3 py-3 text-textSub">{{ item.pipe_age }}</td>
|
||||
<td class="px-3 py-3"><span class="inline-flex rounded-full px-2.5 py-1 text-xs font-bold {{ item.grade_class }}">{{ item.grade_label }}</span></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user