作者 lyh

变更数据

@@ -45,6 +45,23 @@ class TicketUploadDataController extends BaseController @@ -45,6 +45,23 @@ class TicketUploadDataController extends BaseController
45 } 45 }
46 46
47 /** 47 /**
  48 + * @remark :获取数据详情
  49 + * @name :detail
  50 + * @author :lyh
  51 + * @method :post
  52 + * @time :2025/9/26 09:29
  53 + */
  54 + public function detail(){
  55 + $this->request->validate([
  56 + 'id'=>'required'
  57 + ],[
  58 + 'id.required' => '主键ID不能为空',
  59 + ]);
  60 + $data = $this->logic->getDetail();
  61 + $this->response('success',Code::SUCCESS,$data);
  62 + }
  63 +
  64 + /**
48 * @remark :人工审核 65 * @remark :人工审核
49 * @name :save 66 * @name :save
50 * @author :lyh 67 * @author :lyh
@@ -70,6 +70,22 @@ class TicketUploadDataLogic extends BaseLogic @@ -70,6 +70,22 @@ class TicketUploadDataLogic extends BaseLogic
70 } 70 }
71 71
72 /** 72 /**
  73 + * @remark :获取当前数据详情
  74 + * @name :getDetail
  75 + * @author :lyh
  76 + * @method :post
  77 + * @time :2025/9/26 09:31
  78 + */
  79 + public function getDetail(){
  80 + $info = $this->model->read(['id'=>$this->param['id']]);
  81 + if($info === false){
  82 + $this->fail('当前数据不存在或已被删除');
  83 + }
  84 + $info = $this->getHandleFileImage($info);
  85 + return $this->success($info);
  86 + }
  87 +
  88 + /**
73 * @remark :保存数据 89 * @remark :保存数据
74 * @name :saveData 90 * @name :saveData
75 * @author :lyh 91 * @author :lyh
@@ -644,6 +644,12 @@ Route::middleware(['aloginauth'])->group(function () { @@ -644,6 +644,12 @@ Route::middleware(['aloginauth'])->group(function () {
644 Route::any('/monthManageList', [\App\Http\Controllers\Aside\Ticket\TicketController::class,'monthManageList'])->name('ticket_count_monthManageList');//月统计数据 644 Route::any('/monthManageList', [\App\Http\Controllers\Aside\Ticket\TicketController::class,'monthManageList'])->name('ticket_count_monthManageList');//月统计数据
645 Route::any('/manageTicketCount', [\App\Http\Controllers\Aside\Ticket\TicketController::class,'manageTicketCount'])->name('ticket_count_manageTicketCount'); 645 Route::any('/manageTicketCount', [\App\Http\Controllers\Aside\Ticket\TicketController::class,'manageTicketCount'])->name('ticket_count_manageTicketCount');
646 }); 646 });
  647 + //ticket
  648 + Route::prefix('ticket_upload')->group(function () {
  649 + Route::any('/', [Aside\Ticket\TicketUploadDataController::class,'lists'])->name('ticket_upload_lists');
  650 + Route::any('/save', [Aside\Ticket\TicketUploadDataController::class,'save'])->name('ticket_upload_save');
  651 + Route::any('/detail', [Aside\Ticket\TicketUploadDataController::class,'detail'])->name('ticket_upload_detail');
  652 + });
647 }); 653 });
648 654
649 //无需登录验证的路由组 655 //无需登录验证的路由组