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

  1. <?php
  2. namespace App\Admin\Actions\Grid\v3;
  3. use Dcat\Admin\Grid\RowAction;
  4. use Dcat\Admin\Widgets\Modal;
  5. use App\Admin\Forms\v3\CouponPublishForm;
  6. class CouponPublish extends RowAction
  7. {
  8. /**
  9. * @return string
  10. */
  11. protected $title = '发布';
  12. public function render()
  13. {
  14. $id = $this->getKey();
  15. $modal = Modal::make()
  16. ->xl()
  17. ->title($this->title)
  18. ->body(CouponPublishForm::make()->setKey($id))
  19. ->button($this->title);
  20. return $modal;
  21. }
  22. // 确认弹窗信息
  23. public function confirm()
  24. {
  25. return '您确定要发布吗?';
  26. }
  27. public function parameters()
  28. {
  29. return [
  30. ];
  31. }
  32. }