add yarn.lock

This commit is contained in:
pycook 2019-12-23 11:27:47 +08:00
parent 60814cea2f
commit b2b355b0dd
4 changed files with 11505 additions and 3 deletions

1
.gitignore vendored
View File

@ -72,5 +72,4 @@ cmdb-ui/dist
cmdb-ui/npm-debug.log* cmdb-ui/npm-debug.log*
cmdb-ui/yarn-debug.log* cmdb-ui/yarn-debug.log*
cmdb-ui/yarn-error.log* cmdb-ui/yarn-error.log*
cmdb-ui/yarn.lock
cmdb-ui/package-lock.json cmdb-ui/package-lock.json

View File

@ -349,7 +349,7 @@ export default {
that.loadTip = '正在批量修改 ...' that.loadTip = '正在批量修改 ...'
const payload = {} const payload = {}
Object.keys(values).forEach(key => { Object.keys(values).forEach(key => {
if (values[key]) { if (values[key] || values[key] === 0) {
payload[key] = values[key] payload[key] = values[key]
} }
}) })

View File

@ -40,7 +40,7 @@ export default {
joinList: function (itemValue) { joinList: function (itemValue) {
if (typeof itemValue === 'object' && itemValue) { if (typeof itemValue === 'object' && itemValue) {
return itemValue.join(',') return itemValue.join(',')
} else if (itemValue !== null) { } else if (itemValue !== null && itemValue !== 'undefined') {
return itemValue + '' return itemValue + ''
} else { } else {
return '' return ''

11503
cmdb-ui/yarn.lock Normal file

File diff suppressed because it is too large Load Diff