6
0
Fork 0
jiqu-library-server/app/Admin/Actions/Store/ExportGoodsSpu.php

30 lines
682 B
PHP

<?php
namespace App\Admin\Actions\Store;
use App\Admin\Forms\Store\ExportGoodsForm;
use Dcat\Admin\Show\AbstractTool;
use Dcat\Admin\Widgets\Modal;
class ExportGoodsSpu extends AbstractTool
{
protected $title = '导入商品';
protected $style = 'btn btn-sm btn-primary mr-1';
protected $amount = 10000;
public function html()
{
$form = ExportGoodsForm::make(['store_id' => $this->getKey()]);
$form->disableResetButton();
return Modal::make()
->lg()
->title($this->title)
->body($form)
->button("<a href=\"javascript:void(0)\" class=\"{$this->style}\">{$this->title}</a>");
}
}