FundAdminAction.php 557 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Module\Fund\Admin\Actions;
  3. use Dcat\Admin\Widgets\Modal;
  4. use UCore\DcatAdmin\RowAction;
  5. /**
  6. * Admin 资金处理
  7. *
  8. *
  9. */
  10. class FundAdminAction extends RowAction
  11. {
  12. protected $title = '操作资金';
  13. public function render2()
  14. {
  15. // 实例化表单类并传递自定义参数
  16. $form = FundAdminForm::make()->payload(['id' => $this->getKey()]);
  17. return Modal::make()
  18. ->lg()
  19. ->title($this->title())
  20. ->body($form)
  21. ->button($this->title());
  22. }
  23. }