diff --git a/resources/views/admin/work-orders/edit.blade.php b/resources/views/admin/work-orders/edit.blade.php index e3758bd..d59a0b7 100644 --- a/resources/views/admin/work-orders/edit.blade.php +++ b/resources/views/admin/work-orders/edit.blade.php @@ -4,6 +4,11 @@ @section('content') +

{{ $workOrder->title }}

+ + 查看工单 + +
@csrf @method('PUT') @@ -13,16 +18,30 @@ -{{--
--}} -{{-- --}} -{{-- {{ $workOrder->title }}--}} -{{-- --}} -{{--
--}} + {{-- 修改状态 --}} +
+ + +
+{{--
--}} +{{--
--}} +{{-- @csrf--}} +{{-- @method('DELETE')--}} +{{-- --}} +{{--
--}} @endsection diff --git a/resources/views/admin/work-orders/index.blade.php b/resources/views/admin/work-orders/index.blade.php index 0193b21..3a6a89a 100644 --- a/resources/views/admin/work-orders/index.blade.php +++ b/resources/views/admin/work-orders/index.blade.php @@ -11,6 +11,7 @@ 标题 模块 发起者 + 状态 操作 @@ -37,7 +38,9 @@ class="module_name" {{ $workOrder->user->name }} - + + + 编辑 diff --git a/resources/views/admin/work-orders/show.blade.php b/resources/views/admin/work-orders/show.blade.php index a771461..4a5685b 100644 --- a/resources/views/admin/work-orders/show.blade.php +++ b/resources/views/admin/work-orders/show.blade.php @@ -4,11 +4,11 @@ @section('content')

{{ $workOrder->title }}

+ 编辑此工单
{{ \Illuminate\Mail\Markdown::parse($workOrder->content) }}
-

在这里,您无法回复工单,只能够查看。

对话记录

@@ -31,4 +31,8 @@
@endforeach + + +

在这里,您无法回复工单,只能够查看。

+ @endsection diff --git a/resources/views/components/alert.blade.php b/resources/views/components/alert.blade.php index 2131c9b..9cc8f75 100644 --- a/resources/views/components/alert.blade.php +++ b/resources/views/components/alert.blade.php @@ -54,7 +54,7 @@ @endif - @if ($errors->any()) + @if (isset($errors) && $errors->any())