|
@@ -61,7 +61,7 @@ class GameConsumeGroupController extends AdminController
|
|
|
// 添加消耗项数量统计和链接
|
|
// 添加消耗项数量统计和链接
|
|
|
$grid->column('items_count', '消耗项数量')->display(function () {
|
|
$grid->column('items_count', '消耗项数量')->display(function () {
|
|
|
$count = GameConsumeItem::where('group_id', $this->getAttribute('id'))->count();
|
|
$count = GameConsumeItem::where('group_id', $this->getAttribute('id'))->count();
|
|
|
- return "<a href='/admin/game-consume-items?group_id={$this->getAttribute('id')}' target=\"_blank\" class='btn btn-sm btn-primary'>{$count} <i class='fa fa-arrow-right'></i></a>";
|
|
|
|
|
|
|
+ return "<a href='game-consume-items?group_id={$this->getAttribute('id')}' target=\"_blank\" class='btn btn-sm btn-primary'>{$count} <i class='fa fa-arrow-right'></i></a>";
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 添加行操作
|
|
// 添加行操作
|
|
@@ -70,7 +70,7 @@ class GameConsumeGroupController extends AdminController
|
|
|
$actions->append(new DuplicateConsumeGroupAction());
|
|
$actions->append(new DuplicateConsumeGroupAction());
|
|
|
|
|
|
|
|
// 添加管理消耗项操作
|
|
// 添加管理消耗项操作
|
|
|
- $actions->append('<a href="/admin/game-consume-items?group_id='.$actions->getKey().'" target="_blank" class="btn btn-sm btn-primary">
|
|
|
|
|
|
|
+ $actions->append('<a href="game-consume-items?group_id='.$actions->getKey().'" target="_blank" class="btn btn-sm btn-primary">
|
|
|
<i class="fa fa-list"></i> 管理消耗项
|
|
<i class="fa fa-list"></i> 管理消耗项
|
|
|
</a>');
|
|
</a>');
|
|
|
});
|
|
});
|
|
@@ -158,7 +158,7 @@ class GameConsumeGroupController extends AdminController
|
|
|
$actions->disableView();
|
|
$actions->disableView();
|
|
|
|
|
|
|
|
// 添加编辑链接
|
|
// 添加编辑链接
|
|
|
- $actions->append('<a href="/admin/game-consume-items/'.$actions->getKey().'/edit" class="btn btn-sm btn-primary">
|
|
|
|
|
|
|
+ $actions->append('<a href="game-consume-items/'.$actions->getKey().'/edit" class="btn btn-sm btn-primary">
|
|
|
<i class="fa fa-edit"></i> 编辑
|
|
<i class="fa fa-edit"></i> 编辑
|
|
|
</a>');
|
|
</a>');
|
|
|
});
|
|
});
|
|
@@ -167,7 +167,7 @@ class GameConsumeGroupController extends AdminController
|
|
|
|
|
|
|
|
// 添加创建按钮
|
|
// 添加创建按钮
|
|
|
$grid->tools(function (Grid\Tools $tools) use ($model) {
|
|
$grid->tools(function (Grid\Tools $tools) use ($model) {
|
|
|
- $tools->append('<a href="/admin/game-consume-items/create?group_id='.$model->id.'" class="btn btn-sm btn-success">
|
|
|
|
|
|
|
+ $tools->append('<a href="game-consume-items/create?group_id='.$model->id.'" class="btn btn-sm btn-success">
|
|
|
<i class="fa fa-plus"></i> 添加消耗项
|
|
<i class="fa fa-plus"></i> 添加消耗项
|
|
|
</a>');
|
|
</a>');
|
|
|
});
|
|
});
|
|
@@ -177,7 +177,7 @@ class GameConsumeGroupController extends AdminController
|
|
|
|
|
|
|
|
// 添加返回按钮
|
|
// 添加返回按钮
|
|
|
$show->tools(function (Show\Tools $tools) {
|
|
$show->tools(function (Show\Tools $tools) {
|
|
|
- $tools->append('<a href="/admin/game-consume-groups" class="btn btn-sm btn-default">
|
|
|
|
|
|
|
+ $tools->append('<a href="game-consume-groups" class="btn btn-sm btn-default">
|
|
|
<i class="fa fa-arrow-left"></i> 返回列表
|
|
<i class="fa fa-arrow-left"></i> 返回列表
|
|
|
</a>');
|
|
</a>');
|
|
|
});
|
|
});
|