链街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

  1. <?php
  2. namespace App\Admin\Extensions;
  3. use App\Admin\Actions\Lazy\CsInfo;
  4. use App\Admin\Forms\SelectHorseman;
  5. use Dcat\Admin\Grid\RowAction;
  6. use Dcat\Admin\Widgets\Modal;
  7. class Salesman extends RowAction
  8. {
  9. protected $title;
  10. protected $adminUid;
  11. protected $name;
  12. protected $option;
  13. protected $searchTime;
  14. public function __construct($adminUid,$name,$option,$searchTime,$title=null)
  15. {
  16. $this->title = $title;
  17. $this->name = $name;
  18. $this->option = $option;
  19. $this->adminUid = $adminUid;
  20. $this->searchTime = $searchTime;
  21. parent::__construct($title);
  22. }
  23. public function render()
  24. {
  25. // 实例化表单类并传递自定义参数
  26. $table = CsInfo::make(['admin_user_id'=>$this->adminUid,'name'=>$this->name,'option'=>$this->option,'created_at'=>$this->searchTime]);
  27. return Modal::make()
  28. ->lg()
  29. ->title('数据明细')
  30. ->body($table)
  31. ->button('详情');
  32. }
  33. }