增加 创建时间

This commit is contained in:
iVampireSP.com 2023-02-03 21:07:57 +08:00
parent c1ea2a2592
commit ec2cd375e5
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@
<th>模块</th> <th>模块</th>
<th>主机</th> <th>主机</th>
<th>发起者</th> <th>发起者</th>
<th>创建时间</th>
<th>状态</th> <th>状态</th>
<th>操作</th> <th>操作</th>
</thead> </thead>
@ -66,6 +67,9 @@ class="host_name"
<td> <td>
<a href="{{ route('admin.users.edit', $workOrder->user_id) }}">{{ $workOrder->user->name }}</a> <a href="{{ route('admin.users.edit', $workOrder->user_id) }}">{{ $workOrder->user->name }}</a>
</td> </td>
<td>
{{ $workOrder->created_at }}, {{ $workOrder->created_at->diffForHumans() }}
</td>
<td> <td>
<x-work-order-status :status="$workOrder->status"></x-work-order-status> <x-work-order-status :status="$workOrder->status"></x-work-order-status>
</td> </td>

View File

@ -6,6 +6,10 @@
<h3>{{ $workOrder->title }}</h3> <h3>{{ $workOrder->title }}</h3>
<p> <p>
UUID: {{ $workOrder->uuid }} UUID: {{ $workOrder->uuid }}
<br />
创建时间: {{ $workOrder->created_at }}, {{ $workOrder->created_at->diffForHumans() }}
<br />
最后更新时间: {{ $workOrder->updated_at }}
</p> </p>
<a href="{{ route('admin.work-orders.edit', $workOrder) }}">编辑此工单</a> <a href="{{ route('admin.work-orders.edit', $workOrder) }}">编辑此工单</a>
<a href="{{ route('admin.users.edit', $workOrder->user_id) }}">用户: {{ $workOrder->user->name }}</a> <a href="{{ route('admin.users.edit', $workOrder->user_id) }}">用户: {{ $workOrder->user->name }}</a>