微调报告
This commit is contained in:
@@ -14,6 +14,14 @@ export namespace Device {
|
|||||||
pattern:string;
|
pattern:string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 被检设备表格分页查询参数
|
||||||
|
*/
|
||||||
|
export interface ReqDevReportParams extends ReqPage{
|
||||||
|
planId?:string; // 计划id
|
||||||
|
devId?:string; // 装置id
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被检设备新增、修改、根据id查询返回的对象
|
* 被检设备新增、修改、根据id查询返回的对象
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,17 +2,18 @@ import type { Plan } from './interface'
|
|||||||
import http from '@/api'
|
import http from '@/api'
|
||||||
import type { ErrorSystem } from '../device/interface/error'
|
import type { ErrorSystem } from '../device/interface/error'
|
||||||
import type { Device } from '../device/interface/device'
|
import type { Device } from '../device/interface/device'
|
||||||
|
import { ReqDevReportParams } from '@/api/device/interface/device'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name 检测计划管理模块
|
* @name 检测计划管理模块
|
||||||
*/
|
*/
|
||||||
// 获取检测计划列表
|
// 获取检测计划列表
|
||||||
export const getPlanList = (params: Plan.ReqPlanParams) => {
|
export const getPlanList = (params: Plan.ReqPlanParams) => {
|
||||||
return http.post(`/adPlan/list`, params)
|
return http.post(`/adPlan/list`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增检测计划
|
// 新增检测计划
|
||||||
export const addPlan = (params:any) => {
|
export const addPlan = (params: any) => {
|
||||||
return http.post(`/adPlan/add`, params)
|
return http.post(`/adPlan/add`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ export const getUnboundPqDevList = (params: Plan.ReqPlan) => {
|
|||||||
|
|
||||||
//根据检测计划id查询出所有已绑定的设备
|
//根据检测计划id查询出所有已绑定的设备
|
||||||
export const getBoundPqDevList = (params: any) => {
|
export const getBoundPqDevList = (params: any) => {
|
||||||
return http.post(`/pqDev/listByPlanId`,params)
|
return http.post(`/pqDev/listByPlanId`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//检测计划绑定设备
|
//检测计划绑定设备
|
||||||
@@ -57,12 +58,12 @@ export const getBoundPqDevList = (params: any) => {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// 按照模式查询检测计划(用于首页展示)
|
// 按照模式查询检测计划(用于首页展示)
|
||||||
export const getPlanListByPattern = (params:Plan.ReqPlan) => {
|
export const getPlanListByPattern = (params: Plan.ReqPlan) => {
|
||||||
return http.get(`/adPlan/listByPattern?pattern=${params.pattern}`)
|
return http.get(`/adPlan/listByPattern?pattern=${params.pattern}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出检测计划
|
// 导出检测计划
|
||||||
export const exportPlan=(params: Device.ReqPqDevParams)=>{
|
export const exportPlan = (params: Device.ReqPqDevParams) => {
|
||||||
return http.download(`/adPlan/export`, params)
|
return http.download(`/adPlan/export`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,11 +72,16 @@ export const downloadTemplate = () => {
|
|||||||
return http.download(`/adPlan/downloadTemplate`)
|
return http.download(`/adPlan/downloadTemplate`)
|
||||||
}
|
}
|
||||||
// 导入检测计划
|
// 导入检测计划
|
||||||
export const importPlan=(params: Device.ReqPqDevParams)=>{
|
export const importPlan = (params: Device.ReqPqDevParams) => {
|
||||||
return http.upload(`/adPlan/import`, params)
|
return http.upload(`/adPlan/import`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//导出被检设备
|
// 装置检测报告生成
|
||||||
export const downloadDevData=(params: Device.ReqPqDevParams)=>{
|
export const generateDevReport = (params: Device.ReqDevReportParams) => {
|
||||||
return http.download(`/report/generateReport`, params)
|
return http.post(`/report/generateReport`, params)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 装置检测报告下载
|
||||||
|
export const downloadDevData = (params: Device.ReqDevReportParams) => {
|
||||||
|
return http.download(`/report/downloadReport`, params)
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user