|
...
|
...
|
@@ -11,6 +11,7 @@ namespace App\Http\Controllers\Aside\Optimize; |
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Models\Project\OptimizeCheckList;
|
|
|
|
use App\Models\Project\OptimizeCheckLog;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
...
|
...
|
@@ -44,6 +45,7 @@ class CheckLogController extends BaseController |
|
|
|
]);
|
|
|
|
$field = ['id','check_id','date','status','images','result','created_at'];
|
|
|
|
$this->map['status'] = 1;
|
|
|
|
$this->map['type'] = $this->map['type'] ?? 1;
|
|
|
|
$lists = $this->model->lists($this->map,$this->page,$this->row,'id',$field);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
...
|
...
|
@@ -80,6 +82,11 @@ class CheckLogController extends BaseController |
|
|
|
'project_id.required' => 'project_id不能为空', 'check_id.required' => '问题id不能为空',
|
|
|
|
'date.required' => '时间不能为空', 'result.required' => '检查结果不能为空',
|
|
|
|
]);
|
|
|
|
$checkListModel = new OptimizeCheckList();
|
|
|
|
$listInfo = $checkListModel->read(['id'=>$this->param['check_id']],['id','type']);
|
|
|
|
if($listInfo !== false){
|
|
|
|
$this->map['type'] = $listInfo['type'];
|
|
|
|
}
|
|
|
|
$this->param = $this->model->saveHandleParam($this->param,$this->manage['id']);
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$id = $this->param['id'];
|
...
|
...
|
|