显示经销商等级
parent
12deb5e87a
commit
154785774c
|
|
@ -3,7 +3,6 @@
|
|||
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;
|
||||
|
|
@ -40,7 +39,7 @@ class DealerEarningController extends AdminController
|
|||
// $grid->column('earningable_type');
|
||||
// $grid->column('earningable_id');
|
||||
$grid->column('lvl')->display(function () {
|
||||
return DealerLvl::tryFrom($this->lvl)?->text();
|
||||
return $this->lvl->text();
|
||||
// return $this->lvl_text;
|
||||
});
|
||||
$grid->column('is_manager')->bool();
|
||||
|
|
|
|||
Loading…
Reference in New Issue