继续重构模块列表前端样式
This commit is contained in:
@@ -38,6 +38,14 @@ class ComplaintController extends WorkflowController
|
||||
'display' => $this->access['show'],
|
||||
]];
|
||||
|
||||
$header['buttons'] = [
|
||||
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
|
||||
];
|
||||
|
||||
$header['cols'] = $cols;
|
||||
$header['tabs'] = CustomerComplaint::$tabs;
|
||||
$header['bys'] = CustomerComplaint::$bys;
|
||||
|
||||
if (Request::method() == 'POST') {
|
||||
|
||||
$model = DB::table($header['table'])->setBy($header);
|
||||
@@ -65,15 +73,6 @@ class ComplaintController extends WorkflowController
|
||||
return Grid::dataFilters($rows, $header);
|
||||
}
|
||||
|
||||
$header['buttons'] = [
|
||||
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
|
||||
];
|
||||
|
||||
$header['cols'] = $cols;
|
||||
$header['tabs'] = CustomerComplaint::$tabs;
|
||||
$header['bys'] = CustomerComplaint::$bys;
|
||||
$header['js'] = Grid::js($header);
|
||||
|
||||
return $this->display([
|
||||
'header' => $header,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user