From ff7c3acc58b69b8c202adb8eb6633a072c8462a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B0=8F=E6=9E=97?= <320730042@qq.com> Date: Tue, 2 Jul 2024 17:18:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E5=A4=87=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/index.ts | 20 +- src/api/order/types.ts | 13 ++ src/api/remote/types.ts | 9 + src/router/index.ts | 13 ++ .../order/components/OrderInfoEdit.vue | 27 ++- .../components/DeviceOrder.vue | 203 ++++++++++++++++++ .../components/DeviceStatus.vue | 18 +- .../components/RemoteOperateInfo.vue | 59 +++-- .../family/operate/remote-operation/index.vue | 4 +- 9 files changed, 346 insertions(+), 20 deletions(-) create mode 100644 src/views/family/operate/remote-operation/components/DeviceOrder.vue diff --git a/src/api/order/index.ts b/src/api/order/index.ts index 9f11ac0..2642ef9 100644 --- a/src/api/order/index.ts +++ b/src/api/order/index.ts @@ -1,8 +1,10 @@ import { AxiosPromise } from "axios"; import { + DeviceOrderQuery, MapDev, ModifyOrderForm, OrderInfoServicePageResult, - OrderInfoVO, OrderLogPageResult, + OrderInfoVO, + OrderLogPageResult, OrderPageResult, OrderServicePageResult, OrderServiceVO @@ -99,3 +101,19 @@ export function bindingOuiSno(orderId: number, devOuiSno: string) { method: "PUT", }); } +export function deviceOderTablePage( + data: DeviceOrderQuery +): AxiosPromise { + return request({ + url: "/api/order/v1/device-order/page", + method: "POST", + data, + }); +} + +export function checkDeviceExits(devSnoOui): AxiosPromise { + return request({ + url: `/api/order/v1/check-dev/${devSnoOui}`, + method: "GET", + }); +} diff --git a/src/api/order/types.ts b/src/api/order/types.ts index e4b2ec1..9f5c2c7 100644 --- a/src/api/order/types.ts +++ b/src/api/order/types.ts @@ -113,3 +113,16 @@ export interface DevOuiSnoSearchForm extends PageQuery { devOuiSno?: string; } export type DevOuiSnoPageResult = PageResult; + +export interface DeviceOrderQuery extends PageQuery { + devSno?: string; + + devOui?: string; + + pppoeAccount?: string; +} +export interface MapDev { + devId?: number; + + typeAndVerId?: number; +} diff --git a/src/api/remote/types.ts b/src/api/remote/types.ts index 40feb45..95e4ab5 100644 --- a/src/api/remote/types.ts +++ b/src/api/remote/types.ts @@ -37,6 +37,10 @@ export interface RemoteDevInfoVO { devOnlineTime?: string; + devCreateTime?: string; + + devOnline?: string; + devAccessType?: string; devTypeNameDetail?: string; @@ -53,3 +57,8 @@ export interface UnBindingForm { devVendorOui?: string; devRemark4?: string; } +export interface DeviceInfo { + devOnline?: string; + devOnlineTime?: string; + devCreateTime?: string; +} diff --git a/src/router/index.ts b/src/router/index.ts index 7800529..7b2603a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -230,6 +230,19 @@ export const constantRoutes: RouteRecordRaw[] = [ title: "远程操作详情", }, }, + { + path: "/resources/remote-info/order/:devId", + name: "DeviceOrder", + component: () => + import( + "@/views/family/operate/remote-operation/components/DeviceOrder.vue" + ), + meta: { + hidden: true, + keepAlive: true, + title: "设备工单", + }, + }, ], }, ]; diff --git a/src/views/family/operate/order/components/OrderInfoEdit.vue b/src/views/family/operate/order/components/OrderInfoEdit.vue index 7bcf360..fe6d681 100644 --- a/src/views/family/operate/order/components/OrderInfoEdit.vue +++ b/src/views/family/operate/order/components/OrderInfoEdit.vue @@ -30,7 +30,7 @@ 修改 - 设备操作维护 + 设备操作维护 工单日志 @@ -351,6 +351,7 @@ + + diff --git a/src/views/family/operate/remote-operation/components/DeviceStatus.vue b/src/views/family/operate/remote-operation/components/DeviceStatus.vue index 566122c..0317cbb 100644 --- a/src/views/family/operate/remote-operation/components/DeviceStatus.vue +++ b/src/views/family/operate/remote-operation/components/DeviceStatus.vue @@ -10,7 +10,11 @@ label-class-name="my-label" class-name="my-content" width="150px" - /> + > +
+ {{ data.devOnline }} +
+ + > + {{ data.devOnlineTime }} + + > + {{ data.devCreateTime }} + diff --git a/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue b/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue index cf0f53b..abe6976 100644 --- a/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue +++ b/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue @@ -206,8 +206,8 @@
设备Ping测试 + >设备Ping测试 +
设备远程重启 + >设备远程重启 +
终端重置数图 + >终端重置数图 +
重置IPTV组播 + >重置IPTV组播 +
通用信息修改 + >通用信息修改 +
@@ -328,12 +328,26 @@ - {{ remote.devTypeNameDetail }} +
+ + 其他操作列表 + + +
@@ -343,28 +357,37 @@