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

Eubopen compound report: set up activity profile section

parent c37f5223
No related branches found
No related tags found
1 merge request!88Changes for the Midterm Review
<template> <template>
<v-card flat> <v-card flat>
<v-card-title>{{ tabConfig.label }}</v-card-title> <v-card-title>{{ tabConfig.label }}</v-card-title>
<v-card-text>{{ itemID }}</v-card-text>
<v-card-text> <v-card-text>
<ChEMBLDataTable <ChEMBLDataTable
:dataset-state="datasetState" :dataset-state="datasetState"
:store-module-name="storeModuleName" :store-module-name="storeModuleName"
:outlined-card="true" :outlined-card="true"
/> />
starterParams: {{ starterParams }}
</v-card-text> </v-card-text>
</v-card> </v-card>
</template> </template>
...@@ -17,7 +15,6 @@ ...@@ -17,7 +15,6 @@
import IndexNames from '@/web-components-submodule/standardisation/IndexNames.js' import IndexNames from '@/web-components-submodule/standardisation/IndexNames.js'
import { datasetMixin } from '~/web-components-submodule/mixins/datasets/datasetMixin.js' import { datasetMixin } from '~/web-components-submodule/mixins/datasets/datasetMixin.js'
import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js' import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js'
// import ProbeProfile from '~/web-components-submodule/store/datasets/generators/eubopen/activity/ProbeProfile.js'
import ChEMBLDataTable from '~/web-components-submodule/components/common/dataSets/data_table/ChEMBLDataTable.vue' import ChEMBLDataTable from '~/web-components-submodule/components/common/dataSets/data_table/ChEMBLDataTable.vue'
export default { export default {
...@@ -55,16 +52,6 @@ export default { ...@@ -55,16 +52,6 @@ export default {
storeModuleName() { storeModuleName() {
return `activity_profile_${this.tabConfig.key}` return `activity_profile_${this.tabConfig.key}`
}, },
// REMOVE PROBE PROFILE
// starterParams() {
// const starterParams = ProbeProfile.getReportCardStarterParams(
// this.itemID,
// this.propertiesGroups
// )
// console.log('starterParams: ')
// console.log(JSON.stringify(starterParams))
// return starterParams
// },
starterParams() { starterParams() {
return { return {
chemblID: this.itemID, chemblID: this.itemID,
......
<template> <template>
<div> <div>
<div>itemID: {{ itemID }}</div> <v-tabs v-model="tab" show-arrows>
<div>shownSections: {{ shownSections }}</div>
<v-tabs v-model="tab">
<v-tab v-for="item in shownSections" :key="item.key"> <v-tab v-for="item in shownSections" :key="item.key">
{{ item.key }} {{ item.key }}
</v-tab> </v-tab>
......
<template> <template>
<v-card> <div>
<v-card-text> <v-card>
<ChEMBLDataTable <v-card-text>
:dataset-state="datasetState" <ActivityDataTabs :item-i-d="itemID" section-key="ActivityProfile" />
:store-module-name="storeModuleName" </v-card-text>
:outlined-card="true" </v-card>
/> </div>
</v-card-text>
</v-card>
</template> </template>
<script> <script>
import { datasetMixin } from '~/web-components-submodule/mixins/datasets/datasetMixin.js' import ActivityDataTabs from '~/components/report_cards/chemical_probe/ActivityProfileComponents/ActivityDataTabs.vue'
import ChEMBLDataTable from '~/web-components-submodule/components/common/dataSets/data_table/ChEMBLDataTable.vue'
import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js'
import ProbeProfile from '~/web-components-submodule/store/datasets/generators/eubopen/activity/ProbeProfile.js'
export default { export default {
components: { components: {
ChEMBLDataTable, ActivityDataTabs,
}, },
mixins: [datasetMixin],
props: { props: {
itemID: { itemID: {
type: String, type: String,
default: () => undefined, default: () => undefined,
}, },
storeModuleName: {
type: String,
default: () => `probe_profile`,
},
},
data() {
return {
propertiesGroups: {
1: {
id: 'eubopen_compound_probe_profile',
selected: true,
allHeaders: [],
},
},
entityID: EntityNames.EubopenActivity.entityID,
customDataRepresentationParams: {
possiblePageSizes: [5, 10],
itemsPerPage: 5,
},
}
},
computed: {
starterParams() {
const starterParams = ProbeProfile.getReportCardStarterParams(
this.itemID,
this.propertiesGroups
)
return starterParams
},
}, },
} }
</script> </script>
......
Subproject commit e35f854d2b1dc32acf0990aeccb493844fcab39f Subproject commit 12218ead502492a35d0c13b03640910076390a25
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