pqdif
This commit is contained in:
@@ -19,6 +19,7 @@ export namespace DevType {
|
||||
id: string; //设备类型ID
|
||||
name: string;//设备类型名称
|
||||
icd: string| null;//设备关联的ICD
|
||||
pqdif: string| null;//设备关联的PQDIF
|
||||
power: string| null;//工作电源
|
||||
devVolt: number; //额定电压(V)
|
||||
devCurr: number; //额定电流(A)
|
||||
@@ -38,4 +39,4 @@ export namespace DevType {
|
||||
export interface ResPqDevTypePage extends ResPage<ResPqDevType> {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
26
frontend/src/api/device/interface/pqdif.ts
Normal file
26
frontend/src/api/device/interface/pqdif.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ReqPage, ResPage } from '@/api/interface'
|
||||
|
||||
export namespace PQDIF {
|
||||
export interface ReqPQDIFParams extends ReqPage {
|
||||
name?: string
|
||||
result?: number
|
||||
}
|
||||
|
||||
export interface ResPQDIF {
|
||||
id: string
|
||||
name: string
|
||||
filePath?: string | null
|
||||
recordCount?: number | null
|
||||
observationCount?: number | null
|
||||
sampleValueCount?: number | null
|
||||
result?: number | null
|
||||
msg?: string | null
|
||||
state: number
|
||||
createBy?: string | null
|
||||
createTime?: string | null
|
||||
updateBy?: string | null
|
||||
updateTime?: string | null
|
||||
}
|
||||
|
||||
export interface ResPQDIFPage extends ResPage<ResPQDIF> {}
|
||||
}
|
||||
14
frontend/src/api/device/pqdif/index.ts
Normal file
14
frontend/src/api/device/pqdif/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { PQDIF } from '@/api/device/interface/pqdif'
|
||||
import http from '@/api'
|
||||
|
||||
export const getPQDIFList = (params: PQDIF.ReqPQDIFParams) => {
|
||||
return http.post<PQDIF.ResPQDIFPage>('/pqdif/list', params)
|
||||
}
|
||||
|
||||
export const getPQDIFAllList = () => {
|
||||
return http.get<PQDIF.ResPQDIF[]>('/pqdif/listAll')
|
||||
}
|
||||
|
||||
export const importPQDIFJson = (params: FormData) => {
|
||||
return http.upload('/pqdif/import/json', params, { loading: false })
|
||||
}
|
||||
Reference in New Issue
Block a user