Skip to content

Commit

Permalink
feat:同步并分表存储资源组权限数据 TencentBlueKing#10964
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 20375
  • Loading branch information
useryuyu committed Oct 12, 2024
1 parent 76da56a commit 2035dd7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
:disabled="isAllowSearch"
:scroll-loading="resourceScrollLoading"
@scroll-end="resourceScrollEnd"
:remote-method="getSearchResource"
>
<bk-option
v-for="(item, index) in resourceList"
Expand Down Expand Up @@ -90,6 +91,7 @@ const hasNextPage = ref(false);
const searchExpiredAt = ref([]);
const expiredAtList = ref([])
const searchValue = ref([]);
const searchResourceName=ref();
const filterTips = computed(() => {
return searchData.value.map(item => item.name).join(' / ');
});
Expand Down Expand Up @@ -206,12 +208,18 @@ async function getListResourceTypes () {
console.error(error);
}
}
function getSearchResource (val) {
searchResourceName.value = val;
resourceList.value =[]
getListResource();
}
async function getListResource () {
try {
resourceScrollLoading.value = true;
const query = {
page: resourcePage.value,
pageSize: 10,
...(searchResourceName.value && {resourceName: searchResourceName.value}),
};
const res = await http.getListResource(projectId.value, serviceValue.value, query);
hasNextPage.value = res.hasNext;
Expand Down

0 comments on commit 2035dd7

Please sign in to comment.