This commit is contained in:
sjl
2024-12-13 16:35:27 +08:00
parent 8bd5351d29
commit 0db5fa650f
16 changed files with 480 additions and 339 deletions

View File

@@ -15,12 +15,12 @@ export const getPlanList = (params: Plan.ReqPlanParams) => {
}
// 新增检测计划
export const addPlan = (params: Plan.ResPlan) => {
export const addPlan = (params:any) => {
return http.post(`/adPlan/add`, params)
}
// 编辑检测计划
export const updatePlan = (params: Plan.ResPlan) => {
export const updatePlan = (params: any) => {
return http.post(`/adPlan/update`, params)
}
@@ -51,10 +51,15 @@ export const getUnboundPqDevList = (params: Plan.ReqPlan) => {
//根据检测计划id查询出所有已绑定的设备
export const getBoundPqDevList = (params: any) => {
return http.post(`/pqDev/listBoundByPlanId`,params)
return http.post(`/pqDev/listByPlanId`,params)
}
//检测计划绑定设备
export const BindPqDevList = (params: any) => {
return http.post(`/adPlan/bindDev`,params)
return http.post(`/pqDev/bindDev`,params)
}
// 按照模式查询检测计划(用于首页展示)
export const getPlanListByPattern = (params:Plan.ReqPlan) => {
return http.get(`/adPlan/listByPattern?pattern=${params.pattern}`)
}