diff --git a/src/api/fault/index.ts b/src/api/fault/index.ts index 2a8a112..4d6bce4 100644 --- a/src/api/fault/index.ts +++ b/src/api/fault/index.ts @@ -1,5 +1,5 @@ import request from "@/utils/request"; -import { FaultBasicInfoVO, FaultQuery, FaultQueryVO } from "@/api/fault/types"; +import { FaultBasicInfoVO, FaultDiagnosisResult, FaultQuery, FaultQueryVO } from "@/api/fault/types"; import { AxiosPromise } from "axios"; export function faultQueryList(data: FaultQuery): AxiosPromise { @@ -18,3 +18,16 @@ export function faultBasicInfoQuery( data, }); } +export function basicInfoDiagnosis( + devId?: number, + remote?: string +): AxiosPromise { + return request({ + url: "/api/fault/v1/basic_info/diagnosis", + method: "GET", + params: { + devId, + remote, + }, + }); +} diff --git a/src/api/fault/types.ts b/src/api/fault/types.ts index a1a690a..c22aee7 100644 --- a/src/api/fault/types.ts +++ b/src/api/fault/types.ts @@ -1,13 +1,13 @@ export interface FaultQueryVO { - devId?: number; + devId: number; - devSno?: string; + devSno: string; - devPppoe?: string; + devPppoe: string; - devVendorOui?: string; + devVendorOui: string; - devAdNo?: string; + devAdNo: string; } export interface FaultQuery { label: string; @@ -39,3 +39,10 @@ export interface FaultBasicInfoVO { softVer?: string; } +export interface FaultDiagnosisResult { + errorDesc?: string; + + testResult?: string; + + endTime?: string; +} diff --git a/src/views/family/operate/fault-management/components/Diagnosis.vue b/src/views/family/operate/fault-management/components/Diagnosis.vue new file mode 100644 index 0000000..ef58fd5 --- /dev/null +++ b/src/views/family/operate/fault-management/components/Diagnosis.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/views/family/operate/fault-management/components/basicInfoQuery.vue b/src/views/family/operate/fault-management/components/basicInfoQuery.vue index b18d70f..ccaee77 100644 --- a/src/views/family/operate/fault-management/components/basicInfoQuery.vue +++ b/src/views/family/operate/fault-management/components/basicInfoQuery.vue @@ -154,33 +154,29 @@
- - - - + +
+
+ +
+
+
-
上网速度慢
-
用户异常掉线