Skip to content

Commit

Permalink
fix(frontend): sqlserver sql导入执行查看 sql 文件内容时文件选中状态不对 TencentBlueKing#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Nov 8, 2024
1 parent b408794 commit bc62e22
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
<InfoItem
:label="t('目标集群:')"
style="flex: 1 0 100%">
<BkTable :data="targetClusterData">
<BkTable
:data="targetClusterData"
:pagination="pagination">
<BkTableColumn :label="t('集群')">
<template #default="{ data }: { data: TargerCluster }">
{{ ticketDetails.details.clusters[data.id].immute_domain }}
Expand Down Expand Up @@ -142,6 +144,8 @@

const { t } = useI18n();

const pagination = { count: 11, limit: 10, current: 1 };

const selectFileName = ref('');
const currentExecuteObject = ref<Props['ticketDetails']['details']['execute_objects'][number]>();
const isShowSqlfile = ref(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
<span>{{ t('变更的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in executeObject.dbnames"
v-for="item in executeObject.dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="executeObject.dbnames.length > 3">...</BkTag>
<template v-if="executeObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in executeObject.ignore_dbnames"
v-for="item in executeObject.ignore_dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="executeObject.dbnames.length > 3">...</BkTag>
<template v-if="executeObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down Expand Up @@ -101,26 +103,15 @@
},
);
watch(
() => isShow,
() => {
if (isShow.value) {
localSelectFileName.value = props.selectFileName;
}
},
);
watch(isShow, () => {
if (isShow.value) {
localSelectFileName.value = props.selectFileName;
}
});
watch(
() => props.wholeFileList,
() => {
if (props.wholeFileList.length > 0) {
runBatchFetchFile();
}
},
{
immediate: true,
},
);
if (props.wholeFileList.length > 0) {
runBatchFetchFile();
}
const handleClose = () => {
isShow.value = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,21 @@
<span>{{ t('变更的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentExecuteObject.dbnames"
v-for="item in currentExecuteObject.dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="currentExecuteObject.dbnames.length > 3">...</BkTag>
<template v-if="currentExecuteObject.dbnames.length < 1">--</template>
</span>
<span class="ml-25">{{ t('忽略的 DB:') }}</span>
<span class="ml-4">
<BkTag
v-for="item in currentExecuteObject.ignore_dbnames"
v-for="item in currentExecuteObject.ignore_dbnames.slice(0, 3)"
:key="item">
{{ item }}
</BkTag>
<BkTag v-if="currentExecuteObject.ignore_dbnames.length > 3">...</BkTag>
<template v-if="currentExecuteObject.ignore_dbnames.length < 1">--</template>
</span>
</span>
Expand Down

0 comments on commit bc62e22

Please sign in to comment.