Commit ed8ca110 by 汪伟伟

未通过原因

parent fe9fe498
...@@ -10,6 +10,7 @@ use Dcat\Admin\Form; ...@@ -10,6 +10,7 @@ use Dcat\Admin\Form;
use Dcat\Admin\Grid; use Dcat\Admin\Grid;
use Dcat\Admin\Show; use Dcat\Admin\Show;
use Dcat\Admin\Http\Controllers\AdminController; use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Widgets\Tooltip;
class AlreadyApproveController extends AdminController class AlreadyApproveController extends AdminController
{ {
...@@ -63,7 +64,14 @@ class AlreadyApproveController extends AdminController ...@@ -63,7 +64,14 @@ class AlreadyApproveController extends AdminController
$grid->column('collects.refer_level', '信源等级'); $grid->column('collects.refer_level', '信源等级');
// $grid->column('collects.net_img', '截图链接'); // $grid->column('collects.net_img', '截图链接');
$grid->column('status', '状态')->display(function ($statusValue) {//是当前字段的值 $grid->column('status', '状态')->display(function ($statusValue) {//是当前字段的值
return \App\Models\TasksApprove::APPROVE_STATUS_DESC[$statusValue]; $html = \App\Models\TasksApprove::APPROVE_STATUS_DESC[$statusValue];
if ($statusValue == 1) {
// var_dump($this->id,$this->approve->msg);
Tooltip::make('.ti-shi-span'.$this->id)->title($this->msg);
return "<span style='color: red' class='ti-shi-span{$this->id}'>{$html}</span>";
}else{
return $html;
}
}); });
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>'); // $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
......
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