Files
pqs-9100_client/frontend/src/api/device/controlSource/index.ts

29 lines
791 B
TypeScript
Raw Normal View History

2025-03-07 13:17:11 +08:00
import type { controlSource } from '@/api/device/interface/controlSource'
import http from '@/api'
import { useDetectionLockStore } from '@/stores/modules/detectionLock'
2025-03-07 13:17:11 +08:00
/**
* @name
*/
//通讯校验
export const checkSimulate = (params: controlSource.ResControl) => {
return http.post(`/prepare/ytxCheckSimulate`,params)
}
//启动
export const startSimulateTest = (params: controlSource.ResControl) => {
2025-03-08 14:36:48 +08:00
return http.post(`prepare/startSimulateTest`,params,{loading:false})
2025-03-07 13:17:11 +08:00
}
//停止
export const closeSimulateTest = async (params: controlSource.ResControl) => {
const result = await http.post(`/prepare/closeSimulateTest`,params,{loading:false})
// 主动终止 → 释放本地持锁标记
useDetectionLockStore().clearHolder()
return result
2025-03-07 13:17:11 +08:00
}