You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
904 B
40 lines
904 B
<?php
|
|
namespace App\Admin\Extensions;
|
|
|
|
|
|
use App\Admin\Actions\Lazy\CsInfo;
|
|
use App\Admin\Forms\SelectHorseman;
|
|
|
|
use Dcat\Admin\Grid\RowAction;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
|
|
class Salesman extends RowAction
|
|
{
|
|
|
|
protected $title;
|
|
protected $adminUid;
|
|
protected $name;
|
|
protected $option;
|
|
public function __construct($adminUid,$name,$option,$title=null)
|
|
{
|
|
$this->title = $title;
|
|
$this->name = $name;
|
|
$this->option = $option;
|
|
$this->adminUid = $adminUid;
|
|
|
|
parent::__construct($title);
|
|
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
// 实例化表单类并传递自定义参数
|
|
$table = CsInfo::make(['admin_user_id'=>$this->adminUid,'name'=>$this->name,'option'=>$this->option]);
|
|
return Modal::make()
|
|
->lg()
|
|
->title('数据明细')
|
|
->body($table)
|
|
->button('详情');
|
|
|
|
}
|
|
}
|