|
...
|
...
|
@@ -37,6 +37,11 @@ class CheckLogController extends BaseController |
|
|
|
* @time :2025/4/17 10:17
|
|
|
|
*/
|
|
|
|
public function lists(){
|
|
|
|
$this->request->validate([
|
|
|
|
'project_id'=>'required',
|
|
|
|
],[
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
$field = ['id','check_id','date','status','images','result','created_at'];
|
|
|
|
$this->map['status'] = 1;
|
|
|
|
$lists = $this->model->lists($this->map,$this->page,$this->row,'id',$field);
|
|
...
|
...
|
@@ -69,10 +74,10 @@ class CheckLogController extends BaseController |
|
|
|
*/
|
|
|
|
public function save(){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required', 'check_id'=>'required',
|
|
|
|
'project_id'=>'required', 'check_id'=>'required',
|
|
|
|
'date'=>'required', 'result'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => '主键不能为空', 'check_id.required' => '问题id不能为空',
|
|
|
|
'project_id.required' => 'project_id不能为空', 'check_id.required' => '问题id不能为空',
|
|
|
|
'date.required' => '时间不能为空', 'result.required' => '检查结果不能为空',
|
|
|
|
]);
|
|
|
|
$this->param = $this->model->saveHandleParam($this->param,$this->manage['id']);
|
...
|
...
|
|