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

36 lines
799 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Admin\Extensions;
  3. use App\Admin\Forms\SelectHorseman;
  4. use Dcat\Admin\Grid\RowAction;
  5. use Dcat\Admin\Widgets\Modal;
  6. class CheckRow extends RowAction
  7. {
  8. protected $title;
  9. protected $order_id;
  10. protected $currentPage;
  11. public function __construct($orderId,$currentPage,$title=null)
  12. {
  13. $this->order_id = $orderId;
  14. $this->currentPage = $currentPage;
  15. parent::__construct($title);
  16. }
  17. public function render()
  18. {
  19. // 实例化表单类并传递自定义参数
  20. $form = SelectHorseman::make(['order_id'=>$this->order_id,'current_page'=>$this->currentPage]);
  21. return Modal::make()
  22. ->lg()
  23. ->title('选择配送员')
  24. ->body($form)
  25. ->button($this->title);
  26. }
  27. }