-
-
{t('所属业务')} : {data.forBizDisplay}
-
-
{t('所属DB')} : {data.resourceTypeDisplay}
-
- {
- data.labels && Array.isArray(data.labels) && (
- data.labels.map(item => (
-
- {item.name}
+
+ {{
+ default: () => (
+
+
+
+ {t('所属业务')} : {data.forBizDisplay}
+
+
+ {t('所属DB')} : {data.resourceTypeDisplay}
+
+ {
+ data.labels && Array.isArray(data.labels) && (
+ data.labels.map(item => ({item.name}))
+ )}
+
+ {
+ props.type !== ResourcePool.public && (
+
handleEdit(data)}
+ />
+ )
+ }
+
+ ),
+ content: () => (
+
+
{t('所属业务')}:
+
+
+ {data.forBizDisplay}
- ))
- )}
-
-
handleEdit(data)}
- />
-
+
+
{t('所属DB')}
+
+
+ {data.resourceTypeDisplay}
+
+
+ {
+ !!data.labels.length && (
+ <>
+
{t('资源标签')}
+
+ {
+ data.labels.map(item => ({item.name}))
+ }
+
+ >
+ )
+ }
+
+
+ )
+ }}
+
),
},
{
@@ -323,63 +395,82 @@
width: 300,
fixed: 'right',
render: ({ data }: { data: DbResourceModel }) => (
- props.type === ResourcePool.public ? (
-