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.
34 lines
587 B
34 lines
587 B
<?php
|
|
namespace App\Admin\Extensions;
|
|
|
|
use Dcat\Admin\Grid\RowAction;
|
|
|
|
class CouponTieEdit extends RowAction
|
|
{
|
|
public function title()
|
|
{
|
|
return '编辑';
|
|
}
|
|
|
|
/**
|
|
* 添加JS
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function script()
|
|
{
|
|
return <<<JS
|
|
$('.coupon-edit-row').on('click', function () {
|
|
// Your code.
|
|
window.location.href ='/admin/coupon/TieForm';
|
|
});
|
|
JS;
|
|
}
|
|
|
|
public function html()
|
|
{
|
|
$this->setHtmlAttribute(['class' => 'coupon-edit-row']);
|
|
return parent::html();
|
|
}
|
|
|
|
}
|