|
|
|
@ -75,7 +75,8 @@ class UserPartnerRepository extends BaseRepository |
|
|
|
|
/** @var UserLabelRepository $make */ |
|
|
|
|
$list = $this->dao->getAll($uid)->column('partner_id') ?? []; |
|
|
|
|
$data = ['partner_id' => $list, 'uid' => $uid]; |
|
|
|
|
return Elm::createForm(Route::buildUrl('systemUserChangePartner', compact('uid'))->build(), [ |
|
|
|
|
$url = 'sys/user/partner/'.$uid; |
|
|
|
|
$res = Elm::createForm($url, [ |
|
|
|
|
Elm::input('uid', '用户 ID', '')->disabled(true)->required(true), |
|
|
|
|
Elm::selectMultiple('partner_id', '用户合作人角色')->options(function () { |
|
|
|
|
$partnerForm = new PartnerDao(); |
|
|
|
@ -88,7 +89,7 @@ class UserPartnerRepository extends BaseRepository |
|
|
|
|
return $options; |
|
|
|
|
}), |
|
|
|
|
])->setTitle('编辑合作人角色')->formData($data); |
|
|
|
|
//return compact('list', 'option'); |
|
|
|
|
return $res; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function editPartner(int $uid, array $partner_id = []) |
|
|
|
|