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.
|
|
<?php
namespace App\Admin\Actions\Grid\v3;
use Dcat\Admin\Grid\RowAction;use Dcat\Admin\Widgets\Modal;use App\Admin\Forms\v3\GoodsActivityCopyForm;use Dcat\Admin\Widgets\Lazy;
class GoodsActivityCopy extends RowAction{ /** * @return string */ protected $title = '复制';
public function render() { $form = GoodsActivityCopyForm::make()->payload(['id'=>$this->row->id,'name'=>$this->row->name]);
$modal = Modal::make() ->xl() ->title($this->title) ->body($form) ->button($this->title);
return $modal; }
public function parameters() { return [ 'id' => $this->row->id, 'name' => $this->row->name ]; }}
|