6
0
Fork 0

显示经销商等级

release
vine_liutk 2022-01-20 11:25:30 +08:00 committed by 李静
parent 12deb5e87a
commit 154785774c
1 changed files with 1 additions and 2 deletions

View File

@ -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();