LevelPercentAction.php 643 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Admin\Actions\Grid;
  3. use Dcat\Admin\Actions\Response;
  4. use Dcat\Admin\Grid\Tools\AbstractTool;
  5. class LevelPercentAction extends AbstractTool
  6. {
  7. /**
  8. * Handle the action request.
  9. *
  10. * @param Request $request
  11. *
  12. * @return Response
  13. */
  14. public function render()
  15. {
  16. return \Dcat\Admin\Widgets\Modal::make()
  17. ->lg()
  18. ->title('修改概率')
  19. ->body(\App\Admin\Forms\LevelPercent::make()) // 传递自定义参数
  20. ->button('<a class="btn btn-primary grid-refresh btn-mini btn-outline" href="javascript:void(0)">概率设置</a>');
  21. }
  22. }