From 7111d4888634659064a4e8154342ad19bfa900e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E6=B8=85=E7=88=BD?= Date: Fri, 16 May 2025 17:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E5=9F=9F=E6=93=8D=E7=9B=98=E6=89=8B?= =?UTF-8?q?=20-=20=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AE=8C=E6=95=B4IMEI=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=9F=A5=E7=9C=8BIMEI=E7=9A=84=E6=A8=A1=E6=80=81?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/app/devices/page.tsx | 13 ++----------- Server/application/cunkebao/config/route.php | 1 + 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Cunkebao/app/devices/page.tsx b/Cunkebao/app/devices/page.tsx index c717b706..4a5e3a4d 100644 --- a/Cunkebao/app/devices/page.tsx +++ b/Cunkebao/app/devices/page.tsx @@ -559,14 +559,6 @@ export default function DevicesPage() { return; } - let target = event.target as HTMLElement; - while (target && target !== event.currentTarget) { - if (target.classList.contains('imei-display-area')) { - return; - } - target = target.parentElement as HTMLElement; - } - router.push(`/devices/${deviceId}`); } @@ -715,9 +707,8 @@ export default function DevicesPage() { {device.status === "online" ? "在线" : "离线"} -
- IMEI: - +
+ IMEI: {device.imei}
微信号: {device.wechatId || "未绑定或微信离线"}
diff --git a/Server/application/cunkebao/config/route.php b/Server/application/cunkebao/config/route.php index 43a658b7..b2efda2f 100644 --- a/Server/application/cunkebao/config/route.php +++ b/Server/application/cunkebao/config/route.php @@ -12,6 +12,7 @@ Route::group('v1/', function () { Route::put('refresh', 'app\cunkebao\controller\device\RefreshDeviceDetailV1Controller@index'); Route::get('add-results', 'app\cunkebao\controller\device\GetAddResultedV1Controller@index'); Route::post('task-config', 'app\cunkebao\controller\device\UpdateDeviceTaskConfigV1Controller@index'); + Route::get(':id/task-config', 'app\cunkebao\controller\device\UpdateDeviceTaskConfigV1Controller@index'); Route::get(':id/handle-logs', 'app\cunkebao\controller\device\GetDeviceHandleLogsV1Controller@index'); Route::get(':id', 'app\cunkebao\controller\device\GetDeviceDetailV1Controller@index'); Route::delete(':id', 'app\cunkebao\controller\device\DeleteDeviceV1Controller@index');