diff --git a/app/Admin/Extensions/Grid/Tools/DrawActivityTicketChange.php b/app/Admin/Extensions/Grid/Tools/DrawActivityTicketChange.php new file mode 100644 index 00000000..51d66601 --- /dev/null +++ b/app/Admin/Extensions/Grid/Tools/DrawActivityTicketChange.php @@ -0,0 +1,57 @@ +can('dcat.admin.draw_activities.change_tickets'); + } + + /** + * 按钮文本 + * + * @return string|void + */ + public function title() + { + return '增加/扣除'; + } + + public function render() + { + $form = DrawActivityTicketChangeForm::make(); + $form->payload(['id' => $this->drawActivity->id]); + + return Modal::make() + ->lg() + ->title($this->title()) + ->body($form) + ->button($this->html()); + } + + /** + * 设置请求参数 + * + * @return array|void + */ + public function parameters() + { + return [ + + ]; + } +}