Newer
Older
<template>
<v-card>
<v-card-text>
<ChEMBLDataTable
:dataset-state="datasetState"
:store-module-name="storeModuleName"
:outlined-card="true"
/>
</v-card-text>
</v-card>
</template>
<script>
import IndexNames from '@/web-components-submodule/standardisation/IndexNames.js'
import { datasetMixin } from '~/web-components-submodule/mixins/datasets/datasetMixin.js'
import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js'
import ChEMBLDataTable from '~/web-components-submodule/components/common/dataSets/data_table/ChEMBLDataTable.vue'
export default {
components: {
ChEMBLDataTable,
},
mixins: [datasetMixin],
props: {
itemID: {
type: String,
default: () => undefined,
},
chemblID: {
type: String,
default: () => undefined,
},
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
storeModuleName: {
type: String,
default: () => `main_targets_for_compound`,
},
},
data() {
return {
propertiesGroups: {
1: {
id: 'main_targets_for_a_compound',
selected: true,
allHeaders: [],
},
},
entityID: EntityNames.EubopenMainTarget.entityID,
customDataRepresentationParams: {
possiblePageSizes: [5, 10],
itemsPerPage: 5,
},
}
},
computed: {
starterParams() {
return {
chemblID: this.chemblID,
propertiesGroups: this.propertiesGroups,
initialQuery: {
query: {
bool: {
must: [
{
terms: {
'molecule.molecule_eubopen_id.keyword': [this.itemID],
},
},
],
},
},
},
indexName: IndexNames.getIndexNameFromEntityID(this.entityID),
}
},
},
}
</script>
<style></style>