-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
José Luis Pereira
committed
Nov 1, 2022
1 parent
f67c2ec
commit fa37381
Showing
8 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/modules/otus/components/Panel/PanelContent/PanelContent.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/modules/otus/components/Panel/PanelStatus/PanelStatus.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <template> | ||
| <VCard> | ||
| <VCardHeader> | ||
| <h1 class="text-md"> | ||
| Status | ||
| </h1> | ||
| </VCardHeader> | ||
| <VCardContent class="text-sm"> | ||
| <p v-html="summary.short_status" /> | ||
| </VCardContent> | ||
| </VCard> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref, watch } from 'vue' | ||
| import TaxonWorks from '../../../services/TaxonWorks' | ||
| const props = defineProps({ | ||
| taxonId: { | ||
| type: [String, Number], | ||
| required: true | ||
| } | ||
| }) | ||
| const summary = ref({}) | ||
| watch( | ||
| () => props.taxonId, | ||
| async () => { | ||
| if (!props.taxonId) { return } | ||
| TaxonWorks.summary(props.taxonId).then(({ data }) => { | ||
| summary.value = data | ||
| }) | ||
| }, | ||
| { immediate: true } | ||
| ) | ||
| </script> |
4 changes: 2 additions & 2 deletions
4
src/modules/otus/components/Panel/PanelTypeSpecimen/PanelTypeSpecimen.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters