修改:供应商 - 添加编辑员工信息时报错,导致不能正常显示表单

This commit is contained in:
wuhui_zzw 2024-02-27 13:47:22 +08:00
parent 2e22742a3d
commit 7216c9f2b5
1 changed files with 5 additions and 1 deletions

View File

@ -120,12 +120,16 @@ class StoreServiceRepository extends BaseRepository
];
}else if($merchantType == 2){
$adminRule = [];
$filed = [ ];
$filed = [
"value" => 1,
"rule" => []
];
}
}
$adminRule[] = Elm::number('sort', '排序', 0)->precision(0)->max(99999);
$prefix = $merId ? config('admin.merchant_prefix') : config('admin.admin_prefix');
return Elm::createForm(Route::buildUrl('merchantServiceCreate')->build(), array_merge([
Elm::frameImage('uid', '用户', '/' . $prefix . '/setting/userList?field=uid&type=1')->prop('srcKey', 'src')->width('1000px')->height('600px')->appendValidate(Iview::validateObject()->message('请选择用户')->required())->modal(['modal' => false]),
Elm::frameImage('avatar', '员工头像', '/' . $prefix . '/setting/uploadPicture?field=avatar&type=1')->width('1000px')->height('600px')->props(['footer' => false])->modal(['modal' => false]),