diff options
Diffstat (limited to 'src/views/PowerSupplies/Specification/PowerStaticPage.vue')
-rw-r--r-- | src/views/PowerSupplies/Specification/PowerStaticPage.vue | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/views/PowerSupplies/Specification/PowerStaticPage.vue b/src/views/PowerSupplies/Specification/PowerStaticPage.vue index 463e9ea2..8ff1aa1b 100644 --- a/src/views/PowerSupplies/Specification/PowerStaticPage.vue +++ b/src/views/PowerSupplies/Specification/PowerStaticPage.vue @@ -8,10 +8,12 @@ <page-section class="bootstrap-table__section info_section"> <span class="bold-16px">{{ $t('pageInventory.powerSources') }}</span> </page-section> - <power-switch - :slots="memorySlots" - :switch-memory="switchMemorySlot" - :current-memory="currentMemorySlot" + <data-tabs + :slots="sourceSlots" + :switch-tab="switchSourceSlot" + :current-tab="currentSourceSlot" + :slot-width="100" + :slider-width="68" /> <page-section class="bootstrap-table__section"> <b-table @@ -51,14 +53,14 @@ <script> import PageTitle from '@/components/Global/PageTitle'; import PageSection from '@/components/Global/PageSection'; -import PowerSwitch from './PowerSwitch'; +import DataTabs from '@/components/Global/SilaComponents/DataTabs'; export default { - components: { PageTitle, PageSection, PowerSwitch }, + components: { PageTitle, PageSection, DataTabs }, data() { return { - currentMemorySlot: 1, - memorySlots: [ + currentSourceSlot: 1, + sourceSlots: [ { id: 1, name: 'Источник 1' }, { id: 2, name: 'Источник 2' }, { id: 3, name: 'Источник 3' }, @@ -127,8 +129,8 @@ export default { }; }, methods: { - switchMemorySlot(period) { - this.currentMemorySlot = period; + switchSourceSlot(period) { + this.currentSourceSlot = period; }, }, }; |