diff --git a/src/api/fault/index.ts b/src/api/fault/index.ts new file mode 100644 index 0000000..2a8a112 --- /dev/null +++ b/src/api/fault/index.ts @@ -0,0 +1,20 @@ +import request from "@/utils/request"; +import { FaultBasicInfoVO, FaultQuery, FaultQueryVO } from "@/api/fault/types"; +import { AxiosPromise } from "axios"; + +export function faultQueryList(data: FaultQuery): AxiosPromise { + return request({ + url: "/api/fault/v1/query", + method: "POST", + data, + }); +} +export function faultBasicInfoQuery( + data: FaultQuery +): AxiosPromise { + return request({ + url: "/api/fault/v1/basic_info", + method: "POST", + data, + }); +} diff --git a/src/api/fault/types.ts b/src/api/fault/types.ts new file mode 100644 index 0000000..a1a690a --- /dev/null +++ b/src/api/fault/types.ts @@ -0,0 +1,41 @@ +export interface FaultQueryVO { + devId?: number; + + devSno?: string; + + devPppoe?: string; + + devVendorOui?: string; + + devAdNo?: string; +} +export interface FaultQuery { + label: string; + value: string; + ping: string[]; +} +export interface FaultBasicInfoVO { + devId?: number; + + devPppoe?: string; + + devVendorName?: string; + + devTypeName?: string; + + devHardVer?: string; + + userSnNo?: string; + + customType?: string; + + devIp?: string; + + devStatus?: string; + + devAccessType?: string; + + devSno?: string; + + softVer?: string; +} diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index 6c54fee..20163e6 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -20,10 +20,7 @@
- + {{ userStore.user.username }}