Skip to content

Commit

Permalink
perf(frontend): 单据列表优化 TencentBlueKing#6975
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 19147
  • Loading branch information
hLinx committed Sep 23, 2024
1 parent 7834eed commit 41172f2
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@
isSplited.value = false;
}
isSplited.value = renderLeftWidth.value < getMaxWidth();

console.log('isSplited = ', isSplited.value);
});
};

Expand Down Expand Up @@ -132,7 +130,6 @@
isOpen: readonly(isOpen),
isSplited,
splitScreen() {
console.log('splitScreen');
isShowTrigger.value = true;
if (isOpen.value) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
:max-height="tableMaxHeight"
:pagination="pagination"
remote-pagination
show-overflow-tooltip
:show-overflow-tooltip="{
popoverOption: {
maxWidth: 500,
},
}"
@page-limit-change="handlePageLimitChange"
@page-value-change="handlePageValueChange">
<BkTableColumn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default (options?: { onSuccess?: (data: TicketModel<unknown>[]) => void }
}),
{
manual: true,
debounceInterval: 100,
onBefore() {
isLoading.value = true;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
:max-height="tableMaxHeight"
:pagination="pagination"
remote-pagination
show-overflow-tooltip
:show-overflow-tooltip="{
popoverOption: {
maxWidth: 500,
},
}"
@page-limit-change="handlePageLimitChange"
@page-value-change="handlePageValueChange">
<BkTableColumn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default (options?: { onSuccess?: (data: TicketModel<unknown>[]) => void }
},
{
manual: true,
debounceInterval: 100,
onSuccess(data) {
dataList.value.forEach((ticketData) => {
if (data[ticketData.id]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
:max-height="tableMaxHeight"
:pagination="pagination"
remote-pagination
show-overflow-tooltip
:show-overflow-tooltip="{
popoverOption: {
maxWidth: 500,
},
}"
@page-limit-change="handlePageLimitChange"
@page-value-change="handlePageValueChange">
<BkTableColumn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default (options?: { onSuccess?: (data: TicketModel<unknown>[]) => void }
}),
{
manual: true,
debounceInterval: 100,
onBefore() {
isLoading.value = true;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
:max-height="tableMaxHeight"
:pagination="pagination"
remote-pagination
show-overflow-tooltip
:show-overflow-tooltip="{
popoverOption: {
maxWidth: 500,
},
}"
@page-limit-change="handlePageLimitChange"
@page-value-change="handlePageValueChange">
<BkTableColumn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default (options?: { onSuccess?: (data: TicketModel<unknown>[]) => void }
},
{
manual: true,
debounceInterval: 100,
onSuccess(data) {
dataList.value.forEach((ticketData) => {
if (data[ticketData.id]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
const isShowMore = computed(() => executeSqlFileList.value.length > 6);

const renderSqlFileList = computed(() => {
console.log('props.ticketData = ', props.ticketData);
if (isShowMore.value && !isShowCollapse.value) {
return executeSqlFileList.value.slice(0, 6);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
const isShowMore = computed(() => executeSqlFileList.value.length > 6);

const renderSqlFileList = computed(() => {
console.log('props.ticketData = ', props.ticketData);
if (isShowMore.value && !isShowCollapse.value) {
return executeSqlFileList.value.slice(0, 6);
}
Expand Down

0 comments on commit 41172f2

Please sign in to comment.