事件
This commit is contained in:
parent
9016b862e8
commit
124aa8d260
@ -13,11 +13,12 @@ use Dipper\Excel\Events\BeforeWriting;
|
||||
use App\Exceptions\NotAllowedException;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Dipper\Excel\Concerns\ShouldAutoSize;
|
||||
use Dipper\Excel\Concerns\RegistersEventListeners;
|
||||
use App\Domains\Export\Repositories\ExportRepository;
|
||||
|
||||
abstract class AbstractExport implements WithEvents, ShouldAutoSize
|
||||
{
|
||||
use Exportable;
|
||||
use Exportable, RegistersEventListeners;
|
||||
|
||||
public static $classes = [
|
||||
\App\Domains\Virtual\Exports\CardExport::class => '客户列表',
|
||||
@ -48,19 +49,6 @@ abstract class AbstractExport implements WithEvents, ShouldAutoSize
|
||||
ini_set('memory_limit', '4096m');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function registerEvents(): array
|
||||
{
|
||||
return [
|
||||
BeforeExport::class => [self::class, 'beforeExport'],
|
||||
BeforeWriting::class => [self::class, 'beforeWriting'],
|
||||
AfterExport::class => [self::class, 'afterExport'],
|
||||
AfterStore::class => [self::class, 'afterStore'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 开始导出
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user