Skip to content

Commit

Permalink
fix(frontend): redis数据构造记录删除补充实例展示 TencentBlueKing#8219
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25052
  • Loading branch information
JustaCattt authored and jinquantianxia committed Dec 2, 2024
1 parent 1d8b785 commit 0565bff
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
3 changes: 3 additions & 0 deletions dbm-ui/frontend/src/services/model/ticket/details/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ export interface RedisStructureDeleteDetails extends DetailBase {
related_rollback_bill_id: number;
prod_cluster: string;
bk_cloud_id: number;
display_info: {
temp_cluster_proxy: string;
};
}[];
}

Expand Down
2 changes: 1 addition & 1 deletion dbm-ui/frontend/src/types/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@
related_rollback_bill_id,
cluster_id: item.prod_cluster_id,
bk_cloud_id,
display_info: {
temp_cluster_proxy: item.temp_cluster_proxy,
},
};
return obj;
});
Expand All @@ -417,6 +420,9 @@
related_rollback_bill_id: rowData.related_rollback_bill_id,
cluster_id: rowData.prod_cluster_id,
bk_cloud_id: rowData.bk_cloud_id,
display_info: {
temp_cluster_proxy: rowData.temp_cluster_proxy,
},
},
];
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@
-->

<template>
<DbOriginalTable
:columns="columns"
:data="ticketDetails.details.infos" />
<BkTable
:data="ticketDetails.details.infos"
show-overflow-tooltip>
<BkTableColumn :label="t('构造产物访问入口')">
<template #default="{ row }">
{{ row.display_info.temp_cluster_proxy }}
</template>
</BkTableColumn>
<BkTableColumn
field="prod_cluster"
:label="t('源集群')" />
<BkTableColumn
field="related_rollback_bill_id"
:label="t('关联单据')" />
</BkTable>
</template>

<script setup lang="tsx">
Expand All @@ -30,16 +42,4 @@
defineProps<Props>();

const { t } = useI18n();

const columns = [
{
label: t('目标集群'),
field: 'prod_cluster',
showOverflowTooltip: true,
},
{
label: t('关联单据'),
field: 'related_rollback_bill_id',
},
];
</script>

0 comments on commit 0565bff

Please sign in to comment.