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

34 lines
797 B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 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. public function __construct($orderId,$title=null)
  15. {
  16. $this->order_id = $orderId;
  17. parent::__construct($title);
  18. }
  19. public function render()
  20. {
  21. // 实例化表单类并传递自定义参数
  22. $form = SelectHorseman::make(['order_id'=>$this->order_id]);
  23. return Modal::make()
  24. ->lg()
  25. ->title($this->title)
  26. ->body($form)
  27. ->button($this->title);
  28. }
  29. }