继续重构模块列表前端样式

This commit is contained in:
2021-03-17 03:15:10 +08:00
parent 181fa17fdd
commit cd3a44340e
192 changed files with 3321 additions and 4596 deletions
@@ -29,10 +29,23 @@ class AdjustController extends AuditController
$cols['actions']['options'] = [[
'name' => '显示',
'action' => 'show',
'action' => 'show',
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['right_buttons'] = [
['name' => '关闭', 'color' => 'default', 'icon' => 'fa-lock', 'action' => 'close', 'display' => $this->access['close']],
];
$header['cols'] = $cols;
$header['tabs'] = Adjust::$tabs;
$header['bys'] = Adjust::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -64,20 +77,6 @@ class AdjustController extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['right_buttons'] = [
['name' => '关闭', 'color' => 'default', 'icon' => 'fa-lock', 'action' => 'close', 'display' => $this->access['close']],
];
$header['cols'] = $cols;
$header['tabs'] = Adjust::$tabs;
$header['bys'] = Adjust::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -31,6 +31,13 @@ class CategoryController extends DefaultController
'display' => $this->access['edit'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Category::$tabs;
$search = $header['search_form'];
$query = $search['query'];
@@ -52,15 +59,6 @@ class CategoryController extends DefaultController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Category::$tabs;
$header['bys'] = Category::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -33,6 +33,15 @@ class CompenController extends AuditController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Compen::$tabs;
$header['bys'] = Compen::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -64,16 +73,6 @@ class CompenController extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Compen::$tabs;
$header['bys'] = Compen::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -29,10 +29,22 @@ class CostController extends AuditController
$cols['actions']['options'] = [[
'name' => '显示',
'action' => 'show',
'action' => 'show',
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['right_buttons'] = [
['name' => '关闭', 'color' => 'default', 'icon' => 'fa-lock', 'action' => 'close', 'display' => $this->access['close']],
['name' => '费用调整单', 'color' => 'info', 'icon' => 'fa-plus', 'action' => 'create4', 'display' => $this->access['create4']],
];
$header['cols'] = $cols;
$header['tabs'] = Cost::$tabs;
$header['bys'] = Cost::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -71,25 +83,6 @@ class CostController extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['left_buttons'] = [
['name' => '批量编辑', 'color' => 'default', 'icon' => 'fa-pencil-square-o', 'action' => 'batchEdit', 'display' => $this->access['batchEdit']],
];
$header['right_buttons'] = [
['name' => '关闭', 'color' => 'default', 'icon' => 'fa-lock', 'action' => 'close', 'display' => $this->access['close']],
['name' => '费用调整单', 'color' => 'info', 'icon' => 'fa-plus', 'action' => 'create4', 'display' => $this->access['create4']],
];
$header['cols'] = $cols;
$header['tabs'] = Cost::$tabs;
$header['bys'] = Cost::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);
@@ -33,6 +33,15 @@ class RebateController extends AuditController
'display' => $this->access['show'],
]];
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Rebate::$tabs;
$header['bys'] = Rebate::$bys;
$search = $header['search_form'];
$query = $search['query'];
@@ -64,16 +73,6 @@ class RebateController extends AuditController
return Grid::dataFilters($rows, $header);
}
$header['buttons'] = [
['name' => '删除', 'icon' => 'fa-remove', 'action' => 'delete', 'display' => $this->access['delete']],
['name' => '导出', 'icon' => 'fa-share', 'action' => 'export', 'display' => 1],
];
$header['cols'] = $cols;
$header['tabs'] = Rebate::$tabs;
$header['bys'] = Rebate::$bys;
$header['js'] = Grid::js($header);
return $this->display([
'header' => $header,
]);