Commit fe9fe498 by 汪伟伟

表格边框

parent af9389db
...@@ -68,13 +68,13 @@ class AlreadyApproveController extends AdminController ...@@ -68,13 +68,13 @@ class AlreadyApproveController extends AdminController
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>'); // $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
$grid->disableEditButton()->disableDeleteButton()->disableCreateButton()->disableBatchDelete(); $grid->disableEditButton()->disableDeleteButton()->disableCreateButton()->disableBatchDelete()->disableFilterButton();
$grid->filter(function (Grid\Filter $filter) { $grid->filter(function (Grid\Filter $filter) {
// $filter->expand(); $filter->expand();
// $filter->panel(); $filter->panel();
$filter->equal('user.id','用户')->select('/getUsers'); $filter->equal('user.id','用户')->select('/getUsers')->width(2);
$filter->like('task.name','指标名称'); $filter->like('task.name','指标名称')->width(2);
}); });
$grid->actions(function (Grid\Displayers\Actions $actions) { $grid->actions(function (Grid\Displayers\Actions $actions) {
......
...@@ -22,3 +22,9 @@ ...@@ -22,3 +22,9 @@
use Dcat\Admin\Show\Field; use Dcat\Admin\Show\Field;
Field::extend('unserialize', \App\Admin\Extensions\UnSerialize::class); Field::extend('unserialize', \App\Admin\Extensions\UnSerialize::class);
\Dcat\Admin\Grid::resolving(function (\Dcat\Admin\Grid $grid) {
$grid->withBorder();
// $grid->tableCollapse(false);
});
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
<div class="table-responsive table-wrapper complex-container table-middle mt-1 table-collapse "> <div class="table-responsive table-wrapper complex-container table-middle mt-1 table-collapse ">
@foreach($data['data'] as $key=>$item) @foreach($data['data'] as $key=>$item)
<table style="" class="table custom-data-table data-table table-text-center" <table style="" class="table custom-data-table data-table table-text-center table-bordered complex-headers"
id="grid-table_{{$key}}"> id="grid-table_{{$key}}">
<thead> <thead>
<tr> <tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment