|
|
|
@ -16,7 +16,9 @@ namespace app\common\repositories\user; |
|
|
|
|
|
|
|
|
|
use app\common\dao\user\UserLabelDao; |
|
|
|
|
use app\common\repositories\BaseRepository; |
|
|
|
|
use app\common\repositories\store\CityAreaRepository; |
|
|
|
|
use FormBuilder\Exception\FormBuilderException; |
|
|
|
|
use app\controller\admin\store\StoreBrand; |
|
|
|
|
use FormBuilder\Factory\Elm; |
|
|
|
|
use FormBuilder\Form; |
|
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
@ -88,11 +90,10 @@ class UserLabelRepository extends BaseRepository |
|
|
|
|
$isCreate = is_null($id); |
|
|
|
|
$action = Route::buildUrl($isCreate ? 'systemUserLabelCreate' : 'systemUserLabelUpdate', $isCreate ? [] : compact('id'))->build(); |
|
|
|
|
|
|
|
|
|
$area = [ |
|
|
|
|
['value' => '', 'label' => '全部'], |
|
|
|
|
['value' => 1, 'label' => '自营'], |
|
|
|
|
['value' => 0, 'label' => '非自营'], |
|
|
|
|
]; |
|
|
|
|
$StoreBrand = new CityAreaRepository(); |
|
|
|
|
|
|
|
|
|
$where['parent_id'] = 0; |
|
|
|
|
$area =$StoreBrand->getList($where); |
|
|
|
|
|
|
|
|
|
return Elm::createForm($action, [ |
|
|
|
|
|
|
|
|
@ -117,8 +118,6 @@ class UserLabelRepository extends BaseRepository |
|
|
|
|
Elm::input('brand_id', '品牌')->required(), |
|
|
|
|
Elm::input('trade_id', '行业')->required(), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
])->setTitle($isCreate ? '添加合作人' : '编辑合作人')->formData($formData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|