This commit is contained in:
邓皓元 2019-01-17 19:41:30 +08:00
parent 31a613dc9c
commit 36a7eb5da7
3 changed files with 49 additions and 6 deletions

View File

@ -102,6 +102,22 @@ class CompanyReportDetailExport extends AbstractExport implements FromQuery, Wit
];
}
/**
* 表格标题
*
* @return string
*/
public function title(): string
{
$title = $this->tag();
if (($conditions = $this->conditions) && $conditions['month']) {
$title .= Carbon::parse($conditions['month'])->format('Ym');
}
return $title ?? '列表';
}
/**
* 类型
*

View File

@ -64,6 +64,22 @@ class CompanyReportExport extends AbstractExport implements FromCollection, With
];
}
/**
* 表格标题
*
* @return string
*/
public function title(): string
{
$title = $this->tag();
if (($conditions = $this->conditions) && $conditions['month']) {
$title .= Carbon::parse($conditions['month'])->format('Ym');
}
return $title ?? '列表';
}
/**
* 类型
*

View File

@ -153,13 +153,13 @@ class PermissionSeeder extends Seeder
'type' => 0,
'open' => 3,
'children' => [
['name' => 'stats.company-index', 'title' => '企业统计', 'path' => '/stats/company-count', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.order.0', 'title' => '销售订单统计', 'path' => '/stats/order/0', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.company-index', 'title' => '企业统计', 'path' => '/stats/company-count', 'icon' => 'md-git-merge', 'type' => 0, 'open' => 3],
['name' => 'stats.order.0', 'title' => '销售订单统计', 'path' => '/stats/order/0', 'icon' => 'ios-bulb', 'type' => 0, 'open' => 3],
['name' => 'stats.order.1', 'title' => '续费订单统计', 'path' => '/stats/order/1', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.order.2', 'title' => '续费包订单统计', 'path' => '/stats/order/2', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.order.3', 'title' => '加油包订单统计', 'path' => '/stats/order/3', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.company-report.1', 'title' => '用户月报表', 'path' => '/stats/company-report/1', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.company-report.2', 'title' => '增值包月报表', 'path' => '/stats/company-report/2', 'icon' => 'md-pulse', 'type' => 0, 'open' => 3],
['name' => 'stats.order.2', 'title' => '续费包订单统计', 'path' => '/stats/order/2', 'icon' => 'md-basket', 'type' => 0, 'open' => 3],
['name' => 'stats.order.3', 'title' => '加油包订单统计', 'path' => '/stats/order/3', 'icon' => 'ios-color-fill', 'type' => 0, 'open' => 3],
['name' => 'stats.company-report.1', 'title' => '用户月报表', 'path' => '/stats/company-report/1', 'icon' => 'ios-contacts', 'type' => 0, 'open' => 3],
['name' => 'stats.company-report.2', 'title' => '增值包月报表', 'path' => '/stats/company-report/2', 'icon' => 'md-bonfire', 'type' => 0, 'open' => 3],
],
],
[
@ -173,6 +173,17 @@ class PermissionSeeder extends Seeder
['name' => 'exports.destroy', 'title' => '删除', 'description' => 'destroy', 'type' => 1],
],
],
[
'name' => 'artisan_ctrl',
'title' => '任务管理',
'path' => '#',
'icon' => 'ios-locate',
'type' => 0,
'open' => 3,
'children' => [
['name' => 'artisan.real-sync', 'title' => 'RD数据同步', 'path' => '/artisan/real-sync', 'icon' => 'ios-color-filter', 'type' => 0, 'open' => 3],
],
],
];
/**