Skip to content

Commit

Permalink
fix(frontend): sql执行单据详情查看 sql 文件内容时 db 显示问题 #8068
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Nov 20, 2024
1 parent 73961f9 commit 8badfdd
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 9 deletions.
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 @@ -17,7 +17,13 @@
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="executeObject.dbnames.length > 3">...</BkTag>
<BkTag
v-if="executeObject.dbnames.length > 3"
v-bk-tooltips="{
content: executeObject.dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="executeObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
Expand All @@ -27,7 +33,13 @@
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="executeObject.ignore_dbnames.length > 3">...</BkTag>
<BkTag
v-if="executeObject.ignore_dbnames.length > 3"
v-bk-tooltips="{
content: executeObject.ignore_dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="executeObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="currentExecuteObject.dbnames.length > 3">...</BkTag>
<BkTag
v-if="currentExecuteObject.dbnames.length > 3"
v-bk-tooltips="{
content: currentExecuteObject.dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentExecuteObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
Expand All @@ -105,7 +111,13 @@
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="currentExecuteObject.ignore_dbnames.length > 3">...</BkTag>
<BkTag
v-if="currentExecuteObject.ignore_dbnames.length > 3"
v-bk-tooltips="{
content: currentExecuteObject.ignore_dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentExecuteObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,33 @@
<span>{{ t('变更的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentFileExecuteObject.dbnames"
v-for="item in currentFileExecuteObject.dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag
v-if="currentFileExecuteObject.dbnames.length > 3"
v-bk-tooltips="{
content: currentFileExecuteObject.dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentFileExecuteObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentFileExecuteObject.ignore_dbnames"
v-for="item in currentFileExecuteObject.ignore_dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag
v-if="currentFileExecuteObject.ignore_dbnames.length > 3"
v-bk-tooltips="{
content: currentFileExecuteObject.ignore_dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentFileExecuteObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,33 @@
<span>{{ t('变更的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentFileExecuteObject.dbnames"
v-for="item in currentFileExecuteObject.dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag
v-if="currentFileExecuteObject.dbnames.length > 3"
v-bk-tooltips="{
content: currentFileExecuteObject.dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentFileExecuteObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentFileExecuteObject.ignore_dbnames"
v-for="item in currentFileExecuteObject.ignore_dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag
v-if="currentFileExecuteObject.ignore_dbnames.length > 3"
v-bk-tooltips="{
content: currentFileExecuteObject.ignore_dbnames.join('\n'),
}">
...
</BkTag>
<template v-if="currentFileExecuteObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down

0 comments on commit 8badfdd

Please sign in to comment.