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

33 lines
587 B

  1. <?php
  2. namespace App\Admin\Extensions;
  3. use Dcat\Admin\Grid\RowAction;
  4. class CouponTieEdit extends RowAction
  5. {
  6. public function title()
  7. {
  8. return '编辑';
  9. }
  10. /**
  11. * 添加JS
  12. *
  13. * @return string
  14. */
  15. protected function script()
  16. {
  17. return <<<JS
  18. $('.coupon-edit-row').on('click', function () {
  19. // Your code.
  20. window.location.href ='/admin/coupon/TieForm';
  21. });
  22. JS;
  23. }
  24. public function html()
  25. {
  26. $this->setHtmlAttribute(['class' => 'coupon-edit-row']);
  27. return parent::html();
  28. }
  29. }