|
@@ -98,6 +98,14 @@ class SiteMenuController extends AdminDistController
|
|
|
}))->required();
|
|
|
//标题
|
|
|
$form->text('title')->required();
|
|
|
+ //图片
|
|
|
+ $form->image("image_url", admin_trans_label('images'))
|
|
|
+ ->retainable()//禁止删OSS图
|
|
|
+ ->autoUpload()
|
|
|
+ ->uniqueName()
|
|
|
+ ->accept(config('distributor.upload.oss_image.accept'))
|
|
|
+ ->maxSize(config('distributor.upload.oss_image.max_size'))
|
|
|
+ ->dir(config("distributor.upload.directory.image").'/menu/'.date("Ymd"));
|
|
|
//类型
|
|
|
$form->select('menu_type')->options(admin_trans_array(config('dictionary.menu_type')))->required()
|
|
|
->when(1, function (Form $form) use ($menuConfig,$thisObject) {
|