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

39 lines
716 B

  1. <?php
  2. namespace App\Admin\Actions\Grid;
  3. use Dcat\Admin\Grid\RowAction;
  4. use Dcat\Admin\Widgets\Modal;
  5. use App\Models\v3\Store as StoreModel;
  6. use Dcat\Admin\Form;
  7. use App\Models\v3\Goods as GoodsModel;
  8. use App\Admin\Forms\GoodsCopyForm;
  9. class GoodsCopy extends RowAction
  10. {
  11. /**
  12. * @return string
  13. */
  14. protected $title = '复制';
  15. public function render()
  16. {
  17. $id = $this->getKey();
  18. $modal = Modal::make()
  19. ->xl()
  20. ->title($this->title)
  21. ->body(GoodsCopyForm::make()->setKey($id))
  22. ->button($this->title);
  23. return $modal;
  24. }
  25. public function parameters()
  26. {
  27. return [
  28. ];
  29. }
  30. }