阶段性更新
This commit is contained in:
@@ -143,12 +143,15 @@ class IndexController extends AdminController
|
||||
$grid->column('分润规则')->display(function ($title, $column) {
|
||||
return '点击展开';
|
||||
})->modal(function ($model) {
|
||||
|
||||
if ($model->code) {
|
||||
$codes = $model->code->map(function ($code) {
|
||||
return $code->only(['name', 'code', 'profit']);
|
||||
});
|
||||
|
||||
return new Table(['名称', '规则项', '分润金额(元)'], $codes->toArray());
|
||||
$table = new Table(['名称', '规则项', '分润金额(元)'], $codes->toArray());
|
||||
|
||||
return trim($table->render(), '"');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user