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.
42 lines
747 B
42 lines
747 B
<?php
|
|
|
|
namespace App\Admin\Actions\Grid\v3;
|
|
|
|
use Dcat\Admin\Grid\RowAction;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
use App\Admin\Forms\v3\CouponPublishForm;
|
|
|
|
class CouponPublish extends RowAction
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
protected $title = '发布';
|
|
|
|
public function render()
|
|
{
|
|
$id = $this->getKey();
|
|
|
|
$modal = Modal::make()
|
|
->xl()
|
|
->title($this->title)
|
|
->body(CouponPublishForm::make()->setKey($id))
|
|
->button($this->title);
|
|
|
|
return $modal;
|
|
}
|
|
|
|
// 确认弹窗信息
|
|
public function confirm()
|
|
{
|
|
return '您确定要发布吗?';
|
|
}
|
|
|
|
public function parameters()
|
|
{
|
|
|
|
return [
|
|
|
|
];
|
|
}
|
|
}
|