2020-06-10 19:29:10 +02:00
|
|
|
<template>
|
2020-08-10 16:06:11 +02:00
|
|
|
<div
|
|
|
|
ref="tableWrapper"
|
|
|
|
class="vscroll"
|
|
|
|
:style="{'height': resultsSize+'px'}"
|
|
|
|
>
|
2020-07-10 19:51:36 +02:00
|
|
|
<TableContext
|
|
|
|
v-if="isContext"
|
|
|
|
:context-event="contextEvent"
|
2020-07-22 18:30:52 +02:00
|
|
|
:selected-rows="selectedRows"
|
2020-08-18 18:03:59 +02:00
|
|
|
@delete-selected="deleteSelected"
|
2020-08-12 18:11:48 +02:00
|
|
|
@close-context="isContext = false"
|
2020-07-10 19:51:36 +02:00
|
|
|
/>
|
2020-09-08 11:47:01 +02:00
|
|
|
<ul v-if="resultsWithRows.length > 1" class="tab tab-block result-tabs">
|
2020-09-06 08:41:57 +02:00
|
|
|
<li
|
2020-09-08 11:47:01 +02:00
|
|
|
v-for="(result, index) in resultsWithRows"
|
2020-09-06 08:41:57 +02:00
|
|
|
:key="index"
|
|
|
|
class="tab-item"
|
|
|
|
:class="{'active': resultsetIndex === index}"
|
|
|
|
@click="selectResultset(index)"
|
|
|
|
>
|
2020-10-09 22:44:05 +02:00
|
|
|
<a>{{ result.fields ? result.fields[0].table : '' }} ({{ result.rows.length }})</a>
|
2020-09-06 08:41:57 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
2020-08-10 16:06:11 +02:00
|
|
|
<div ref="table" class="table table-hover">
|
|
|
|
<div class="thead">
|
|
|
|
<div class="tr">
|
|
|
|
<div
|
2020-09-11 18:01:07 +02:00
|
|
|
v-for="(field, index) in fields"
|
|
|
|
:key="index"
|
2020-08-10 16:06:11 +02:00
|
|
|
class="th c-hand"
|
2020-10-18 10:27:02 +02:00
|
|
|
:title="`${field.type} ${fieldLength(field) ? `(${fieldLength(field)})` : ''}`"
|
2020-08-10 16:06:11 +02:00
|
|
|
>
|
|
|
|
<div ref="columnResize" class="column-resizable">
|
|
|
|
<div class="table-column-title" @click="sort(field.name)">
|
|
|
|
<i
|
|
|
|
v-if="field.key"
|
2020-08-12 10:48:18 +02:00
|
|
|
class="mdi mdi-key column-key c-help"
|
2020-08-10 16:06:11 +02:00
|
|
|
:class="`key-${field.key}`"
|
|
|
|
:title="keyName(field.key)"
|
2020-08-12 10:48:18 +02:00
|
|
|
/>
|
2020-10-18 10:27:02 +02:00
|
|
|
<span>{{ field.alias || field.name }}</span>
|
2020-08-12 10:48:18 +02:00
|
|
|
<i
|
2020-09-18 12:54:02 +02:00
|
|
|
v-if="currentSort === field.name || currentSort === `${field.table}.${field.name}`"
|
2020-08-12 10:48:18 +02:00
|
|
|
class="mdi sort-icon"
|
|
|
|
:class="currentSortDir === 'asc' ? 'mdi-sort-ascending':'mdi-sort-descending'"
|
|
|
|
/>
|
2020-06-16 18:01:22 +02:00
|
|
|
</div>
|
2020-06-11 23:34:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-10 19:29:10 +02:00
|
|
|
</div>
|
2020-08-10 16:06:11 +02:00
|
|
|
</div>
|
|
|
|
<BaseVirtualScroll
|
2020-09-08 11:47:01 +02:00
|
|
|
v-if="resultsWithRows[resultsetIndex] && resultsWithRows[resultsetIndex].rows"
|
2020-08-10 16:06:11 +02:00
|
|
|
ref="resultTable"
|
|
|
|
:items="sortedResults"
|
|
|
|
:item-height="22"
|
|
|
|
class="tbody"
|
|
|
|
:visible-height="resultsSize"
|
|
|
|
:scroll-element="scrollElement"
|
|
|
|
>
|
|
|
|
<template slot-scope="{ items }">
|
|
|
|
<WorkspaceQueryTableRow
|
|
|
|
v-for="row in items"
|
|
|
|
:key="row._id"
|
|
|
|
:row="row"
|
|
|
|
:fields="fields"
|
2020-08-14 18:07:29 +02:00
|
|
|
:key-usage="keyUsage"
|
2020-08-10 16:06:11 +02:00
|
|
|
class="tr"
|
|
|
|
:class="{'selected': selectedRows.includes(row._id)}"
|
2020-08-18 18:03:59 +02:00
|
|
|
@select-row="selectRow($event, row._id)"
|
2020-09-13 18:25:28 +02:00
|
|
|
@update-field="updateField($event, getPrimaryValue(row))"
|
2020-08-10 16:06:11 +02:00
|
|
|
@contextmenu="contextMenu"
|
|
|
|
/>
|
|
|
|
</template>
|
2020-10-20 13:12:12 +02:00
|
|
|
</BaseVirtualScroll>
|
2020-08-10 16:06:11 +02:00
|
|
|
</div>
|
2020-07-10 19:51:36 +02:00
|
|
|
</div>
|
2020-06-10 19:29:10 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-08-04 17:54:19 +02:00
|
|
|
import { uidGen } from 'common/libs/uidGen';
|
2021-01-08 21:55:03 +01:00
|
|
|
import arrayToFile from '../libs/arrayToFile';
|
2020-10-17 10:12:40 +02:00
|
|
|
import { LONG_TEXT, BLOB } from 'common/fieldTypes';
|
2020-06-11 23:34:38 +02:00
|
|
|
import BaseVirtualScroll from '@/components/BaseVirtualScroll';
|
2020-08-07 17:26:02 +02:00
|
|
|
import WorkspaceQueryTableRow from '@/components/WorkspaceQueryTableRow';
|
2020-07-10 19:51:36 +02:00
|
|
|
import TableContext from '@/components/WorkspaceQueryTableContext';
|
2020-08-14 18:07:29 +02:00
|
|
|
import { mapActions, mapGetters } from 'vuex';
|
2020-06-11 23:34:38 +02:00
|
|
|
|
2020-06-10 19:29:10 +02:00
|
|
|
export default {
|
|
|
|
name: 'WorkspaceQueryTable',
|
2020-06-11 23:34:38 +02:00
|
|
|
components: {
|
2020-06-26 18:14:16 +02:00
|
|
|
BaseVirtualScroll,
|
2020-08-07 17:26:02 +02:00
|
|
|
WorkspaceQueryTableRow,
|
2020-07-10 19:51:36 +02:00
|
|
|
TableContext
|
2020-06-18 19:01:09 +02:00
|
|
|
},
|
2020-06-10 19:29:10 +02:00
|
|
|
props: {
|
2020-09-06 08:41:57 +02:00
|
|
|
results: Array,
|
2020-09-18 12:54:02 +02:00
|
|
|
tabUid: [String, Number],
|
|
|
|
connUid: String,
|
|
|
|
mode: String
|
2020-06-10 19:29:10 +02:00
|
|
|
},
|
2020-06-11 23:34:38 +02:00
|
|
|
data () {
|
|
|
|
return {
|
2020-06-16 18:01:22 +02:00
|
|
|
resultsSize: 1000,
|
2020-07-10 19:51:36 +02:00
|
|
|
localResults: [],
|
|
|
|
isContext: false,
|
2020-07-22 18:30:52 +02:00
|
|
|
contextEvent: null,
|
|
|
|
selectedCell: null,
|
2020-07-24 13:26:56 +02:00
|
|
|
selectedRows: [],
|
|
|
|
currentSort: '',
|
2020-09-06 08:41:57 +02:00
|
|
|
currentSortDir: 'asc',
|
|
|
|
resultsetIndex: 0,
|
|
|
|
scrollElement: null
|
2020-06-11 23:34:38 +02:00
|
|
|
};
|
|
|
|
},
|
2020-06-26 18:14:16 +02:00
|
|
|
computed: {
|
2020-08-14 18:07:29 +02:00
|
|
|
...mapGetters({
|
2020-09-18 12:54:02 +02:00
|
|
|
getWorkspace: 'workspaces/getWorkspace'
|
2020-08-14 18:07:29 +02:00
|
|
|
}),
|
2020-09-18 12:54:02 +02:00
|
|
|
workspaceSchema () {
|
|
|
|
return this.getWorkspace(this.connUid).breadcrumbs.schema;
|
|
|
|
},
|
2020-06-26 18:14:16 +02:00
|
|
|
primaryField () {
|
2020-08-13 13:24:03 +02:00
|
|
|
return this.fields.filter(field => ['pri', 'uni'].includes(field.key))[0] || false;
|
2020-07-24 13:26:56 +02:00
|
|
|
},
|
2020-12-07 17:51:48 +01:00
|
|
|
isHardSort () {
|
|
|
|
return this.mode === 'table' && this.localResults.length === 1000;
|
|
|
|
},
|
2020-07-24 13:26:56 +02:00
|
|
|
sortedResults () {
|
2020-12-07 17:51:48 +01:00
|
|
|
if (this.currentSort && !this.isHardSort) {
|
2020-07-24 13:26:56 +02:00
|
|
|
return [...this.localResults].sort((a, b) => {
|
|
|
|
let modifier = 1;
|
|
|
|
const valA = typeof a[this.currentSort] === 'string' ? a[this.currentSort].toLowerCase() : a[this.currentSort];
|
|
|
|
const valB = typeof b[this.currentSort] === 'string' ? b[this.currentSort].toLowerCase() : b[this.currentSort];
|
|
|
|
if (this.currentSortDir === 'desc') modifier = -1;
|
|
|
|
if (valA < valB) return -1 * modifier;
|
|
|
|
if (valA > valB) return 1 * modifier;
|
|
|
|
return 0;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else
|
|
|
|
return this.localResults;
|
2020-08-10 16:06:11 +02:00
|
|
|
},
|
2020-09-08 11:47:01 +02:00
|
|
|
resultsWithRows () {
|
|
|
|
return this.results.filter(result => result.rows);
|
|
|
|
},
|
2020-08-14 18:07:29 +02:00
|
|
|
fields () {
|
2020-10-27 16:41:00 +01:00
|
|
|
return this.resultsWithRows.length ? this.resultsWithRows[this.resultsetIndex].fields : [];
|
2020-08-14 18:07:29 +02:00
|
|
|
},
|
|
|
|
keyUsage () {
|
2020-10-27 16:41:00 +01:00
|
|
|
return this.resultsWithRows.length ? this.resultsWithRows[this.resultsetIndex].keys : [];
|
2020-06-26 18:14:16 +02:00
|
|
|
}
|
|
|
|
},
|
2020-06-16 18:01:22 +02:00
|
|
|
watch: {
|
|
|
|
results () {
|
2020-09-06 08:41:57 +02:00
|
|
|
this.setLocalResults();
|
|
|
|
this.resultsetIndex = 0;
|
|
|
|
},
|
|
|
|
resultsetIndex () {
|
|
|
|
this.setLocalResults();
|
2020-06-11 23:34:38 +02:00
|
|
|
}
|
|
|
|
},
|
2020-06-12 18:10:45 +02:00
|
|
|
updated () {
|
2020-08-10 16:06:11 +02:00
|
|
|
if (this.$refs.table)
|
2020-07-24 13:26:56 +02:00
|
|
|
this.refreshScroller();
|
2020-09-06 08:41:57 +02:00
|
|
|
|
|
|
|
if (this.$refs.tableWrapper)
|
|
|
|
this.scrollElement = this.$refs.tableWrapper;
|
2020-06-11 23:34:38 +02:00
|
|
|
},
|
|
|
|
mounted () {
|
|
|
|
window.addEventListener('resize', this.resizeResults);
|
|
|
|
},
|
|
|
|
destroyed () {
|
|
|
|
window.removeEventListener('resize', this.resizeResults);
|
|
|
|
},
|
2020-06-10 19:29:10 +02:00
|
|
|
methods: {
|
2020-06-26 18:14:16 +02:00
|
|
|
...mapActions({
|
|
|
|
addNotification: 'notifications/addNotification'
|
|
|
|
}),
|
2020-06-18 19:01:09 +02:00
|
|
|
fieldType (cKey) {
|
|
|
|
let type = 'unknown';
|
|
|
|
const field = this.fields.filter(field => field.name === cKey)[0];
|
|
|
|
if (field)
|
|
|
|
type = field.type;
|
2020-06-10 19:29:10 +02:00
|
|
|
|
2020-06-18 19:01:09 +02:00
|
|
|
return type;
|
|
|
|
},
|
2020-07-05 16:06:56 +02:00
|
|
|
fieldPrecision (cKey) {
|
|
|
|
let length = 0;
|
|
|
|
const field = this.fields.filter(field => field.name === cKey)[0];
|
|
|
|
if (field)
|
2020-08-12 10:48:18 +02:00
|
|
|
length = field.datePrecision;
|
2020-07-05 16:06:56 +02:00
|
|
|
|
|
|
|
return length;
|
|
|
|
},
|
2020-10-17 10:12:40 +02:00
|
|
|
fieldLength (field) {
|
|
|
|
if ([...BLOB, ...LONG_TEXT].includes(field.type)) return null;
|
2021-01-21 18:14:37 +01:00
|
|
|
return field.length;
|
2020-10-17 10:12:40 +02:00
|
|
|
},
|
2020-06-16 18:01:22 +02:00
|
|
|
keyName (key) {
|
|
|
|
switch (key) {
|
|
|
|
case 'pri':
|
|
|
|
return 'PRIMARY';
|
|
|
|
case 'uni':
|
|
|
|
return 'UNIQUE';
|
|
|
|
case 'mul':
|
|
|
|
return 'INDEX';
|
|
|
|
default:
|
|
|
|
return 'UNKNOWN ' + key;
|
|
|
|
}
|
|
|
|
},
|
2020-09-08 11:47:01 +02:00
|
|
|
getTable (index) {
|
|
|
|
if (this.resultsWithRows[index] && this.resultsWithRows[index].fields && this.resultsWithRows[index].fields.length)
|
2020-10-27 16:41:00 +01:00
|
|
|
return this.resultsWithRows[index].fields[0].table;
|
2020-09-08 11:47:01 +02:00
|
|
|
return '';
|
|
|
|
},
|
2020-09-18 12:54:02 +02:00
|
|
|
getSchema (index) {
|
|
|
|
if (this.resultsWithRows[index] && this.resultsWithRows[index].fields && this.resultsWithRows[index].fields.length)
|
2020-10-10 16:54:00 +02:00
|
|
|
return this.resultsWithRows[index].fields[0].schema;
|
2020-09-18 12:54:02 +02:00
|
|
|
return this.workspaceSchema;
|
|
|
|
},
|
2020-09-13 18:25:28 +02:00
|
|
|
getPrimaryValue (row) {
|
|
|
|
const primaryFieldName = Object.keys(row).find(prop => [
|
|
|
|
this.primaryField.alias,
|
|
|
|
this.primaryField.name,
|
|
|
|
`${this.primaryField.table}.${this.primaryField.alias}`,
|
2020-10-21 14:58:22 +02:00
|
|
|
`${this.primaryField.table}.${this.primaryField.name}`,
|
|
|
|
`${this.primaryField.tableAlias}.${this.primaryField.alias}`,
|
|
|
|
`${this.primaryField.tableAlias}.${this.primaryField.name}`
|
2020-09-13 18:25:28 +02:00
|
|
|
].includes(prop));
|
|
|
|
return row[primaryFieldName];
|
|
|
|
},
|
2020-09-06 08:41:57 +02:00
|
|
|
setLocalResults () {
|
2020-11-13 12:39:40 +01:00
|
|
|
this.localResults = this.resultsWithRows[this.resultsetIndex] && this.resultsWithRows[this.resultsetIndex].rows
|
|
|
|
? this.resultsWithRows[this.resultsetIndex].rows.map(item => {
|
|
|
|
return { ...item, _id: uidGen() };
|
|
|
|
})
|
|
|
|
: [];
|
2020-09-06 08:41:57 +02:00
|
|
|
},
|
2020-07-23 19:10:14 +02:00
|
|
|
resizeResults () {
|
2020-06-12 18:10:45 +02:00
|
|
|
if (this.$refs.resultTable) {
|
2020-08-19 16:25:42 +02:00
|
|
|
const el = this.$refs.tableWrapper;
|
2020-06-11 23:34:38 +02:00
|
|
|
|
2020-06-12 18:10:45 +02:00
|
|
|
if (el) {
|
2020-08-10 16:06:11 +02:00
|
|
|
const footer = document.getElementById('footer');
|
2020-06-12 18:10:45 +02:00
|
|
|
const size = window.innerHeight - el.getBoundingClientRect().top - footer.offsetHeight;
|
|
|
|
this.resultsSize = size;
|
|
|
|
}
|
2020-07-23 19:10:14 +02:00
|
|
|
this.$refs.resultTable.updateWindow();
|
2020-06-11 23:34:38 +02:00
|
|
|
}
|
2020-06-26 18:14:16 +02:00
|
|
|
},
|
2020-07-23 19:10:14 +02:00
|
|
|
refreshScroller () {
|
|
|
|
this.resizeResults();
|
|
|
|
},
|
2020-07-22 18:30:52 +02:00
|
|
|
updateField (payload, id) {
|
2020-06-26 18:14:16 +02:00
|
|
|
if (!this.primaryField)
|
|
|
|
this.addNotification({ status: 'warning', message: this.$t('message.unableEditFieldWithoutPrimary') });
|
2020-06-27 15:14:08 +02:00
|
|
|
else {
|
|
|
|
const params = {
|
|
|
|
primary: this.primaryField.name,
|
2020-09-18 12:54:02 +02:00
|
|
|
schema: this.getSchema(this.resultsetIndex),
|
2020-09-08 11:47:01 +02:00
|
|
|
table: this.getTable(this.resultsetIndex),
|
2020-06-27 15:14:08 +02:00
|
|
|
id,
|
2020-07-22 18:30:52 +02:00
|
|
|
...payload
|
2020-06-27 15:14:08 +02:00
|
|
|
};
|
2020-08-18 18:03:59 +02:00
|
|
|
this.$emit('update-field', params);
|
2020-06-27 15:14:08 +02:00
|
|
|
}
|
2020-06-28 15:31:16 +02:00
|
|
|
},
|
2020-07-23 19:10:14 +02:00
|
|
|
deleteSelected () {
|
|
|
|
if (!this.primaryField)
|
|
|
|
this.addNotification({ status: 'warning', message: this.$t('message.unableEditFieldWithoutPrimary') });
|
|
|
|
else {
|
2020-10-27 16:41:00 +01:00
|
|
|
const rowIDs = this.localResults.filter(row => this.selectedRows.includes(row._id)).map(row =>
|
|
|
|
row[this.primaryField.name] ||
|
|
|
|
row[`${this.primaryField.table}.${this.primaryField.name}`] ||
|
|
|
|
row[`${this.primaryField.tableAlias}.${this.primaryField.name}`]
|
|
|
|
);
|
2020-07-23 19:10:14 +02:00
|
|
|
const params = {
|
|
|
|
primary: this.primaryField.name,
|
2020-09-18 12:54:02 +02:00
|
|
|
schema: this.getSchema(this.resultsetIndex),
|
2020-09-08 11:47:01 +02:00
|
|
|
table: this.getTable(this.resultsetIndex),
|
2020-07-23 19:10:14 +02:00
|
|
|
rows: rowIDs
|
|
|
|
};
|
2020-08-18 18:03:59 +02:00
|
|
|
this.$emit('delete-selected', params);
|
2020-07-23 19:10:14 +02:00
|
|
|
}
|
|
|
|
},
|
2020-06-28 15:31:16 +02:00
|
|
|
applyUpdate (params) {
|
2020-09-14 11:08:11 +02:00
|
|
|
const { primary, id, field, table, content } = params;
|
|
|
|
|
2020-06-28 15:31:16 +02:00
|
|
|
this.localResults = this.localResults.map(row => {
|
2020-09-14 11:08:11 +02:00
|
|
|
if (row[primary] === id)// only fieldName
|
2020-06-28 15:31:16 +02:00
|
|
|
row[field] = content;
|
2020-09-14 11:08:11 +02:00
|
|
|
else if (row[`${table}.${primary}`] === id)// table.fieldName
|
|
|
|
row[`${table}.${field}`] = content;
|
2020-06-28 15:31:16 +02:00
|
|
|
|
|
|
|
return row;
|
|
|
|
});
|
2020-07-10 19:51:36 +02:00
|
|
|
},
|
2020-07-22 18:30:52 +02:00
|
|
|
selectRow (event, row) {
|
|
|
|
if (event.ctrlKey) {
|
|
|
|
if (this.selectedRows.includes(row))
|
|
|
|
this.selectedRows = this.selectedRows.filter(el => el !== row);
|
|
|
|
else
|
|
|
|
this.selectedRows.push(row);
|
|
|
|
}
|
|
|
|
else if (event.shiftKey) {
|
|
|
|
if (!this.selectedRows.length)
|
|
|
|
this.selectedRows.push(row);
|
|
|
|
else {
|
|
|
|
const lastID = this.selectedRows.slice(-1)[0];
|
|
|
|
const lastIndex = this.localResults.findIndex(el => el._id === lastID);
|
|
|
|
const clickedIndex = this.localResults.findIndex(el => el._id === row);
|
|
|
|
if (lastIndex > clickedIndex) {
|
|
|
|
for (let i = clickedIndex; i < lastIndex; i++)
|
|
|
|
this.selectedRows.push(this.localResults[i]._id);
|
|
|
|
}
|
|
|
|
else if (lastIndex < clickedIndex) {
|
|
|
|
for (let i = clickedIndex; i > lastIndex; i--)
|
|
|
|
this.selectedRows.push(this.localResults[i]._id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
this.selectedRows = [row];
|
|
|
|
},
|
|
|
|
contextMenu (event, cell) {
|
|
|
|
this.selectedCell = cell;
|
|
|
|
if (!this.selectedRows.includes(cell.id))
|
|
|
|
this.selectedRows = [cell.id];
|
2020-07-10 19:51:36 +02:00
|
|
|
this.contextEvent = event;
|
|
|
|
this.isContext = true;
|
2020-07-24 13:26:56 +02:00
|
|
|
},
|
|
|
|
sort (field) {
|
2020-09-18 12:54:02 +02:00
|
|
|
if (this.mode === 'query')
|
|
|
|
field = `${this.getTable(this.resultsetIndex)}.${field}`;
|
|
|
|
|
2020-07-24 13:26:56 +02:00
|
|
|
if (field === this.currentSort) {
|
|
|
|
if (this.currentSortDir === 'asc')
|
|
|
|
this.currentSortDir = 'desc';
|
|
|
|
else
|
|
|
|
this.resetSort();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
this.currentSortDir = 'asc';
|
|
|
|
this.currentSort = field;
|
|
|
|
}
|
2020-12-07 17:51:48 +01:00
|
|
|
|
|
|
|
if (this.isHardSort)
|
|
|
|
this.$emit('hard-sort', { field: this.currentSort, dir: this.currentSortDir });
|
2020-07-24 13:26:56 +02:00
|
|
|
},
|
|
|
|
resetSort () {
|
|
|
|
this.currentSort = '';
|
|
|
|
this.currentSortDir = 'asc';
|
2020-09-06 08:41:57 +02:00
|
|
|
},
|
|
|
|
selectResultset (index) {
|
|
|
|
this.resultsetIndex = index;
|
2021-01-08 21:55:03 +01:00
|
|
|
},
|
|
|
|
downloadTable (format, filename) {
|
|
|
|
if (!this.sortedResults) return;
|
|
|
|
|
2021-01-14 18:11:36 +01:00
|
|
|
const rows = [...this.sortedResults].map(row => {
|
2021-01-13 11:57:26 +01:00
|
|
|
delete row._id;
|
|
|
|
return row;
|
|
|
|
});
|
|
|
|
|
2021-01-08 21:55:03 +01:00
|
|
|
arrayToFile({
|
|
|
|
type: format,
|
2021-01-13 11:57:26 +01:00
|
|
|
content: rows,
|
2021-01-08 21:55:03 +01:00
|
|
|
filename
|
|
|
|
});
|
2020-06-10 19:29:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2020-09-06 08:41:57 +02:00
|
|
|
<style lang="scss" scoped>
|
2020-06-11 23:34:38 +02:00
|
|
|
.vscroll {
|
2020-07-31 18:16:28 +02:00
|
|
|
height: 1000px;
|
|
|
|
overflow: auto;
|
|
|
|
overflow-anchor: none;
|
2020-06-11 23:34:38 +02:00
|
|
|
}
|
2020-06-16 18:01:22 +02:00
|
|
|
|
2020-07-31 18:16:28 +02:00
|
|
|
.column-resizable {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
resize: horizontal;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-07-24 13:26:56 +02:00
|
|
|
}
|
|
|
|
|
2020-07-31 18:16:28 +02:00
|
|
|
.table-column-title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-06-16 18:01:22 +02:00
|
|
|
}
|
|
|
|
|
2020-07-31 18:16:28 +02:00
|
|
|
.sort-icon {
|
|
|
|
font-size: 0.7rem;
|
|
|
|
line-height: 1;
|
|
|
|
margin-left: 0.2rem;
|
2020-07-24 13:26:56 +02:00
|
|
|
}
|
2020-09-06 08:41:57 +02:00
|
|
|
|
|
|
|
.result-tabs {
|
|
|
|
background: transparent !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-06-10 19:29:10 +02:00
|
|
|
</style>
|