显示经销商等级
parent
62ec3a102a
commit
12deb5e87a
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Admin\Controllers;
|
||||
|
||||
use App\Admin\Repositories\DealerEarning;
|
||||
use App\Enums\DealerLvl;
|
||||
use App\Models\DealerChannelSubsidyLog;
|
||||
use App\Models\DealerManagerSubsidy;
|
||||
use App\Models\DealerManageSubsidy;
|
||||
|
|
@ -39,7 +40,8 @@ class DealerEarningController extends AdminController
|
|||
// $grid->column('earningable_type');
|
||||
// $grid->column('earningable_id');
|
||||
$grid->column('lvl')->display(function () {
|
||||
return $this->lvl_text;
|
||||
return DealerLvl::tryFrom($this->lvl)?->text();
|
||||
// return $this->lvl_text;
|
||||
});
|
||||
$grid->column('is_manager')->bool();
|
||||
$grid->column('total_amount')->prepend('¥');
|
||||
|
|
|
|||
Loading…
Reference in New Issue