fix selectable columns & token refresh
This commit is contained in:
parent
361a1c9519
commit
bb6b114af7
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
*
|
||||
</p>
|
||||
<p
|
||||
v-for="col in activeTable?.columns"
|
||||
v-for="col in columns"
|
||||
:key="col.column"
|
||||
class="rounded-md shadow-sm relative block w-fit px-3 py-2 border border-gray-300 text-gray-900 rounded-b-md sm:text-sm"
|
||||
:class="value.includes(col.column) ? 'border-gray-600 bg-gray-200' : ''"
|
||||
|
@ -49,6 +49,9 @@ export default defineComponent({
|
|||
activeTable() {
|
||||
return this.tableMetas.find((tm) => tm.tableName == this.table);
|
||||
},
|
||||
columns() {
|
||||
return this.activeTable?.columns?.filter((c) => !this.foreignColumns?.includes(c.column));
|
||||
},
|
||||
foreignColumns() {
|
||||
return this.activeTable?.relations.map((r) => r.column);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue