Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sync-access.vue): 修复组件同步popover不弹出的问题 #1122

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,39 +101,16 @@
</bk-loading>
<div class="mt20">
<bk-pop-confirm
ref="resourcePopconfirm"
:is-show="confirmSyncShow"
trigger="click"
ext-cls="import-resource-popconfirm-wrapper"
v-if="componentList.length">
<template #content>
<div>
<div class="content-text"> {{ t('将组件配置同步到网关 bk-esb,创建网关的资源版本并发布到网关所有环境') }} </div>
<div class="btn-wrapper">
<bk-button
size="small"
theme="primary"
class="btn"
:disabled="confirmIsLoading"
@click="confirm">
{{ t('确认') }}
</bk-button>
<bk-button
size="small"
class="btn"
@click="confirmSyncShow = false">
{{ t('取消') }}
</bk-button>
</div>
</div>
</template>

:content="t('将组件配置同步到网关 bk-esb,创建网关的资源版本并发布到网关所有环境')"
v-if="componentList.length"
@confirm="checkReleaseData"
>
<bk-button
class="mr10"
theme="primary"
type="button"
:title="t('下一步')"
@click="confirmSyncShow = true"
:loading="confirmIsLoading">
{{ t('确认同步') }}
</bk-button>
Expand Down Expand Up @@ -171,7 +148,6 @@ const { t } = useI18n();
const router = useRouter();
const common = useCommon();

const resourcePopconfirm = ref();
const componentRef = ref();

const componentList = ref<any>([]);
Expand All @@ -181,9 +157,8 @@ const pagination = reactive({
limit: 10,
});

const confirmSyncShow = ref<boolean>(false);
const isLoading = ref<boolean>(false);
const pathUrl = ref<string>('');
const isLoading = ref(false);
const pathUrl = ref('');
const esb = ref<any>({});
const filterList = ref<any>({});
const allData = ref<any>([]);
Expand Down Expand Up @@ -276,11 +251,6 @@ const handlerAllChange = (payload: any) => {
curSelectList.value = [...payload];
};

const confirm = () => {
checkReleaseData();
confirmSyncShow.value = false;
};

const checkReleaseData = async () => {
try {
await syncReleaseData();
Expand Down Expand Up @@ -480,26 +450,9 @@ watch(

<style lang="scss">
.import-resource-popconfirm-wrapper.bk-popover {
padding: 16px;
.bk-pop-confirm {
.btn-wrapper {
padding-top: 10px;
position: relative;
height: 26px;
.btn {
min-width: 50px;
padding: 0 6px;
position: absolute;
&:nth-child(1) {
right: 100px;
}
&:nth-child(2) {
right: 35px;
}
}
}
.bk-pop-confirm-footer {
display: none !important;
margin-right: 48px;
}
}
}
Expand Down
Loading