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.
 
 
 
 
 
 

66 lines
3.0 KiB

import request from '@/config/axios'
export const getAllLock = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/electron/lock/page`, params })
}
export const getAllIsolationPoint = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/isolation/point/page`, params })
}
export const getAllIsolationPlan = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/isolation/plan/page`, params })
}
export const getAllGuidance = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/guide/lock-guide/page`, params })
}
export const getAllGuidanceIsolationPoint = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/guide/isolation-point/page`, params })
}
export const getAllPlanItem = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/isolation/plan-item/page`, params })
}
export const getAllPlanItemDetail = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/isolation/plan-item-detail/page`, params })
}
export const getAllPlanLifeLock = (params: PageParam = { pageSize: 9999, pageNo: 1 }) => {
return request.get({ url: `/isolation/plan-life-lock/page`, params })
}
const baseUrl = import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL
export const getAgentConfigSignature = (url: string) => {
return fetch(`${baseUrl}/js/weixin/getAgentConfigSignature?url=${url}`).then(async res => {
return await res.json()
})
}
export const getConfigSignature = (url: string) => {
return fetch(`${baseUrl}/js/weixin/getConfigSignature?url=${url}`).then(async res => {
return await res.json()
})
}
export const getAllFormattedIsolationPlan = () => {
return request.get({ url: `/isolation/plan/planListAll` })
}
// 获取所有基础数据
export const getAllBaseData = () => request.get({ url: `isolation/point/getListAll` })
// 查询用户管理列表
export const getAllUser = () => request.get({ url: 'system/user/list-all-simple' })
// 根据隔离点获取相关记录
export const getIsolationPointDetail = (id: number) => request.get({ url: `isolation/point/getPointListAll`, params: { id } })
export const bindLock = (data: { planItemDetailId: number; lockId: number }) => request.put({ url: `isolation/point/bindlock`, data })
export const lockAction = (data: { planItemDetailId: number, operateRecordId: number }) => request.put({ url: `isolation/point/createLock`, data })
export const verifyLockAction = (data: { planItemDetailId: number, verifyRecordId: number }) => request.put({ url: `isolation/point/verifyLock`, data })
export const verifyUnlockAction = (data: { planItemDetailId: number, lifelockId: number }) => request.put({ url: `isolation/point/verifyUnLock`, data })
export const unLockAction = (data: { planItemDetailId: number, planId: number, lifelockId: number }) => request.put({ url: `isolation/point/unLock`, data })