Remove Chinese comments

This commit is contained in:
pycook
2020-02-21 23:14:26 +08:00
parent 3ac50e7cd8
commit 3680a462f5
25 changed files with 63 additions and 1396 deletions

View File

@@ -1,7 +1,7 @@
import { axios } from '@/utils/request'
/**
* 获取 所有的 ci_types
* get all CI Type
* @param parameter
* @returns {AxiosPromise}
*/
@@ -14,7 +14,7 @@ export function getCITypes (parameter) {
}
/**
* 获取 某个 ci_types
* get a CI Type
* @param CITypeName
* @param parameter
* @returns {AxiosPromise}
@@ -28,7 +28,7 @@ export function getCIType (CITypeName, parameter) {
}
/**
* 创建 ci_type
* Create CI Type
* @param data
* @returns {AxiosPromise}
*/
@@ -41,7 +41,7 @@ export function createCIType (data) {
}
/**
* 更新 ci_type
* Update CI Type
* @param CITypeId
* @param data
* @returns {AxiosPromise}
@@ -55,7 +55,7 @@ export function updateCIType (CITypeId, data) {
}
/**
* 删除 ci_type
* Delete CI Type
* @param CITypeId
* @returns {AxiosPromise}
*/
@@ -67,7 +67,7 @@ export function deleteCIType (CITypeId) {
}
/**
* 获取 某个 ci_type 的分组
* Gets a grouping of a CI Type
* @param CITypeId
* @param data
* @returns {AxiosPromise}
@@ -81,7 +81,7 @@ export function getCITypeGroupById (CITypeId, data) {
}
/**
* 保存 某个 ci_type 的分组
* Save a group of CI Type
* @param CITypeId
* @param data
* @returns {AxiosPromise}
@@ -95,7 +95,7 @@ export function createCITypeGroupById (CITypeId, data) {
}
/**
* 修改 某个 ci_type 的分组
* Changes the grouping of a CI Type
* @param groupId
* @param data
* @returns {AxiosPromise}
@@ -109,7 +109,7 @@ export function updateCITypeGroupById (groupId, data) {
}
/**
* 删除 某个 ci_type 的分组
* Removes a group for a CI Type
* @param groupId
* @param data
* @returns {AxiosPromise}

View File

@@ -30,7 +30,7 @@ export function getCITypeAttributesById (CITypeId, parameter) {
}
/**
* update attribute
* Update attribute
* @param attrId
* @param data
* @returns {AxiosPromise}
@@ -44,7 +44,7 @@ export function updateAttributeById (attrId, data) {
}
/**
* add attribute
* Add attribute
* @param data
* @returns {AxiosPromise}
*/
@@ -57,7 +57,7 @@ export function createAttribute (data) {
}
/**
* search attributes or get all attributes
* Search attributes or get all attributes
* @param data
* @returns {AxiosPromise}
*/
@@ -70,7 +70,7 @@ export function searchAttributes (params) {
}
/**
* delete attribute
* Delete attribute
* @param attrId
* @returns {AxiosPromise}
*/
@@ -82,7 +82,7 @@ export function deleteAttributesById (attrId) {
}
/**
* bind attribute
* Bind attribute
* @param CITypeId
* @param data
* @returns {AxiosPromise}
@@ -96,7 +96,7 @@ export function createCITypeAttributes (CITypeId, data) {
}
/**
* update CI Type attribute
* Update CI Type attribute
* @param CITypeId
* @param data
* @returns {AxiosPromise}
@@ -110,7 +110,7 @@ export function updateCITypeAttributesById (CITypeId, data) {
}
/**
* delete CI Type attribute
* Delete CI Type attribute
* @param CITypeId
* @param data
* @returns {AxiosPromise}

View File

@@ -42,26 +42,25 @@ export function writeExcel (columns, name) {
return s
}
// 判断一个数组元素是否都为空的
// Determines whether an array element is empty
export function any (ArrayList) {
let flag = false
for (let i = 0; i < ArrayList.length; i++) {
if (ArrayList[i]) {
ArrayList.forEach(item => {
if (item) {
flag = true
return flag
}
}
})
return false
}
// 去除一个二维数组 底下为空的部分
export function filterNull (twoDimArray) {
console.log(twoDimArray)
const newArray = []
for (let i = 0; i < twoDimArray.length; i++) {
if (any(twoDimArray[i])) {
newArray.push(twoDimArray[i])
twoDimArray.forEach(item => {
if (any(item)) {
newArray.push(item)
}
}
})
return newArray
}

View File

@@ -32,7 +32,7 @@ export function deleteCI (ciId) {
})
}
// 获取单个ci实例
// Get a single CI instance
export function getCIById (ciId) {
return axios({
url: urlPrefix + `/ci/${ciId}`,