| xqd
@@ -35,10 +35,15 @@ class UserEvaluatesController extends AdminController
|
|
|
$actions->disableEdit();
|
|
|
//去掉查看
|
|
|
$actions->disableView();
|
|
|
- //审核通过
|
|
|
- $actions->add(new Pass());
|
|
|
- //忽略
|
|
|
- $actions->add(new Ignore());
|
|
|
+ //只有状态为待审核才可以显示通过和忽略
|
|
|
+ if ($actions->row->status ==1)
|
|
|
+ {
|
|
|
+ //审核通过
|
|
|
+ $actions->add(new Pass());
|
|
|
+ //忽略
|
|
|
+ $actions->add(new Ignore());
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
|
|
|
$grid->filter(function ($filter){
|
| xqd
@@ -46,7 +51,6 @@ class UserEvaluatesController extends AdminController
|
|
|
$filter->like('user.nickname','用户名字');
|
|
|
$filter->like('docter.name','医生名字');
|
|
|
$filter->like('content','评价内容');
|
|
|
-// $filter->equal('id','订单id');
|
|
|
$filter->equal('status','审核状态')->select([
|
|
|
1 => '待审核',
|
|
|
2 => '审核通过',
|