改进 工单页面
This commit is contained in:
parent
b28ae8af8f
commit
e1e21b3324
@ -22,11 +22,6 @@ public function index(WorkOrder $workOrder): View
|
||||
{
|
||||
$workOrders = $workOrder->with(['user', 'host', 'module'])->latest()->paginate(20)->withQueryString();
|
||||
|
||||
// 根据 status 排序, closed 的在后面
|
||||
$workOrders = $workOrders->sortBy(function ($workOrder) {
|
||||
return $workOrder->status === 'closed';
|
||||
});
|
||||
|
||||
return view('admin.work-orders.index', compact('workOrders'));
|
||||
}
|
||||
|
||||
|
@ -4,6 +4,17 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<h3>工单</h3>
|
||||
|
||||
<a href="?status=open">开启的工单</a>
|
||||
<a href="?status=user_read">用户已读</a>
|
||||
<a href="?status=replied">已回复</a>
|
||||
<a href="?status=user_replied">用户已回复</a>
|
||||
<a href="?status=read">您已读</a>
|
||||
<a href="?status=on_hold">挂起</a>
|
||||
<a href="?status=in_progress">正在处理</a>
|
||||
<a href="?status=closed">已关闭</a>
|
||||
|
||||
<div class="overflow-auto">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
|
Loading…
Reference in New Issue
Block a user