Commit 142e09ca by 汪伟伟

.。。

parent 65665a77
......@@ -31,7 +31,12 @@ class AlreadySettlementController extends AdminController
$grid->column('time', '结算时间');
$grid->column('num', '数量');
$grid->column('amount', '金额');
$grid->column('pay_img', '转账截图');
$grid->column('pay_img', '转账截图')->display(function ($val){
if ($val){
return "<a href={$val} target='_blank' style='color: #00b44e'>点击查看</a>";
}
return $val;
});
$grid->column('status', '状态')->display(function ($val) {
return TasksOrder::ORDER_STATUS_DESC[$val];
});
......
......@@ -146,7 +146,12 @@ class TasksOrderController extends AdminController
$grid->column('time');
$grid->column('num');
$grid->column('amount');
$grid->column('pay_img');
$grid->column('pay_img')->display(function ($val){
if ($val){
return "<a href={$val} target='_blank' style='color: #00b44e'>点击查看</a>";
}
return $val;
});
$grid->column('status', '状态')->display(function ($val) use ($grid) {
if ($val == 3) {
$grid->disableEditButton();
......@@ -196,7 +201,9 @@ class TasksOrderController extends AdminController
// $form->text('time');
// $form->text('num');
// $form->text('amount');
$form->image('pay_img')->autoUpload()->uniqueName()->saveFullUrl()->override();
$form->image('pay_img')
// ->thumbnail('small', $width = 300, $height = 300);
->autoUpload()->uniqueName()->saveFullUrl()->override();
// $form->text('status');
// $form->display('created_at');
......
......@@ -53,4 +53,6 @@ class TasksOrder extends Model
return $this->hasMany(TasksReceive::class, 'order_id', 'id');
}
}
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 to comment