Files
admin-sjzx/src/api/supervision-boot/survey/test.ts

53 lines
1010 B
TypeScript
Raw Normal View History

2024-06-04 10:51:54 +08:00
import createAxios from '@/utils/request'
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
const MAPPING_PATH = SUPERVISION_BOOT + '/surveyTest'
/**
* id获取普测计划的详细数据
*/
export const getTestById = (id: any) => {
return createAxios({
url: MAPPING_PATH + '/getById?id=' + id,
method: 'GET'
})
}
/**
*
*/
export const addSurveyTest = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/add',
method: 'POST',
data: data
})
}
2024-06-04 15:53:28 +08:00
/**
*
*/
export const updateSurveyTest = (data: any) => {
return createAxios({
url: MAPPING_PATH + '/update',
method: 'POST',
data: data
})
}
/**
*
*/
2024-06-20 16:54:19 +08:00
export const initiateWarningLeaflet = (data:any) => {
return createAxios({
2024-06-20 16:54:19 +08:00
url: MAPPING_PATH + '/initiateWarningLeaflet',
method: 'POST',
data
})
}
2024-06-04 10:51:54 +08:00