调整操作按钮写法
parent
737547d8ce
commit
d0b183127f
|
|
@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class AfterSaleSetTag extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-tag grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 标签';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '标签';
|
||||
return '<i class="feather icon-tag grid-action-icon"></i> 标签 ';
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Illuminate\Http\Request;
|
|||
|
||||
class ArticleList extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-list grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' '.__('admin.list');
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return __('admin.list');
|
||||
return '<i class="feather grid-action-icon icon-list"></i> '.__('admin.list').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class CouponTaskStart extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather grid-action-icon icon-play-circle"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 开始任务';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '开始任务';
|
||||
return '<i class="feather grid-action-icon icon-play-circle"></i> 开始任务 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class CreateOrderPackage extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-package grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-package grid-action-icon"></i> '.__('admin_message.actions.grid.create_order_package').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class DisableUser extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-lock grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-lock grid-action-icon"></i> '.__('admin_message.actions.grid.disable_user').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10,18 +10,12 @@ use Throwable;
|
|||
|
||||
class EnableUser extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-unlock grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-unlock grid-action-icon"></i> '.__('admin_message.actions.grid.enable_user').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class Frozen extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="fa fa-ban grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 资产冻结';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '资产冻结';
|
||||
return '<i class="fa fa-ban grid-action-icon"></i> 资产冻结 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class OrderPackageFailed extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-eye-off grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' '.'作废';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '作废';
|
||||
return '<i class="feather icon-eye-off grid-action-icon"></i> 作废 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class OrderPackageSetTag extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-tag grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 标签';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '标签';
|
||||
return '<i class="feather icon-tag grid-action-icon"></i> 标签 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -9,18 +9,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class OrderSetTag extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-tag grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 标签';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '标签';
|
||||
return '<i class="feather icon-tag grid-action-icon"></i> 标签 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class PartCoupon extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-list grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 赠券';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '赠券';
|
||||
return '<i class="feather icon-list grid-action-icon"></i> 赠券 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10,18 +10,12 @@ use Throwable;
|
|||
|
||||
class QuotaV1SendJobStart extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather grid-action-icon icon-play-circle"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 开始任务';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '开始任务';
|
||||
return '<i class="feather grid-action-icon icon-play-circle"></i> 开始任务 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class ReleaseCancel extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-corner-up-left grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-corner-up-left grid-action-icon"></i> '.__('admin_message.actions.grid.release_cancel').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class ReleaseDown extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-arrow-down grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-arrow-down grid-action-icon"></i> '.__('admin_message.actions.grid.release_down').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class ReleaseUp extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-arrow-up grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-arrow-up grid-action-icon"></i> '.__('admin_message.actions.grid.release_up').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class SkuGift extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-list grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather icon-list grid-action-icon"></i> '.__('admin_message.actions.grid.sku_gift').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Illuminate\Http\Request;
|
|||
|
||||
class SkuList extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-list grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' '.__('admin.list');
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return __('admin.list');
|
||||
return '<i class="feather grid-action-icon icon-list"></i> '.__('admin.list').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,18 +11,12 @@ use Throwable;
|
|||
|
||||
class SkuSyncSpu extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-copy grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather grid-action-icon icon-copy"></i> '.__('admin_message.actions.grid.sku_sync_spu').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class SkuVerify extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-shuffle grid-action-icon"></i>';
|
||||
|
||||
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 '<i class="feather grid-action-icon icon-shuffle"></i> '.__('admin_message.actions.grid.sku_verify').' ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@ use Dcat\Admin\Widgets\Modal;
|
|||
|
||||
class WalletToBankLogVerify extends RowAction
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected $title = '<i class="feather icon-shuffle grid-action-icon"></i>';
|
||||
|
||||
public function title()
|
||||
{
|
||||
if ($this->title) {
|
||||
return $this->title.' 审核';
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
return '审核';
|
||||
return '<i class="feather grid-action-icon icon-shuffle"></i> 审核 ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue