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

40 lines
904 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. public function __construct($adminUid,$name,$option,$title=null)
  14. {
  15. $this->title = $title;
  16. $this->name = $name;
  17. $this->option = $option;
  18. $this->adminUid = $adminUid;
  19. parent::__construct($title);
  20. }
  21. public function render()
  22. {
  23. // 实例化表单类并传递自定义参数
  24. $table = CsInfo::make(['admin_user_id'=>$this->adminUid,'name'=>$this->name,'option'=>$this->option]);
  25. return Modal::make()
  26. ->lg()
  27. ->title('数据明细')
  28. ->body($table)
  29. ->button('详情');
  30. }
  31. }