合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !1864
正在显示
2 个修改的文件
包含
33 行增加
和
3 行删除
| @@ -37,6 +37,11 @@ class CheckLogController extends BaseController | @@ -37,6 +37,11 @@ class CheckLogController extends BaseController | ||
| 37 | * @time :2025/4/17 10:17 | 37 | * @time :2025/4/17 10:17 |
| 38 | */ | 38 | */ |
| 39 | public function lists(){ | 39 | public function lists(){ |
| 40 | + $this->request->validate([ | ||
| 41 | + 'project_id'=>'required', | ||
| 42 | + ],[ | ||
| 43 | + 'project_id.required' => 'project_id不能为空', | ||
| 44 | + ]); | ||
| 40 | $field = ['id','check_id','date','status','images','result','created_at']; | 45 | $field = ['id','check_id','date','status','images','result','created_at']; |
| 41 | $this->map['status'] = 1; | 46 | $this->map['status'] = 1; |
| 42 | $lists = $this->model->lists($this->map,$this->page,$this->row,'id',$field); | 47 | $lists = $this->model->lists($this->map,$this->page,$this->row,'id',$field); |
| @@ -44,6 +49,23 @@ class CheckLogController extends BaseController | @@ -44,6 +49,23 @@ class CheckLogController extends BaseController | ||
| 44 | } | 49 | } |
| 45 | 50 | ||
| 46 | /** | 51 | /** |
| 52 | + * @remark :获取数据详情 | ||
| 53 | + * @name :info | ||
| 54 | + * @author :lyh | ||
| 55 | + * @method :post | ||
| 56 | + * @time :2025/4/17 16:18 | ||
| 57 | + */ | ||
| 58 | + public function info(){ | ||
| 59 | + $this->request->validate([ | ||
| 60 | + 'id'=>'required', | ||
| 61 | + ],[ | ||
| 62 | + 'id.required' => '主键不能为空', | ||
| 63 | + ]); | ||
| 64 | + $data = $this->model->read($this->map); | ||
| 65 | + $this->response('success',Code::SUCCESS,$data); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + /** | ||
| 47 | * @remark :保存数据 | 69 | * @remark :保存数据 |
| 48 | * @name :save | 70 | * @name :save |
| 49 | * @author :lyh | 71 | * @author :lyh |
| @@ -52,10 +74,10 @@ class CheckLogController extends BaseController | @@ -52,10 +74,10 @@ class CheckLogController extends BaseController | ||
| 52 | */ | 74 | */ |
| 53 | public function save(){ | 75 | public function save(){ |
| 54 | $this->request->validate([ | 76 | $this->request->validate([ |
| 55 | - 'id'=>'required', 'check_id'=>'required', | 77 | + 'project_id'=>'required', 'check_id'=>'required', |
| 56 | 'date'=>'required', 'result'=>'required', | 78 | 'date'=>'required', 'result'=>'required', |
| 57 | ],[ | 79 | ],[ |
| 58 | - 'id.required' => '主键不能为空', 'check_id.required' => '问题id不能为空', | 80 | + 'project_id.required' => 'project_id不能为空', 'check_id.required' => '问题id不能为空', |
| 59 | 'date.required' => '时间不能为空', 'result.required' => '检查结果不能为空', | 81 | 'date.required' => '时间不能为空', 'result.required' => '检查结果不能为空', |
| 60 | ]); | 82 | ]); |
| 61 | $this->param = $this->model->saveHandleParam($this->param,$this->manage['id']); | 83 | $this->param = $this->model->saveHandleParam($this->param,$this->manage['id']); |
| @@ -307,13 +307,21 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -307,13 +307,21 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 307 | Route::any('/getAfterCount', [Aside\Optimize\AfterCountController::class, 'getAfterCount'])->name('admin.optimize_getAfterCount');//售后统计数据 | 307 | Route::any('/getAfterCount', [Aside\Optimize\AfterCountController::class, 'getAfterCount'])->name('admin.optimize_getAfterCount');//售后统计数据 |
| 308 | Route::any('/getAfterCountInfo', [Aside\Optimize\AfterCountController::class, 'getAfterCountInfo'])->name('admin.optimize_getAfterCountInfo');//售后统计数据详情 | 308 | Route::any('/getAfterCountInfo', [Aside\Optimize\AfterCountController::class, 'getAfterCountInfo'])->name('admin.optimize_getAfterCountInfo');//售后统计数据详情 |
| 309 | 309 | ||
| 310 | - //聚合页关键词设置 | 310 | + //检查列表 |
| 311 | Route::prefix('check_list')->group(function () { | 311 | Route::prefix('check_list')->group(function () { |
| 312 | Route::any('/', [Aside\Optimize\CheckListController::class, 'lists'])->name('admin.check_list'); | 312 | Route::any('/', [Aside\Optimize\CheckListController::class, 'lists'])->name('admin.check_list'); |
| 313 | Route::any('/info', [Aside\Optimize\CheckListController::class, 'info'])->name('admin.check_list_info'); | 313 | Route::any('/info', [Aside\Optimize\CheckListController::class, 'info'])->name('admin.check_list_info'); |
| 314 | Route::any('/save', [Aside\Optimize\CheckListController::class, 'save'])->name('admin.check_list_save'); | 314 | Route::any('/save', [Aside\Optimize\CheckListController::class, 'save'])->name('admin.check_list_save'); |
| 315 | Route::any('/del', [Aside\Optimize\CheckListController::class, 'del'])->name('admin.check_list_del'); | 315 | Route::any('/del', [Aside\Optimize\CheckListController::class, 'del'])->name('admin.check_list_del'); |
| 316 | }); | 316 | }); |
| 317 | + | ||
| 318 | + //检查记录 | ||
| 319 | + Route::prefix('check_log')->group(function () { | ||
| 320 | + Route::any('/', [Aside\Optimize\CheckLogController::class, 'lists'])->name('admin.check_log'); | ||
| 321 | + Route::any('/info', [Aside\Optimize\CheckLogController::class, 'info'])->name('admin.check_log_info'); | ||
| 322 | + Route::any('/save', [Aside\Optimize\CheckLogController::class, 'save'])->name('admin.check_log_save'); | ||
| 323 | + Route::any('/del', [Aside\Optimize\CheckLogController::class, 'del'])->name('admin.check_log_del'); | ||
| 324 | + }); | ||
| 317 | }); | 325 | }); |
| 318 | //生成关键字 | 326 | //生成关键字 |
| 319 | Route::prefix('create_keyword')->group(function () { | 327 | Route::prefix('create_keyword')->group(function () { |
-
请 注册 或 登录 后发表评论