模型表单优化

This commit is contained in:
2024-05-14 10:22:22 +08:00
parent b4aded5eb7
commit 4e9baf7aa1
4 changed files with 232 additions and 191 deletions

View File

@@ -35,6 +35,16 @@ export const getById = (id: string) => {
})
}
/**
* 删除模型
*/
export const deleteModel = (id: string) => {
return createAxios({
url: MAPPING_PATH + '/delete?id=' + id,
method: 'GET'
})
}
/**
* 根据id部署模型
*/
@@ -69,15 +79,3 @@ export const updateModel = (data: any) => {
})
}
/**
* 删除流程模型
*/
export const deleteModel = (data: any) => {
let ids = [data]
return createAxios({
url: MAPPING_PATH + '/delete',
method: 'POST',
data: ids
})
}