icd调整
This commit is contained in:
@@ -4,34 +4,34 @@ import http from '@/api'
|
||||
/**
|
||||
* @name ICD管理模块
|
||||
*/
|
||||
|
||||
|
||||
|
||||
//获取ICD分页
|
||||
export const getICDList = (params: ICD.ReqICDParams) => {
|
||||
return http.post(`/icd/list`,params)
|
||||
return http.post<ICD.ResICDPage>(`/icd/list`, params)
|
||||
}
|
||||
|
||||
|
||||
//获取ICD
|
||||
export const getICDAllList = (params: ICD.ResICD) => {
|
||||
return http.get(`/icd/listAll`,params)
|
||||
export const getICDAllList = () => {
|
||||
return http.get<ICD.ResICD[]>(`/icd/listAll`)
|
||||
}
|
||||
|
||||
//添加ICD
|
||||
export const addICD = (params: ICD.ResICD) => {
|
||||
export const getStandardICDList = () => {
|
||||
return http.get<ICD.StandardOption[]>(`/icd/standard-list`)
|
||||
}
|
||||
|
||||
export const getICDById = (id: string) => {
|
||||
return http.get<ICD.ResICD>(`/icd/getById`, { id })
|
||||
}
|
||||
|
||||
export const addICD = (params: FormData) => {
|
||||
return http.upload(`/icd/add`, params)
|
||||
}
|
||||
|
||||
//编辑ICD
|
||||
export const updateICD = (params: ICD.ResICD) => {
|
||||
}
|
||||
|
||||
export const updateICD = (params: FormData) => {
|
||||
return http.upload(`/icd/update`, params)
|
||||
}
|
||||
|
||||
//删除ICD
|
||||
export const deleteICD = (params: string[]) => {
|
||||
}
|
||||
|
||||
export const deleteICD = (params: string[]) => {
|
||||
return http.post(`/icd/delete`, params)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export const exportICD = (id: string) => {
|
||||
return http.downloadGetWithHeaders(`/icd/export/${id}`)
|
||||
}
|
||||
|
||||
@@ -1,38 +1,36 @@
|
||||
import type { ReqPage, ResPage } from '@/api/interface'
|
||||
|
||||
// ICD模块
|
||||
export namespace ICD {
|
||||
export interface ReqICDParams extends ReqPage {
|
||||
name?: string
|
||||
type?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD表格分页查询参数
|
||||
*/
|
||||
export interface ReqICDParams extends ReqPage {
|
||||
id: string; // 装置序号id 必填
|
||||
devType?: string; // 设备名称
|
||||
createTime?: string; //创建时间
|
||||
}
|
||||
export interface StandardOption {
|
||||
id: string
|
||||
name: string
|
||||
type?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD新增、修改、根据id查询返回的对象
|
||||
*/
|
||||
export interface ResICD {
|
||||
id: string; //icdID
|
||||
name: string;//icd名称
|
||||
path: string;//icd存储地址
|
||||
state: number;
|
||||
createBy?: string| null; //创建用户
|
||||
createTime?: string| null; //创建时间
|
||||
updateBy?: string| null; //更新用户
|
||||
updateTime?: string| null; //更新时间
|
||||
angle: number; // 是否支持电压相角、电流相角指标
|
||||
usePhaseIndex: number; // 角型接线时是否使用相别的指标来进行检测
|
||||
mappingFile: string | null;//映射文件
|
||||
}
|
||||
export interface ResICD {
|
||||
id: string
|
||||
name: string
|
||||
state: number
|
||||
createBy?: string | null
|
||||
createTime?: string | null
|
||||
updateBy?: string | null
|
||||
updateTime?: string | null
|
||||
angle: number
|
||||
usePhaseIndex: number
|
||||
jsonStr: string
|
||||
xmlStr: string
|
||||
result: number
|
||||
msg: string | null
|
||||
type: number
|
||||
referenceIcdId: string | null
|
||||
referenceIcdName?: string | null
|
||||
hasIcdFile?: boolean | null
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD表格查询分页返回的对象;
|
||||
*/
|
||||
export interface ResICDPage extends ResPage<ResICD> {
|
||||
|
||||
}
|
||||
}
|
||||
export interface ResICDPage extends ResPage<ResICD> {}
|
||||
}
|
||||
|
||||
@@ -214,6 +214,10 @@ class RequestHttp {
|
||||
return this.service.post(url, params, { ..._object, responseType: 'blob' })
|
||||
}
|
||||
|
||||
downloadGetWithHeaders(url: string, _object = {}): Promise<AxiosResponse<Blob>> {
|
||||
return this.service.get(url, { ..._object, responseType: 'blob' })
|
||||
}
|
||||
|
||||
upload(url: string, params?: object, _object = {}): Promise<BlobPart> {
|
||||
return this.service.post(url, params, {
|
||||
..._object,
|
||||
|
||||
Reference in New Issue
Block a user