From 1cc4cff2b28b57cda43f57d04342910a984be6c8 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Thu, 2 Jun 2022 10:29:36 +0800 Subject: [PATCH] WIP --- .../Grid/Tools/DrawActivityTicketChange.php | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 app/Admin/Extensions/Grid/Tools/DrawActivityTicketChange.php 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 [ + + ]; + } +}