Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b0d2080f
authored
Nov 21, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用
parent
a8e56a0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
96 deletions
+0
-96
app/Admin/Controllers/DoctorCorrectionController.php
+0
-48
app/Admin/Controllers/PharmacyCorrectionController.php
+0
-48
No files found.
app/Admin/Controllers/DoctorCorrectionController.php
View file @
b0d2080f
...
...
@@ -4,10 +4,8 @@
use
App\Admin\Repositories\DoctorCorrectionRepository
;
use
App\Models\DoctorCorrectionModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 医师纠错
class
DoctorCorrectionController
extends
AdminController
...
...
@@ -46,50 +44,4 @@ protected function grid()
$grid
->
disableBatchActions
();
// 禁用批量操作
});
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected
function
detail
(
$id
)
{
return
Show
::
make
(
$id
,
new
DoctorCorrectionRepository
(),
function
(
Show
$show
)
{
$show
->
field
(
'id'
);
$show
->
field
(
'doctor_id'
);
$show
->
field
(
'doctor_name'
);
$show
->
field
(
'is_handle'
);
$show
->
field
(
'content'
);
$show
->
field
(
'created_at'
);
$show
->
field
(
'updated_at'
);
$show
->
panel
()
->
tools
(
function
(
$tools
)
{
$tools
->
disableDelete
();
// 禁止删除按钮
});
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected
function
form
()
{
return
Form
::
make
(
new
DoctorCorrectionRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
// $form->text('doctor_id')->readonly()->width(4);
$form
->
text
(
'doctor_name'
)
->
readonly
()
->
width
(
4
);
$form
->
textarea
(
'content'
)
->
readonly
()
->
width
(
4
);
$form
->
switch
(
'is_handle'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
// 右上角按钮控制
$form
->
disableDeleteButton
();
// 去掉删除按钮
$form
->
disableViewButton
();
// 去掉跳转详情页按钮
});
}
}
app/Admin/Controllers/PharmacyCorrectionController.php
View file @
b0d2080f
...
...
@@ -4,10 +4,8 @@
use
App\Admin\Repositories\PharmacyCorrectionRepository
;
use
App\Models\PharmacyCorrectionModel
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Show
;
// 药店-纠错
class
PharmacyCorrectionController
extends
AdminController
...
...
@@ -46,50 +44,4 @@ protected function grid()
$grid
->
disableBatchActions
();
// 禁用批量操作
});
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected
function
detail
(
$id
)
{
return
Show
::
make
(
$id
,
new
PharmacyCorrectionRepository
(),
function
(
Show
$show
)
{
$show
->
field
(
'id'
);
$show
->
field
(
'pharmacy_id'
);
$show
->
field
(
'pharmacy_name'
);
$show
->
field
(
'is_handle'
);
$show
->
field
(
'content'
);
$show
->
field
(
'created_at'
);
$show
->
field
(
'updated_at'
);
$show
->
panel
()
->
tools
(
function
(
$tools
)
{
$tools
->
disableDelete
();
// 禁止删除按钮
});
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected
function
form
()
{
return
Form
::
make
(
new
PharmacyCorrectionRepository
(),
function
(
Form
$form
)
{
$form
->
display
(
'id'
)
->
width
(
4
);
// $form->text('pharmacy_id')->width(4);
$form
->
text
(
'pharmacy_name'
)
->
readonly
()
->
width
(
4
);
$form
->
text
(
'content'
)
->
readonly
()
->
width
(
4
);
$form
->
switch
(
'is_handle'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
// 右上角按钮控制
$form
->
disableDeleteButton
();
// 去掉删除按钮
$form
->
disableViewButton
();
// 去掉跳转详情页按钮
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment