Commit 19285d83 by 宁成龙

完善链接跳转

parent 3a7f4517
Showing with 4 additions and 2 deletions
......@@ -36,8 +36,8 @@ class UserService
public static function userListListField(Grid $grid)
{
$grid->column('company_name');
$grid->column('user_sn')->link(function ($user_sn) {
return admin_url('/' . $user_sn);
$grid->column('user_sn')->link(function ($user_sn)use($grid) {
return admin_url("/users/{$this->id}");
});
$grid->column('name');
$grid->column('phone');
......@@ -50,6 +50,8 @@ class UserService
$grid->column('status')->using(admin_trans('user.options.status'));
}
public static function userListTool(Grid $grid)
{
$grid->tools([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment