mirror of https://github.com/veops/cmdb.git
fix delete ci type
This commit is contained in:
parent
99d11e11ce
commit
7bbc68bfd5
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue