微调
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { pa } from 'element-plus/es/locale/index.mjs'
|
||||
import http from '@/api'
|
||||
import { CheckData } from '@/api/check/interface'
|
||||
import {CheckData} from '@/api/check/interface'
|
||||
|
||||
export const getBigTestItem = (params: {
|
||||
reCheckType: number
|
||||
@@ -8,7 +7,7 @@ export const getBigTestItem = (params: {
|
||||
devIds: string[]
|
||||
patternId: string
|
||||
}) => {
|
||||
return http.post(`/adPlan/getBigTestItem`, params, { loading: false })
|
||||
return http.post(`/adPlan/getBigTestItem`, params, {loading: false})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,7 +20,7 @@ export const getFormData = (params: {
|
||||
chnNum: string
|
||||
scriptType: string | null
|
||||
}) => {
|
||||
return http.post('/result/formContent/', params, { loading: false })
|
||||
return http.post('/result/formContent/', params, {loading: false})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,7 +34,7 @@ export const getTreeData = (params: {
|
||||
scriptType?: string | null
|
||||
code?: string
|
||||
}) => {
|
||||
return http.post<CheckData.TreeItem[]>('/result/treeData/', params, { loading: false })
|
||||
return http.post<CheckData.TreeItem[]>('/result/treeData/', params, {loading: false})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +49,7 @@ export const getTableData = (params: {
|
||||
code: string
|
||||
index: number
|
||||
}) => {
|
||||
return http.post('/result/resultData/', params, { loading: false })
|
||||
return http.post('/result/resultData/', params, {loading: false})
|
||||
}
|
||||
|
||||
export const exportRawData = (params: {
|
||||
@@ -61,7 +60,7 @@ export const exportRawData = (params: {
|
||||
code: string
|
||||
index: number
|
||||
}) => {
|
||||
return http.download('/result/exportRawData', params, { loading: false })
|
||||
return http.download('/result/exportRawData', params, {loading: false})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,7 +74,7 @@ export const reCalculate = (params: {
|
||||
deviceId: string
|
||||
code: string
|
||||
}) => {
|
||||
return http.post('/result/reCalculate', params, { loading: true })
|
||||
return http.post('/result/reCalculate', params, {loading: true})
|
||||
}
|
||||
/**
|
||||
* 获取数据获取基本信息
|
||||
@@ -85,10 +84,10 @@ export const getContrastFormContent = (params: {
|
||||
planId: string
|
||||
scriptType: string
|
||||
deviceId: string
|
||||
chnNum: string | number
|
||||
num: number | string | null
|
||||
chnNum: string
|
||||
num: number | null
|
||||
}) => {
|
||||
return http.post('/result/getContrastFormContent', params, { loading: false })
|
||||
return http.post('/result/getContrastFormContent', params, {loading: false})
|
||||
}
|
||||
/**
|
||||
* 获取检测结果
|
||||
@@ -101,7 +100,7 @@ export const getContrastResult = (params: {
|
||||
chnNum: string | number
|
||||
num: number | string | null
|
||||
}) => {
|
||||
return http.post('/result/getContrastResult', params, { loading: true })
|
||||
return http.post('/result/getContrastResult', params, {loading: true})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -115,7 +114,7 @@ export const changeErrorSystem = (params: {
|
||||
deviceId: string
|
||||
code: string
|
||||
}) => {
|
||||
return http.post('/result/changeErrorSystem', params, { loading: true })
|
||||
return http.post('/result/changeErrorSystem', params, {loading: true})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,5 +122,5 @@ export const changeErrorSystem = (params: {
|
||||
* @param code
|
||||
*/
|
||||
export const deleteTempTable = (code: string) => {
|
||||
return http.get(`/result/deleteTempTable?code=${code}`, null, { loading: false })
|
||||
return http.get(`/result/deleteTempTable?code=${code}`, null, {loading: false})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user