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

41 lines
792 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
})
}
/**
*
*/
export const initiateWarningLeaflet = (id: string) => {
return createAxios({
url: MAPPING_PATH + '/initiateWarningLeaflet?id=' + id,
method: 'GET'
})
}
2024-06-04 10:51:54 +08:00