summaryrefslogtreecommitdiff
path: root/src/views/_sila/SILA/VirtualDrivers/VirtualDriversPage.vue
blob: 73633901251ed5cd9af4c53a94a1ac85f7c97e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<template>
  <b-container
    :style="{ display: 'flex', 'flex-direction': 'column' }"
    fluid="xxl pt-0 m-0"
  >
    <page-title />
    <page-section class="bootstrap-table__section info_section">
      <span class="bold-16px">{{ $t('global.table.info') }}</span>
    </page-section>
    <data-tabs
      :slots="memorySlots"
      :switch-tab="switchMemorySlot"
      :current-tab="currentMemorySlot"
      :slot-width="180"
      :slider-width="156"
    />
    <page-section class="bootstrap-table__section info_section">
      <b-table
        responsive="md"
        show-empty
        class="table-rounded"
        no-border-collapse
        :items="items"
        :fields="fields"
        :empty-text="$t('global.table.emptyMessage')"
      >
      </b-table>
      <div class="microcode-container">
        <span class="bold-16px">{{
          $t('SystemDescription.microcodeDrivers')
        }}</span>
        <popover
          id="popover-reactive-1"
          description="SystemDescription.reloadMicrocodeDrivers"
          popup="SystemDescription.reloadMicrocodeDrivers"
          button="global.action.refresh"
          :is-microcode-drivers="true"
        />
      </div>
    </page-section>
  </b-container>
</template>

<script>
import PageTitle from '@/components/Global/PageTitle';
import PageSection from '@/components/Global/PageSection';
import DataTabs from '@/components/Global/SilaComponents/DataTabs';
import Popover from '@/components/Global/Popover';

export default {
  components: { PageTitle, PageSection, DataTabs, Popover },
  data() {
    return {
      currentMemorySlot: 1,
      memorySlots: [
        { id: 1, name: 'Виртуальный накопитель 1' },
        { id: 2, name: 'Виртуальный накопитель 2' },
        { id: 3, name: 'Виртуальный накопитель 3' },
        { id: 4, name: 'Виртуальный накопитель 4' },
        { id: 5, name: 'Виртуальный накопитель 5' },
        { id: 6, name: 'Виртуальный накопитель 6' },
        { id: 7, name: 'Виртуальный накопитель 7' },
        { id: 8, name: 'Виртуальный накопитель 8' },
      ],
      fields: [
        {
          key: 'parametr',
          label: 'Параметр',
          formatter: this.dataFormatter,
          thStyle: { width: '50%' },
        },
        {
          key: 'value',
          label: 'Значение',
          formatter: this.dataFormatter,
        },
      ],
      items: [
        {
          parametr: 'Текущий статус',
          value: 'Готов',
        },
        {
          parametr: 'Номинальная емкость',
          value: '1 024 000 Мб',
        },
        {
          parametr: 'Тип избыточности',
          value: 'RAID',
        },
        {
          parametr: 'Входящие в состав физические накопители',
          value: 'Накопитель 1, Накопитель 2, Накопитель 3',
        },
      ],
    };
  },
  methods: {
    switchMemorySlot(period) {
      this.currentMemorySlot = period;
    },
  },
};
</script>
<style lang="scss" scoped>
.info_section {
  margin-bottom: 0px;
}

.bold-16px {
  display: block;
  margin: 25px 0 16px 0;
}

.microcode-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
}
</style>