mirror of
https://github.com/veops/cmdb.git
synced 2025-10-25 05:09:20 +08:00
fix delete ci type
This commit is contained in:
ui/src/api/cmdb
@@ -54,10 +54,22 @@ export function updateCIType (CITypeId, data) {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除 ci_type
|
||||
* @param CITypeId
|
||||
* @returns {AxiosPromise}
|
||||
*/
|
||||
export function deleteCIType (CITypeId) {
|
||||
return axios({
|
||||
url: `/v0.1/ci_types/${CITypeId}`,
|
||||
method: 'DELETE'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 某个 ci_type 的分组
|
||||
* @param CITypeId
|
||||
* @param parameter
|
||||
* @param data
|
||||
* @returns {AxiosPromise}
|
||||
*/
|
||||
export function getCITypeGroupById (CITypeId, data) {
|
||||
|
||||
@@ -61,11 +61,11 @@ export function createAttribute (data) {
|
||||
* @param data
|
||||
* @returns {AxiosPromise}
|
||||
*/
|
||||
export function searchAttributes (data) {
|
||||
export function searchAttributes (params) {
|
||||
return axios({
|
||||
url: `/v0.1/attributes/s`,
|
||||
method: 'get',
|
||||
params: data
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user