diff --git a/resources/views/business/pages/systemization-todos.blade.php b/resources/views/business/pages/systemization-todos.blade.php index c98e0d21..b9456501 100644 --- a/resources/views/business/pages/systemization-todos.blade.php +++ b/resources/views/business/pages/systemization-todos.blade.php @@ -86,6 +86,7 @@ .sys-todo-shots { display:grid; grid-template-columns:repeat(auto-fit,minmax(7rem,1fr)); gap:.4rem; max-width:none; } .sys-todo-shots button { display:block; width:100%; height:5.5rem; padding:0; border:1px solid #ddd4c4; border-radius:.4rem; overflow:hidden; background:#fff; cursor:zoom-in; } .sys-todo-shots img { width:100%; height:100%; padding:.2rem; object-fit:contain; background:#fff; } + .sys-todo-shots-caption { display:-webkit-box; margin-top:.35rem; overflow:hidden; color:#6d5630; font-size:.68rem; line-height:1.45; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; } .sys-todo-table__add { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem .75rem; margin-top:1rem; padding:.55rem .7rem; border:1px dashed #d8cdb8; border-radius:.55rem; background:#fcfaf5; color:#666; font-size:.72rem; } .sys-todo-table__add-copy { min-width:16rem; flex:1 1 30rem; } .sys-todo-table__reset-widths { min-height:1.8rem; padding:0 .55rem; border:1px solid var(--sys-border); border-radius:.4rem; background:#fff; color:#51483c; font:inherit; font-size:.7rem; cursor:pointer; } @@ -531,6 +532,7 @@ @endforeach + 所属待办:{{ $titleLabels[$loop->index] ?: '未填写事项' }} @else — @endif diff --git a/tests/Feature/Business/SystemizationTodosTest.php b/tests/Feature/Business/SystemizationTodosTest.php index 89e792eb..458535d0 100644 --- a/tests/Feature/Business/SystemizationTodosTest.php +++ b/tests/Feature/Business/SystemizationTodosTest.php @@ -113,7 +113,8 @@ class SystemizationTodosTest extends FeatureTestCase ])) ->assertOk() ->assertSee('data-sys-todo-row-edit', false) - ->assertSee('data-sys-todo-image-url', false); + ->assertSee('data-sys-todo-image-url', false) + ->assertSeeText('所属待办:核对淘系收入与平台账单差异'); $firstAttachment = $todo->attachments()->firstOrFail(); $existingAttachment = $todo->attachments()->reorder()->orderByDesc('id')->firstOrFail(); Storage::disk('uploads')->assertExists($firstAttachment->path);