标明完成截图所属待办 #669

Merged
yueyang merged 1 commits from fix/yueyang-systemization-todo-attachment-owner-label into main 2026-10-27 10:04:45 +08:00
2 changed files with 4 additions and 1 deletions

View File

@ -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 @@
</button>
@endforeach
</div>
<span class="sys-todo-shots-caption" title="{{ $titleLabels[$loop->index] ?: '未填写事项' }}">所属待办:{{ $titleLabels[$loop->index] ?: '未填写事项' }}</span>
@else
—
@endif

View File

@ -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);