From d0b183127fea614d28f6b53387e841fd226d863c Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Thu, 30 Dec 2021 20:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=93=8D=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Actions/Grid/AfterSaleSetTag.php | 10 ++-------- app/Admin/Actions/Grid/ArticleList.php | 10 ++-------- app/Admin/Actions/Grid/CouponTaskStart.php | 10 ++-------- app/Admin/Actions/Grid/CreateOrderPackage.php | 10 ++-------- app/Admin/Actions/Grid/DisableUser.php | 10 ++-------- app/Admin/Actions/Grid/EnableUser.php | 10 ++-------- app/Admin/Actions/Grid/Frozen.php | 10 ++-------- app/Admin/Actions/Grid/OrderPackageFailed.php | 10 ++-------- app/Admin/Actions/Grid/OrderPackageSetTag.php | 10 ++-------- app/Admin/Actions/Grid/OrderSetTag.php | 10 ++-------- app/Admin/Actions/Grid/PartCoupon.php | 10 ++-------- app/Admin/Actions/Grid/QuotaV1SendJobStart.php | 10 ++-------- app/Admin/Actions/Grid/ReleaseCancel.php | 10 ++-------- app/Admin/Actions/Grid/ReleaseDown.php | 10 ++-------- app/Admin/Actions/Grid/ReleaseUp.php | 10 ++-------- app/Admin/Actions/Grid/SkuGift.php | 10 ++-------- app/Admin/Actions/Grid/SkuList.php | 10 ++-------- app/Admin/Actions/Grid/SkuSyncSpu.php | 10 ++-------- app/Admin/Actions/Grid/SkuVerify.php | 10 ++-------- app/Admin/Actions/Grid/WalletToBankLogVerify.php | 10 ++-------- config/admin.php | 1 + 21 files changed, 41 insertions(+), 160 deletions(-) diff --git a/app/Admin/Actions/Grid/AfterSaleSetTag.php b/app/Admin/Actions/Grid/AfterSaleSetTag.php index c5a949e2..e173930c 100644 --- a/app/Admin/Actions/Grid/AfterSaleSetTag.php +++ b/app/Admin/Actions/Grid/AfterSaleSetTag.php @@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal; class AfterSaleSetTag extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 标签'; + return $this->title; } - - return '标签'; + return ' 标签  '; } public function render() diff --git a/app/Admin/Actions/Grid/ArticleList.php b/app/Admin/Actions/Grid/ArticleList.php index 230fa18c..8a06564a 100644 --- a/app/Admin/Actions/Grid/ArticleList.php +++ b/app/Admin/Actions/Grid/ArticleList.php @@ -11,18 +11,12 @@ use Illuminate\Http\Request; class ArticleList extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin.list'); + return $this->title; } - - return __('admin.list'); + return ' '.__('admin.list').'  '; } /** diff --git a/app/Admin/Actions/Grid/CouponTaskStart.php b/app/Admin/Actions/Grid/CouponTaskStart.php index d82132c9..cd1ce535 100644 --- a/app/Admin/Actions/Grid/CouponTaskStart.php +++ b/app/Admin/Actions/Grid/CouponTaskStart.php @@ -11,18 +11,12 @@ use Throwable; class CouponTaskStart extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 开始任务'; + return $this->title; } - - return '开始任务'; + return ' 开始任务  '; } /** diff --git a/app/Admin/Actions/Grid/CreateOrderPackage.php b/app/Admin/Actions/Grid/CreateOrderPackage.php index 2e39346d..d60b3832 100644 --- a/app/Admin/Actions/Grid/CreateOrderPackage.php +++ b/app/Admin/Actions/Grid/CreateOrderPackage.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class CreateOrderPackage extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.craete_order_package'); + return $this->title; } - - return __('admin_message.actions.grid.create_order_package'); + return ' '.__('admin_message.actions.grid.create_order_package').'   '; } /** diff --git a/app/Admin/Actions/Grid/DisableUser.php b/app/Admin/Actions/Grid/DisableUser.php index b0f28012..c766d44d 100644 --- a/app/Admin/Actions/Grid/DisableUser.php +++ b/app/Admin/Actions/Grid/DisableUser.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class DisableUser extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.disable_user'); + return $this->title; } - - return __('admin_message.actions.grid.disable_user'); + return ' '.__('admin_message.actions.grid.disable_user').'   '; } /** diff --git a/app/Admin/Actions/Grid/EnableUser.php b/app/Admin/Actions/Grid/EnableUser.php index 59183dfd..76def8df 100644 --- a/app/Admin/Actions/Grid/EnableUser.php +++ b/app/Admin/Actions/Grid/EnableUser.php @@ -10,18 +10,12 @@ use Throwable; class EnableUser extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.enable_user'); + return $this->title; } - - return __('admin_message.actions.grid.enable_user'); + return ' '.__('admin_message.actions.grid.enable_user').'   '; } /** diff --git a/app/Admin/Actions/Grid/Frozen.php b/app/Admin/Actions/Grid/Frozen.php index 95aaee4d..0f517673 100644 --- a/app/Admin/Actions/Grid/Frozen.php +++ b/app/Admin/Actions/Grid/Frozen.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class Frozen extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 资产冻结'; + return $this->title; } - - return '资产冻结'; + return ' 资产冻结  '; } /** diff --git a/app/Admin/Actions/Grid/OrderPackageFailed.php b/app/Admin/Actions/Grid/OrderPackageFailed.php index ec5d187b..0cc885d3 100644 --- a/app/Admin/Actions/Grid/OrderPackageFailed.php +++ b/app/Admin/Actions/Grid/OrderPackageFailed.php @@ -11,18 +11,12 @@ use Throwable; class OrderPackageFailed extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.'作废'; + return $this->title; } - - return '作废'; + return ' 作废  '; } /** diff --git a/app/Admin/Actions/Grid/OrderPackageSetTag.php b/app/Admin/Actions/Grid/OrderPackageSetTag.php index 2622b665..a3fa8a48 100644 --- a/app/Admin/Actions/Grid/OrderPackageSetTag.php +++ b/app/Admin/Actions/Grid/OrderPackageSetTag.php @@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal; class OrderPackageSetTag extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 标签'; + return $this->title; } - - return '标签'; + return ' 标签  '; } /** diff --git a/app/Admin/Actions/Grid/OrderSetTag.php b/app/Admin/Actions/Grid/OrderSetTag.php index 0e051417..9be58bb4 100644 --- a/app/Admin/Actions/Grid/OrderSetTag.php +++ b/app/Admin/Actions/Grid/OrderSetTag.php @@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal; class OrderSetTag extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 标签'; + return $this->title; } - - return '标签'; + return ' 标签  '; } /** diff --git a/app/Admin/Actions/Grid/PartCoupon.php b/app/Admin/Actions/Grid/PartCoupon.php index 0b322e7d..318ae44f 100644 --- a/app/Admin/Actions/Grid/PartCoupon.php +++ b/app/Admin/Actions/Grid/PartCoupon.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class PartCoupon extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 赠券'; + return $this->title; } - - return '赠券'; + return ' 赠券  '; } /** diff --git a/app/Admin/Actions/Grid/QuotaV1SendJobStart.php b/app/Admin/Actions/Grid/QuotaV1SendJobStart.php index 08e6fd39..12b24dc9 100644 --- a/app/Admin/Actions/Grid/QuotaV1SendJobStart.php +++ b/app/Admin/Actions/Grid/QuotaV1SendJobStart.php @@ -10,18 +10,12 @@ use Throwable; class QuotaV1SendJobStart extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 开始任务'; + return $this->title; } - - return '开始任务'; + return ' 开始任务  '; } /** diff --git a/app/Admin/Actions/Grid/ReleaseCancel.php b/app/Admin/Actions/Grid/ReleaseCancel.php index 2b832e86..0cf97360 100644 --- a/app/Admin/Actions/Grid/ReleaseCancel.php +++ b/app/Admin/Actions/Grid/ReleaseCancel.php @@ -11,18 +11,12 @@ use Throwable; class ReleaseCancel extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.release_cancel'); + return $this->title; } - - return __('admin_message.actions.grid.release_cancel'); + return ' '.__('admin_message.actions.grid.release_cancel').'  '; } /** diff --git a/app/Admin/Actions/Grid/ReleaseDown.php b/app/Admin/Actions/Grid/ReleaseDown.php index 1b774e41..2cbbed84 100644 --- a/app/Admin/Actions/Grid/ReleaseDown.php +++ b/app/Admin/Actions/Grid/ReleaseDown.php @@ -11,18 +11,12 @@ use Throwable; class ReleaseDown extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.release_down'); + return $this->title; } - - return __('admin_message.actions.grid.release_down'); + return ' '.__('admin_message.actions.grid.release_down').'  '; } /** diff --git a/app/Admin/Actions/Grid/ReleaseUp.php b/app/Admin/Actions/Grid/ReleaseUp.php index 44bfe3cb..bf95af82 100644 --- a/app/Admin/Actions/Grid/ReleaseUp.php +++ b/app/Admin/Actions/Grid/ReleaseUp.php @@ -11,18 +11,12 @@ use Throwable; class ReleaseUp extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.release_up'); + return $this->title; } - - return __('admin_message.actions.grid.release_up'); + return ' '.__('admin_message.actions.grid.release_up').'  '; } /** diff --git a/app/Admin/Actions/Grid/SkuGift.php b/app/Admin/Actions/Grid/SkuGift.php index ab45ba83..f8aa8770 100644 --- a/app/Admin/Actions/Grid/SkuGift.php +++ b/app/Admin/Actions/Grid/SkuGift.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class SkuGift extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.sku_gift'); + return $this->title; } - - return __('admin_message.actions.grid.sku_gift'); + return ' '.__('admin_message.actions.grid.sku_gift').'  '; } /** diff --git a/app/Admin/Actions/Grid/SkuList.php b/app/Admin/Actions/Grid/SkuList.php index 1d134b7f..ee672db5 100644 --- a/app/Admin/Actions/Grid/SkuList.php +++ b/app/Admin/Actions/Grid/SkuList.php @@ -8,18 +8,12 @@ use Illuminate\Http\Request; class SkuList extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin.list'); + return $this->title; } - - return __('admin.list'); + return ' '.__('admin.list').'  '; } /** diff --git a/app/Admin/Actions/Grid/SkuSyncSpu.php b/app/Admin/Actions/Grid/SkuSyncSpu.php index 8658c53c..04ebe601 100644 --- a/app/Admin/Actions/Grid/SkuSyncSpu.php +++ b/app/Admin/Actions/Grid/SkuSyncSpu.php @@ -11,18 +11,12 @@ use Throwable; class SkuSyncSpu extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.sku_sync_spu'); + return $this->title; } - - return __('admin_message.actions.grid.sku_sync_spu'); + return ' '.__('admin_message.actions.grid.sku_sync_spu').'  '; } /** diff --git a/app/Admin/Actions/Grid/SkuVerify.php b/app/Admin/Actions/Grid/SkuVerify.php index 2dab0d58..ae741895 100644 --- a/app/Admin/Actions/Grid/SkuVerify.php +++ b/app/Admin/Actions/Grid/SkuVerify.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class SkuVerify extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' '.__('admin_message.actions.grid.sku_verify'); + return $this->title; } - - return __('admin_message.actions.grid.sku_verify'); + return ' '.__('admin_message.actions.grid.sku_verify').'  '; } /** diff --git a/app/Admin/Actions/Grid/WalletToBankLogVerify.php b/app/Admin/Actions/Grid/WalletToBankLogVerify.php index 53beb034..fb91f828 100644 --- a/app/Admin/Actions/Grid/WalletToBankLogVerify.php +++ b/app/Admin/Actions/Grid/WalletToBankLogVerify.php @@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal; class WalletToBankLogVerify extends RowAction { - /** - * @return string - */ - protected $title = ''; - public function title() { if ($this->title) { - return $this->title.' 审核'; + return $this->title; } - - return '审核'; + return ' 审核  '; } /** diff --git a/config/admin.php b/config/admin.php index f2b4c9ea..687fe434 100644 --- a/config/admin.php +++ b/config/admin.php @@ -170,6 +170,7 @@ return [ // The global Grid action display class. 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class, + // 'grid_action_class' => Dcat\Admin\Grid\Displayers\Actions::class, // The global Grid batch action display class. 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,