链街Dcat后台
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.
 
 
 
 

42 lines
1016 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;
protected $searchTime;
public function __construct($adminUid,$name,$option,$searchTime,$title=null)
{
$this->title = $title;
$this->name = $name;
$this->option = $option;
$this->adminUid = $adminUid;
$this->searchTime = $searchTime;
parent::__construct($title);
}
public function render()
{
// 实例化表单类并传递自定义参数
$table = CsInfo::make(['admin_user_id'=>$this->adminUid,'name'=>$this->name,'option'=>$this->option,'created_at'=>$this->searchTime]);
return Modal::make()
->lg()
->title('数据明细')
->body($table)
->button('详情');
}
}