加入顯示更新時間

This commit is contained in:
ericli1018
2025-08-06 12:21:36 +08:00
parent 8a2e680f85
commit cdcd53553a
3 changed files with 42 additions and 0 deletions

View File

@ -194,6 +194,20 @@ class EventHealthAllowanceCrudController extends CrudController
{ {
CRUD::setValidation(EventHealthAllowanceRequest::class); CRUD::setValidation(EventHealthAllowanceRequest::class);
$this->crud->addFields([ $this->crud->addFields([
[
'name' => 'created_at',
'label' => '登記時間(首次建立)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[
'name' => 'updated_at',
'label' => '更新時間(任何更動)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[ [
'name' => 'disease_type', 'name' => 'disease_type',
'label' => '疾病類別', 'label' => '疾病類別',

View File

@ -195,6 +195,20 @@ class EventImprovedHealthCrudController extends CrudController
{ {
CRUD::setValidation(EventImprovedHealthRequest::class); CRUD::setValidation(EventImprovedHealthRequest::class);
$this->crud->addFields([ $this->crud->addFields([
[
'name' => 'created_at',
'label' => '登記時間(首次建立)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[
'name' => 'updated_at',
'label' => '更新時間(任何更動)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[ [
'name' => 'disease_type', 'name' => 'disease_type',
'label' => '疾病類別', 'label' => '疾病類別',

View File

@ -195,6 +195,20 @@ class EventMetabolismCrudController extends CrudController
{ {
CRUD::setValidation(EventMetabolismRequest::class); CRUD::setValidation(EventMetabolismRequest::class);
$this->crud->addFields([ $this->crud->addFields([
[
'name' => 'created_at',
'label' => '登記時間(首次建立)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[
'name' => 'updated_at',
'label' => '更新時間(任何更動)',
'type' => 'datetime',
'format' => 'YYYY/MM/DD HH:mm:SS',
'attributes' => ['disabled' => 'disabled' ],
],
[ [
'name' => 'disease_type', 'name' => 'disease_type',
'label' => '疾病類別', 'label' => '疾病類別',