admin role

main
panliang 2024-04-24 21:34:29 +08:00
parent d023d07127
commit 8fac9502c5
5 changed files with 20 additions and 17 deletions

View File

@ -108,7 +108,7 @@ class AgreementController extends AdminController
['label' => __('agreement.images'), 'content' => amisMake()->Images()->name('images')->enlargeAble(), 'span' => 3],
['label' => __('workflow_log.check_status'), 'content' => amisMake()->Mapping()->name('workflow.check_status')->map(CheckStatus::options())],
['label' => __('workflow_log.checked_at'), 'content' => '${workflow.checked_at}'],
['label' => __('workflow_log.remarks'), 'content' => '${workflow_log.check_remarks}'],
['label' => __('workflow_log.remarks'), 'content' => '${workflow.check_remarks}'],
]);
return $this->baseDetail()->id($detailId)->title('')->onEvent([

View File

@ -40,7 +40,7 @@ class SettingController extends AdminController
amis()->SwitchControl('oss_config.use_ssl', '开启SSL')->value(false)->visibleOn('${upload_disk == "oss"}'),
]),
Tab::make()->title('打卡设置')->body([
amisMake()->NumberControl()->name('sign.distance')->label('允许打卡的距离(公里)')
amisMake()->NumberControl()->min(0)->name('sign.distance')->label('允许打卡的距离(公里)')
]),
])
);

View File

@ -79,7 +79,7 @@ class AdminRoleController extends AdminController
->api(admin_url('system/admin_roles/${id}/permissions'))
->mode('normal')
->data(['id' => '${id}'])
->body([
->body(
amis()->TreeControl()
->name('permissions')
->label()
@ -88,15 +88,17 @@ class AdminRoleController extends AdminController
->searchable()
->cascade()
->value('${permission_ids}')
->joinValues(false)
->extractValue()
->size('full')
->className('h-full b-none')
->inputClassName('h-full tree-full')
->heightAuto()
->showIcon(false)
->initiallyOpen(false)
// ->size('full')
// ->className('h-full b-none')
// ->inputClassName('h-full tree-full')
->labelField('name')
->valueField('id'),
]),
),
])->size('lg')
);
}
@ -117,7 +119,7 @@ class AdminRoleController extends AdminController
->api(admin_url(admin_url('system/admin_roles/${id}/menus')))
->mode('normal')
->data(['id' => '${id}'])
->body([
->body(
amis()->TreeControl()
->name('menus')
->label()
@ -126,15 +128,17 @@ class AdminRoleController extends AdminController
->searchable()
->cascade()
->value('${menu_ids}')
->joinValues(false)
->extractValue()
->size('full')
->className('h-full b-none')
->inputClassName('h-full tree-full')
->heightAuto()
->showIcon(false)
->initiallyOpen(false)
// ->size('full')
// ->className('h-full b-none')
// ->inputClassName('h-full tree-full')
->labelField('title')
->valueField('id'),
]),
->valueField('id')
),
])->size('lg')
);
}

View File

@ -44,7 +44,6 @@ class EmployeeService extends BaseService
// 职位修改
if (isset($data['jobs'])) {
dd($data['jobs']);
$jobs = is_array($data['jobs']) ? $data['jobs'] : explode(',', $data['jobs']);
$model->jobs()->sync($jobs);
}

View File

@ -140,7 +140,7 @@ Route::group([
// 门店统计
$router->get('store-statistics', [StoreStatisticController::class, 'index'])->name('store_statistics.index');
// 店长提成
$router->resource('store-master-commissions', StoreMasterCommissionController::class);
$router->resource('store-master-commissions', StoreMasterCommissionController::class)->names('store_master_commissions');
});
/*