修正系统化待办连续序号 #555

Merged
yueyang merged 1 commits from fix/yueyang-systemization-todo-index into main 2026-10-25 19:11:31 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -270,7 +270,7 @@
$sectionSpan = $groupRowspans['section'][$loop->index] ?? 1;
@endphp
<tr tabindex="0" data-sys-todo-row-edit="{{ $todoPayloadEncoded }}" title="点击整行直接编辑">
<td><span class="sys-todo-table__index" title="固定系统序号">{{ $item->sort_order ?: $item->id }}</span></td>
<td><span class="sys-todo-table__index" title="当前列表连续序号">{{ $items->firstItem() + $loop->index }}</span></td>
@if ($categorySpan !== 0)
<td class="sys-todo-table__group" @if ($categorySpan > 1) rowspan="{{ $categorySpan }}" @endif>{{ $item->category ?: '—' }}</td>
@endif

View File

@ -167,6 +167,8 @@ class SystemizationTodosTest extends FeatureTestCase
]))
->assertOk()
->assertSee('rowspan="2"', false)
->assertSee('title="当前列表连续序号">1</span>', false)
->assertSee('title="当前列表连续序号">2</span>', false)
->assertSee('收入事项 A')
->assertSee('收入事项 B');