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

Hotfix master #2577

Merged
merged 5 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"keywords": [],
"license": "ISC",
"dependencies": {
"@blueking/ip-selector": "0.0.1-beta.134",
"@blueking/ip-selector": "0.0.1-beta.136",
"@blueking/paas-login": "0.0.11",
"@blueking/user-selector": "1.0.7",
"@vue/babel-preset-jsx": "1.4.0",
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/src/domain/service/ticket-manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export default {
return data;
});
},
getBasicInfoList(params) {
return TicketSource.getBasicInfoList(params)
.then(({ data }) => data);
},
fetchListWithRelate(params) {
return TicketSource.getAll(params)
.then(({ data }) => {
Expand Down
6 changes: 6 additions & 0 deletions src/frontend/src/domain/source/ticket-manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class TicketManage extends ModuleBase {
params,
});
}
// 获取凭证列表
getBasicInfoList(params = {}) {
return Request.get(`${this.path}/basicInfo/list`, {
params,
});
}

// 新建凭证
create(params = {}) {
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/i18n/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,4 +596,5 @@ export default {
'复制 IPv6': 'Copy IPv6',
无该应用的访问权限: 'Do not have access permission for the current application.',
'所有 IP': 'All IP',
'异常 IP': 'Copy abnormal',
};
2 changes: 1 addition & 1 deletion src/frontend/src/views/account-manage/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
prop="categoryName"
show-overflow-tooltip
sortable="custom"
width="120" />
width="180" />
<bk-table-column
v-if="allRenderColumnMap.typeName"
key="typeName"
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/views/executive-history/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,6 @@ export default {
'复制 IPv6': 'Copy IPv6',
'没有可复制的 IPv4': 'IPv4 address not found',
'没有可复制的 IPv6': 'IPv6 address not found',
'IP 与 IPv6 至少需保留一个': 'At least one of IP or IPv6 must be selected',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@
-->

<template>
<div>
<bk-popover
ref="popoverRef"
placement="bottom-start"
theme="light"
trigger="click"
:width="450">
<div
id="stepDetailIpListSettingBtn"
class="select-btn">
<i class="bk-icon icon-cog-shape" />
</div>
<div
ref="settingRef"
slot="content"
class="list-column-setting">
<div class="select-body">
<div class="title">
Expand Down Expand Up @@ -99,14 +104,11 @@
</bk-button>
</div>
</div>
</div>
</bk-popover>
</template>
<script setup>
import Tippy from 'bk-magic-vue/lib/utils/tippy';
import {
computed,
onBeforeUnmount,
onMounted,
ref,
} from 'vue';

Expand All @@ -125,9 +127,7 @@
'close',
]);

let settingPopover;

const settingRef = ref();
const popoverRef = ref();
const tempAllShowColumn = ref([...props.value]);

const isIndeterminate = computed(() => tempAllShowColumn.value.length !== props.columnList.length);
Expand All @@ -149,31 +149,12 @@

const handleSubmitSetting = () => {
emits('change', [...tempAllShowColumn.value]);
settingPopover.hide();
popoverRef.value.hideHandler();
};

const handleHideSetting = () => {
settingPopover.hide();
popoverRef.value.hideHandler();
};

onMounted(() => {
settingPopover = Tippy(document.querySelector('#stepDetailIpListSettingBtn'), {
theme: 'light step-execution-history-ip-list-setting',
arrow: true,
interactive: true,
placement: 'bottom-start',
content: settingRef.value,
animation: 'slide-toggle',
trigger: 'click',
width: '450px',
});

onBeforeUnmount(() => {
settingPopover.destroy();
settingPopover.hide();
settingPopover = null;
});
});
</script>
<style lang="postcss" scoped>
.select-btn{
Expand Down Expand Up @@ -223,3 +204,4 @@
}
}
</style>

Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
* @desc 获取身份凭证列表数据
*/
fetchTicketList() {
return TicketManageService.fetchList()
return TicketManageService.getBasicInfoList()
.then((res) => {
this.fileFourceTicketList = Object.freeze(res.data);
});
Expand Down