Commit 17b8b07a by 孙龙

样式修改

parent 1e7721a8
...@@ -50,11 +50,25 @@ class OrderController extends AdminController ...@@ -50,11 +50,25 @@ class OrderController extends AdminController
*/ */
protected function grid() protected function grid()
{ {
\Admin::style(
<<<CSS
.table-fixed {
position: absolute;
top: 0;
z-index: 10;
overflow: inherit;
}
CSS
);
$user = request()->user; $user = request()->user;
// dump(PermService::getUserPerms()); // dump(PermService::getUserPerms());
return Grid::make(new Order(), function (Grid $grid) { return Grid::make(new Order(), function (Grid $grid) {
$grid->model()->rule(Order::$ruleViewList)->with("scmUser")->with("order_price")->orderBy('order_id', 'desc'); $grid->model()->rule(Order::$ruleViewList)->with("scmUser")->with("order_price")->orderBy('order_id', 'desc');
$grid->fixColumns(1,2);//固定列 // $grid->fixColumns(1,2);//固定列
// $grid->showColumnSelector();//开启字段选择器功能 // $grid->showColumnSelector();//开启字段选择器功能
// 在 display 回调中使用 // 在 display 回调中使用
$grid->column('序号',admin_trans('order.labels.序号'))->display(function () { $grid->column('序号',admin_trans('order.labels.序号'))->display(function () {
...@@ -103,7 +117,7 @@ class OrderController extends AdminController ...@@ -103,7 +117,7 @@ class OrderController extends AdminController
}); });
$grid->fixColumns(1,-1); // $grid->fixColumns(1,-1);
$grid->showFilter(); $grid->showFilter();
......
...@@ -158,6 +158,8 @@ body:not(.dark-mode) .table-fixed table.custom-data-table thead tr th { ...@@ -158,6 +158,8 @@ body:not(.dark-mode) .table-fixed table.custom-data-table thead tr th {
.table .default-table td{ .table .default-table td{
height: 30px;!important; height: 30px;!important;
} }
CSS CSS
); );
......
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 sign in to comment