Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Support show section table header

Tianzhou Chen0f250f5adc70
diff --git a/frontend/src/bbkit/BBTable/BBTable.vue b/frontend/src/bbkit/BBTable/BBTable.vue
index 1eed797017..b6c3b5cc2d 100644
--- a/frontend/src/bbkit/BBTable/BBTable.vue
+++ b/frontend/src/bbkit/BBTable/BBTable.vue
@@ -4,7 +4,7 @@
class="min-w-full divide-y divide-block-border"
:class="backgroundColor"
>
- <thead v-if="showHeader" class="bg-gray-50">
+ <thead v-if="showHeader && !sectionDataSource" class="bg-gray-50">
<tr>
<th
v-for="(column, index) in columnList"
@@ -29,6 +29,17 @@
{{ section.title }}
</th>
<template v-if="section.list.length > 0">
+ <tr v-if="showHeader" class="bg-gray-50">
+ <th
+ v-for="(column, index) in columnList"
+ :key="index"
+ scope="col"
+ class="py-3 text-left text-xs font-medium text-gray-500 capitalize tracking-wider"
+ :class="index == 0 ? 'pl-4' : 'pl-2'"
+ >
+ {{ column.title }}
+ </th>
+ </tr>
<tr
v-for="(item, j) in section.list"
:key="j"
diff --git a/frontend/src/components/TaskTable.vue b/frontend/src/components/TaskTable.vue
index 5c915b1b4f..f3d852d5e6 100644
--- a/frontend/src/components/TaskTable.vue
+++ b/frontend/src/components/TaskTable.vue
@@ -2,7 +2,7 @@
<BBTable
:columnList="state.columnList"
:sectionDataSource="taskSectionList"
- :showHeader="false"
+ :showHeader="true"
@click-row="clickTask"
>
<template v-slot:body="{ rowData: task }">