|
@@ -70,13 +70,22 @@ class DistAdminUserController extends AdminController
|
|
protected function detail($id)
|
|
protected function detail($id)
|
|
{
|
|
{
|
|
return Show::make($id, DistAdminUser::with(['distributor']), function (Show $show) {
|
|
return Show::make($id, DistAdminUser::with(['distributor']), function (Show $show) {
|
|
- $show->row(function (Show\Row $show) {
|
|
|
|
|
|
+ $show->row(function ($show) {
|
|
$show->width(6)->field('id');
|
|
$show->width(6)->field('id');
|
|
$show->width(6)->field('username');
|
|
$show->width(6)->field('username');
|
|
$show->width(6)->field('name','name');
|
|
$show->width(6)->field('name','name');
|
|
- $show->width(6)->field('info.site_name','Site Name');
|
|
|
|
- $show->width(6)->field('distributor.level_domain','Level Domain');
|
|
|
|
|
|
+ $show->width(6)->field('language')->using(config('dictionary.languages'));
|
|
|
|
+ $show->width(6)->field('enabled')->using(config('dictionary.enabled'));
|
|
|
|
+ $show->width(6)->field('created_at');
|
|
|
|
+ $show->width(6)->field('updated_at');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $show->row(function ($show) {
|
|
$show->width(6)->field('distributor.company_name', 'Company Name');
|
|
$show->width(6)->field('distributor.company_name', 'Company Name');
|
|
|
|
+ $show->width(6)->field('distributor.company_address','Company Address');
|
|
|
|
+ $show->width(6)->field('distributor.site_name','Site Name');
|
|
|
|
+ $show->width(6)->field('distributor.level_domain','Level Domain');
|
|
$show->width(6)->field('distributor.country','Country');
|
|
$show->width(6)->field('distributor.country','Country');
|
|
$show->width(6)->field('distributor.contact_number','Contact Number');
|
|
$show->width(6)->field('distributor.contact_number','Contact Number');
|
|
$show->width(6)->field('distributor.service_hotline','Service Hotline');
|
|
$show->width(6)->field('distributor.service_hotline','Service Hotline');
|
|
@@ -86,13 +95,11 @@ class DistAdminUserController extends AdminController
|
|
$show->width(6)->field('distributor.youtube','Youtube');
|
|
$show->width(6)->field('distributor.youtube','Youtube');
|
|
$show->width(6)->field('distributor.linkedin','Linkedin');
|
|
$show->width(6)->field('distributor.linkedin','Linkedin');
|
|
$show->width(6)->field('distributor.tiktok','Tiktok');
|
|
$show->width(6)->field('distributor.tiktok','Tiktok');
|
|
- $show->width(6)->field('language')->using(config('dictionary.languages'));
|
|
|
|
- $show->width(6)->field('enabled')->using(config('dictionary.enabled'));
|
|
|
|
- $show->width(6)->field('distributor.company_address','Company Address');
|
|
|
|
- $show->width(6)->field('created_at');
|
|
|
|
- $show->width(6)->field('updated_at');
|
|
|
|
$show->width(6)->field('distributor.remark','Remark');
|
|
$show->width(6)->field('distributor.remark','Remark');
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ // 按钮
|
|
|
|
+ $show->disableDeleteButton();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -141,15 +148,6 @@ class DistAdminUserController extends AdminController
|
|
return $form->response()->error('Failed to save data');
|
|
return $form->response()->error('Failed to save data');
|
|
}
|
|
}
|
|
DistAdminUser::addRoleUser($newId, config('dictionary.dist_role_id'));//分销商角色ID 2
|
|
DistAdminUser::addRoleUser($newId, config('dictionary.dist_role_id'));//分销商角色ID 2
|
|
- //分配默认分类
|
|
|
|
-// $distProductCategory = new DistProductCategory();
|
|
|
|
-// $distProductCategory->create([
|
|
|
|
-// 'parent_id' => 0,
|
|
|
|
-// 'name' => 'Default Category',
|
|
|
|
-// 'order' => 0,
|
|
|
|
-// 'enabled' => 1,
|
|
|
|
-// 'dist_id'=>$newId,
|
|
|
|
-// ]);
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|