待办状态筛选仅保留两种状态 #665

Merged
yueyang merged 1 commits from fix/yueyang-systemization-todo-status-options into main 2026-10-26 23:01:30 +08:00
2 changed files with 1 additions and 7 deletions

View File

@ -131,12 +131,6 @@ class SystemizationTodos extends Controller
->whereDate('due_date', '<', today())
->count();
$statusOptions = collect();
if ($overdueCount > 0) {
$statusOptions->push([
'value' => self::OVERDUE_FILTER,
'label' => '已逾期',
]);
}
foreach (SystemizationTodo::STATUSES as $status) {
$statusOptions->push([
'value' => $status,

View File

@ -535,7 +535,7 @@ class SystemizationTodosTest extends FeatureTestCase
$this->assertContains('平台收入核对', $pageContent['todoContentOptions']['收入']);
$this->assertArrayNotHasKey('1、收入', $pageContent['todoContentOptions']);
$this->assertSame(
['__overdue__', SystemizationTodo::STATUS_INCOMPLETE, SystemizationTodo::STATUS_COMPLETED],
[SystemizationTodo::STATUS_INCOMPLETE, SystemizationTodo::STATUS_COMPLETED],
array_column($pageContent['todoStatusOptions']->all(), 'value'),
);
$pageItems = $pageContent['items'];