diff --git a/cmdb-ui/src/modules/cmdb/components/ciTable/index.vue b/cmdb-ui/src/modules/cmdb/components/ciTable/index.vue index 39918eba..8f2538e8 100644 --- a/cmdb-ui/src/modules/cmdb/components/ciTable/index.vue +++ b/cmdb-ui/src/modules/cmdb/components/ciTable/index.vue @@ -107,8 +107,8 @@ :type="choice[1].icon.name" /> - - {{ choice[1].label || choice[0] }} + + {{ choice[1] ? choice[1].label || choice[0] : choice[0] }} diff --git a/cmdb-ui/src/modules/cmdb/views/ci/modules/CreateInstanceForm.vue b/cmdb-ui/src/modules/cmdb/views/ci/modules/CreateInstanceForm.vue index 816c9c9b..4d2603d2 100644 --- a/cmdb-ui/src/modules/cmdb/views/ci/modules/CreateInstanceForm.vue +++ b/cmdb-ui/src/modules/cmdb/views/ci/modules/CreateInstanceForm.vue @@ -128,8 +128,8 @@ v-if="choice[1] && choice[1].icon && choice[1].icon.name" :type="choice[1].icon.name" /> - - {{ choice[1].label || choice[0] }} + + {{ choice[1] ? choice[1].label || choice[0] : choice[0] }} diff --git a/cmdb-ui/src/modules/cmdb/views/ci/modules/ciDetailAttrContent.vue b/cmdb-ui/src/modules/cmdb/views/ci/modules/ciDetailAttrContent.vue index fcb073cc..29d7c7e3 100644 --- a/cmdb-ui/src/modules/cmdb/views/ci/modules/ciDetailAttrContent.vue +++ b/cmdb-ui/src/modules/cmdb/views/ci/modules/ciDetailAttrContent.vue @@ -134,7 +134,7 @@ :type="choice[1].icon.name" /> - {{ choice[1].label || choice[0] }} + {{ choice[1] ? choice[1].label || choice[0] : choice[0] }} diff --git a/cmdb-ui/src/modules/cmdb/views/ci/modules/createInstanceFormByGroup.vue b/cmdb-ui/src/modules/cmdb/views/ci/modules/createInstanceFormByGroup.vue index 621675f7..d1dee145 100644 --- a/cmdb-ui/src/modules/cmdb/views/ci/modules/createInstanceFormByGroup.vue +++ b/cmdb-ui/src/modules/cmdb/views/ci/modules/createInstanceFormByGroup.vue @@ -72,8 +72,8 @@ :type="choice[1].icon.name" /> - - {{ choice[1].label || choice[0] }} + + {{ choice[1] ? choice[1].label || choice[0] : choice[0] }} diff --git a/cmdb-ui/src/modules/cmdb/views/ci_types/preValueArea.vue b/cmdb-ui/src/modules/cmdb/views/ci_types/preValueArea.vue index ddd02f78..d1841631 100644 --- a/cmdb-ui/src/modules/cmdb/views/ci_types/preValueArea.vue +++ b/cmdb-ui/src/modules/cmdb/views/ci_types/preValueArea.vue @@ -450,8 +450,9 @@ export default { return [ item[0], { - ...item[1], - label: item?.[1]?.['label'] || item[0] + icon: item?.[1]?.['icon'] || {}, + style: item?.[1]?.['style'] || {}, + label: item?.[1]?.['label'] || item?.[0] || '' } ] })