普测测试流程
This commit is contained in:
@@ -8,7 +8,7 @@ const MAPPING_PATH = SUPERVISION_BOOT + '/surveyPlan'
|
||||
/**
|
||||
* 根据id获取普测计划的详细数据
|
||||
*/
|
||||
export const getPlanById = (id: string) => {
|
||||
export const getPlanById = (id: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getById?id=' + id,
|
||||
method: 'GET'
|
||||
|
||||
29
src/api/supervision-boot/survey/test.ts
Normal file
29
src/api/supervision-boot/survey/test.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user