Skip to content
Snippets Groups Projects
Commit d14716ae authored by David Mendez's avatar David Mendez
Browse files

eubopen: add min targets section for compound report card

parent 2fab9757
No related branches found
No related tags found
1 merge request!88Changes for the Midterm Review
<template>
<v-card>
<v-card-text>
<div>
Main targets here!!! itemID: {{ itemID }}, chemblID: {{ chemblID }}
</div>
<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,
......@@ -19,6 +30,48 @@ export default {
type: String,
default: () => undefined,
},
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>
......
Subproject commit b4b69a0505a33ce08a3d49bdc9516caf5a9713e3
Subproject commit a5e713f8ba1b028b8fe87fc0e7a99fa8276ac9fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment