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

38 lines
918 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\CouponTieForm;
  4. use App\Admin\Forms\SelectHorseman;
  5. use App\Models\ImsCjdcOrderMain;
  6. use App\Models\StoreAccount;
  7. use Dcat\Admin\Grid\RowAction;
  8. use Dcat\Admin\Widgets\Modal;
  9. use Illuminate\Http\Request;
  10. class CheckRow extends RowAction
  11. {
  12. protected $title;
  13. protected $order_id;
  14. protected $currentPage;
  15. public function __construct($orderId,$currentPage,$title=null)
  16. {
  17. $this->order_id = $orderId;
  18. $this->currentPage = $currentPage;
  19. parent::__construct($title);
  20. }
  21. public function render()
  22. {
  23. // 实例化表单类并传递自定义参数
  24. $form = SelectHorseman::make(['order_id'=>$this->order_id,'current_page'=>$this->currentPage]);
  25. return Modal::make()
  26. ->lg()
  27. ->title($this->title)
  28. ->body($form)
  29. ->button($this->title);
  30. }
  31. }