Compare commits

...

2 Commits

Author SHA1 Message Date
fit2bot
b542bdce85 feat: Update v3.10.9 2024-04-23 19:39:32 +08:00
Bai
1a27b2489c perf: 优化 Web 资产详情时根据 autofill 类型返回对应的 spec_info 信息 2024-04-23 13:08:24 +08:00
5 changed files with 1835 additions and 1823 deletions

1
GITSHA Normal file
View File

@@ -0,0 +1 @@
1a27b2489c119aa87da0ae95f5b4c2eadc6a0a2e

View File

@@ -106,16 +106,28 @@ export default {
if (Array.isArray(value)) {
if (typeof value[0] === 'object') {
value.forEach(item => {
const fieldName = `${name}.${item.name}`
if (excludes.includes(fieldName)) {
return
}
this.items.push({
key: item.label,
value: item.value
const firstValue = value[0]
if (firstValue.hasOwnProperty('name')) {
value.forEach(item => {
const fieldName = `${name}.${item.name}`
if (excludes.includes(fieldName)) {
return
}
this.items.push({
key: item.label,
value: item.value
})
})
})
} else {
value.forEach((item, index) => {
const v = Object.entries(item).map(([key, value]) => `${key}:${value}`).join(', ')
const data = { value: v }
if (index === 0) {
data['key'] = label
}
this.items.push(data)
})
}
} else if (typeof value[0] === 'string') {
value.forEach((item, index) => {
let data = {}

View File

@@ -81,7 +81,7 @@ export default {
},
{
label: this.$t('common.Version'),
value: 'version-dev'
value: 'v3.10.9'
},
{
label: this.$t('common.PermissionCompany'),

View File

@@ -221,8 +221,7 @@ export default {
url: `/api/v1/assets/assets/${this.object.id}/`,
object: this.object,
nested: 'spec_info',
showUndefine: true,
excludes: ['script']
showUndefine: true
},
customInfoConfig: {
title: this.$t('common.CustomInfo'),

3622
yarn.lock

File diff suppressed because it is too large Load Diff