You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.9 KiB
87 lines
1.9 KiB
import qs from 'qs'
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
export interface InstantPageReqVO extends PageParam {
|
|
mpName?: string
|
|
|
|
}
|
|
|
|
export interface InstantVO {
|
|
id: number
|
|
status: number
|
|
modelId: number
|
|
pointInfo: Array<any>
|
|
mpName: string
|
|
intervalTime: number
|
|
visible: number
|
|
hisSto: number
|
|
calcGroup: number
|
|
modelVersionId: number
|
|
}
|
|
|
|
export interface EXAHistoryReqVO {
|
|
itemName?: string
|
|
startTime?: Date
|
|
endTime?: Date
|
|
interval?: string
|
|
}
|
|
|
|
export interface InstantChartReqVO extends EXAHistoryReqVO {
|
|
id?: number
|
|
|
|
}
|
|
|
|
export interface EXANowReqVO {
|
|
itemName?: string
|
|
|
|
}
|
|
|
|
export interface EXAPoint {
|
|
AssetCode?: string
|
|
ItemName?: string
|
|
GroupName?: string
|
|
ItemType?: number
|
|
Descriptor?: string
|
|
EngUnits?: string
|
|
Source?: string
|
|
AutoSave?: number
|
|
UpperBound?: number
|
|
LowerBound?: number
|
|
UpperLimit?: number
|
|
LowerLimit?: number
|
|
UpperUpperLimit?: number
|
|
LowerLowerLimit?: number
|
|
Comment?: string
|
|
Note?: string
|
|
}
|
|
// 查询模型实例列表
|
|
export function getInstantPage(params: InstantPageReqVO) {
|
|
return defHttp.get({ url: '/alert/instant/page', params })
|
|
}
|
|
// 查询模型实例详情
|
|
export function getInstant(id: number) {
|
|
return defHttp.get({ url: `/alert/instant/get?id=${id}` })
|
|
}
|
|
// 新增模型实例
|
|
export function createInstant(data: InstantVO) {
|
|
return defHttp.post({ url: '/alert/instant/create', data })
|
|
}
|
|
|
|
// 修改模型实例
|
|
export function updateInstant(data: InstantVO) {
|
|
return defHttp.put({ url: '/alert/instant/update', data })
|
|
}
|
|
|
|
// 获取模型实例数量
|
|
export function getInstantCount() {
|
|
return defHttp.get({ url: '/alert/instant/count' })
|
|
}
|
|
|
|
// 查询模型实例测点列表
|
|
export function getInstantPoint(id: number) {
|
|
return defHttp.get({ url: `/alert/instant/getPoint?id=${id}` })
|
|
}
|
|
// 查询模型实例测点曲线
|
|
export function getInstantChart(data: InstantChartReqVO) {
|
|
return defHttp.post({ url: `/alert/instant/getChart`, data })
|
|
}
|
|
|