ADD:导入检测计划检测结果;
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type {Plan} from './interface'
|
||||
import type { Plan } from './interface'
|
||||
import http from '@/api'
|
||||
import type {ErrorSystem} from '../device/interface/error'
|
||||
import type {Device} from '../device/interface/device'
|
||||
import type { ErrorSystem } from '../device/interface/error'
|
||||
import type { Device } from '../device/interface/device'
|
||||
|
||||
/**
|
||||
* @name 检测计划管理模块
|
||||
@@ -130,7 +130,7 @@ export const exportSubPlan = (params: Plan.ResPlan) => {
|
||||
}
|
||||
|
||||
// 导入子检测计划
|
||||
export const importSubPlan = (params: Device.ReqPqDevParams) => {
|
||||
export const importSubPlan = (params: Plan.ResPlan) => {
|
||||
return http.upload(`/adPlan/importSubPlan`, params)
|
||||
}
|
||||
|
||||
@@ -138,4 +138,9 @@ export const importSubPlan = (params: Device.ReqPqDevParams) => {
|
||||
// 导出计划检测结果数据
|
||||
export const exportPlanCheckData = (params: Plan.ResPlan) => {
|
||||
return http.download(`/adPlan/exportPlanCheckData?planId=${params.id}`)
|
||||
}
|
||||
|
||||
// 导入子检测计划检测结果数据
|
||||
export const importSubPlanCheckData = (params: Plan.ResPlan) => {
|
||||
return http.upload(`/adPlan/importSubPlanCheckData`, params)
|
||||
}
|
||||
Reference in New Issue
Block a user