isAjax()){ $param=request()->get(); $where=[['distribution_person_id','=',admin_id()]]; if(is_array($param['find_problem_time'])){ $time=$param['find_problem_time']; $where[]=['find_problem_time','between',$time]; } $patrolProblem = new PatrolProblem(); $list = $patrolProblem->getPaginateList($where,["*"],['id'=>'desc'],[],$param['limit'],$param['page']); return sparkSuccess(dataReturn(0,'success',$list)); } return view('bomb/myacceptance/index'); } /** * 完成验收提交 * @param Request $request * @return \support\Response */ public function resetting(Request $request){ if ($request->isAjaxPost()) { $formData = request()->post(); $patrolProblem = new PatrolProblem(); $data = [ 'comment_problem_score' => $formData['comment_problem_score'],#评分 'comment_problem_is_solve' => $formData['comment_problem_is_solve'],#是否解决 'the_problem_is_comment' => 2,#已评论 'comment_problem_person_id' => admin_id(),#已处理 'comment_problem_person_name' => admin()['name'],#已处理 'comment_problem_time' => now(),# 分配时间 ]; $patrolProblem->updateById($data, $formData['id']); return sparkSuccess(dataReturn(0, '验收提交成功')); } return sparkSuccess(dataReturn(0, 'error')); } }