私域操盘手 - 设备管理列表显示完整IMEI,去除查看IMEI的模态框
This commit is contained in:
@@ -559,14 +559,6 @@ export default function DevicesPage() {
|
|||||||
return;
|
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}`);
|
router.push(`/devices/${deviceId}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -715,9 +707,8 @@ export default function DevicesPage() {
|
|||||||
{device.status === "online" ? "在线" : "离线"}
|
{device.status === "online" ? "在线" : "离线"}
|
||||||
</Badge>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-sm text-gray-500 flex items-center imei-display-area">
|
<div className="text-sm text-gray-500">
|
||||||
<span className="mr-1">IMEI:</span>
|
<span className="mr-1">IMEI: {device.imei}</span>
|
||||||
<ImeiDisplay imei={device.imei} containerWidth={180} />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="text-sm text-gray-500">微信号: {device.wechatId || "未绑定或微信离线"}</div>
|
<div className="text-sm text-gray-500">微信号: {device.wechatId || "未绑定或微信离线"}</div>
|
||||||
<div className="flex items-center justify-between mt-1 text-sm">
|
<div className="flex items-center justify-between mt-1 text-sm">
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Route::group('v1/', function () {
|
|||||||
Route::put('refresh', 'app\cunkebao\controller\device\RefreshDeviceDetailV1Controller@index');
|
Route::put('refresh', 'app\cunkebao\controller\device\RefreshDeviceDetailV1Controller@index');
|
||||||
Route::get('add-results', 'app\cunkebao\controller\device\GetAddResultedV1Controller@index');
|
Route::get('add-results', 'app\cunkebao\controller\device\GetAddResultedV1Controller@index');
|
||||||
Route::post('task-config', 'app\cunkebao\controller\device\UpdateDeviceTaskConfigV1Controller@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/handle-logs', 'app\cunkebao\controller\device\GetDeviceHandleLogsV1Controller@index');
|
||||||
Route::get(':id', 'app\cunkebao\controller\device\GetDeviceDetailV1Controller@index');
|
Route::get(':id', 'app\cunkebao\controller\device\GetDeviceDetailV1Controller@index');
|
||||||
Route::delete(':id', 'app\cunkebao\controller\device\DeleteDeviceV1Controller@index');
|
Route::delete(':id', 'app\cunkebao\controller\device\DeleteDeviceV1Controller@index');
|
||||||
|
|||||||
Reference in New Issue
Block a user