联调实时数据页面
This commit is contained in:
@@ -1,27 +1,43 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 事件分析 获取数据
|
||||
export function getRunOnlineRateData(data:any) {
|
||||
export function getRunOnlineRateData(data: any) {
|
||||
return request({
|
||||
url: "/device-boot/communicate/getRunOnlineRateData",
|
||||
method: "post",
|
||||
url: '/device-boot/communicate/getRunOnlineRateData',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
})
|
||||
}
|
||||
// 事件分析 运行状态 获取数据
|
||||
export function getComFlagInfoData(data:any) {
|
||||
export function getComFlagInfoData(data: any) {
|
||||
return request({
|
||||
url: "/device-boot/communicate/getComFlagInfoData",
|
||||
method: "post",
|
||||
url: '/device-boot/communicate/getComFlagInfoData',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 事件分析 运行状态 获取数据
|
||||
export function getRunInfoData(data:any) {
|
||||
export function getRunInfoData(data: any) {
|
||||
return request({
|
||||
url: "/device-boot/communicate/getRunInfoData",
|
||||
method: "post",
|
||||
url: '/device-boot/communicate/getRunInfoData',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
// 根据监测点id获取越限数值
|
||||
export function getOverLimitData(data: any) {
|
||||
return request({
|
||||
url: '/device-boot/line/getOverLimitData',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
// 获取监测点id取监测点信息
|
||||
export function getLineDetail(data: any) {
|
||||
return request({
|
||||
url: '/device-boot/commLine/getLineDetail',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -15,4 +15,12 @@ export function updateEventReason(data: any) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
//获取暂态事件明细
|
||||
export function queryEventDetailByEventId(params: any) {
|
||||
return request({
|
||||
url: '/event-boot/rmpEventDetail/queryEventDetailByEventId',
|
||||
method: 'GET',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
@@ -54,8 +54,15 @@ export function getUserById() {
|
||||
}
|
||||
|
||||
// 刷新token
|
||||
// 导出一个名为refreshToken的函数,该函数返回一个Promise对象
|
||||
export function refreshToken(): Promise<any> {
|
||||
// 调用useAdminInfo函数获取管理员信息,并将其赋值给adminInfo变量
|
||||
const adminInfo = useAdminInfo()
|
||||
// 调用login函数,传入一个对象作为参数,该对象包含grant_type、refresh_token和username三个属性
|
||||
// grant_type设置为'refresh_token',表示使用刷新令牌的方式获取新的访问令牌
|
||||
// refresh_token使用adminInfo中的refresh_token属性
|
||||
// username使用adminInfo中的loginName属性
|
||||
// 返回login函数的调用结果,即一个Promise对象
|
||||
return login({
|
||||
grant_type: 'refresh_token',
|
||||
refresh_token: adminInfo.refresh_token,
|
||||
|
||||
Reference in New Issue
Block a user