改进 工单页面

This commit is contained in:
iVampireSP.com 2023-03-13 11:53:37 +08:00
parent 61fb66ebe5
commit 9ff4854466
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -58,14 +58,14 @@ class="module_name"
href="{{ route('admin.hosts.edit', $workOrder->host_id) }}"
class="host_name"
>
{{ $workOrder->host->name }}
{{ $workOrder?->host->name }}
</a>
@else
@endif
</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>
{{ $workOrder->created_at }}, {{ $workOrder->created_at->diffForHumans() }}