fix delete ci type

This commit is contained in:
pycook 2019-10-24 11:23:48 +08:00
parent 99d11e11ce
commit 7bbc68bfd5
2 changed files with 15 additions and 3 deletions

View File

@ -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 的分组 * 获取 某个 ci_type 的分组
* @param CITypeId * @param CITypeId
* @param parameter * @param data
* @returns {AxiosPromise} * @returns {AxiosPromise}
*/ */
export function getCITypeGroupById (CITypeId, data) { export function getCITypeGroupById (CITypeId, data) {

View File

@ -61,11 +61,11 @@ export function createAttribute (data) {
* @param data * @param data
* @returns {AxiosPromise} * @returns {AxiosPromise}
*/ */
export function searchAttributes (data) { export function searchAttributes (params) {
return axios({ return axios({
url: `/v0.1/attributes/s`, url: `/v0.1/attributes/s`,
method: 'get', method: 'get',
params: data params: params
}) })
} }