完成对接前测表单创建及列表接口
This commit is contained in:
@@ -565,4 +565,16 @@ export async function removefour(projectId: string, stepId: string ,params: any)
|
||||
return api.post(`/shot-replications/projects/${projectId}/steps/${stepId}/generate-video`, params);
|
||||
|
||||
}
|
||||
|
||||
// 获取地区信息
|
||||
export interface GetAreaParams {
|
||||
level?: string;
|
||||
parent_code?: string;
|
||||
}
|
||||
export async function getArea(params?: GetAreaParams): Promise<any> {
|
||||
const query = new URLSearchParams();
|
||||
if (params?.level) query.set('level', params.level);
|
||||
if (params?.parent_code) query.set('parent_code', params.parent_code);
|
||||
return api.get(`/pre-test-template/getArea?${query.toString()}`);
|
||||
}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user