summaryrefslogtreecommitdiff
path: root/src/views/SILA/PhysicalDrivers/StaticInfo/DriversStaticPage.vue
blob: 6a4f631d964e3d9d0a849fac03f04b649606f873 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<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="100"
      :slider-width="81"
    />
    <page-section class="bootstrap-table__section info_section">
      <b-table
        responsive="md"
        show-empty
        class="bootstrap-rounded-table"
        :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' },
        { id: 9, name: 'Накопитель 9' },
        { id: 10, name: 'Накопитель 10' },
        { id: 11, name: 'Накопитель 11' },
        { id: 12, name: 'Накопитель 12' },
        { id: 13, name: 'Накопитель 13' },
        { id: 14, name: 'Накопитель 14' },
        { id: 15, name: 'Накопитель 15' },
      ],
      fields: [
        {
          key: 'parametr',
          label: 'Параметр',
          formatter: this.dataFormatter,
          thClass: 'semi-bold-12px__caps bootstrap-rounded-table__head_bg',
          class: `bootstrap-rounded-table__column-first
            memory-table-col-first`,
          tdClass: 'regular-12px bootstrap-rounded-table__td',
        },
        {
          key: 'value',
          label: 'Значение',
          formatter: this.dataFormatter,
          thClass: 'semi-bold-12px__caps bootstrap-rounded-table__head_bg',
          class: 'bootstrap-rounded-table__column-last',
          tdClass: 'regular-12px bootstrap-rounded-table__td',
        },
      ],
      items: [
        {
          parametr: 'Протокол',
          value: '4590',
        },
        {
          parametr: 'Номинальная ёмкость',
          value: '1 024 000 Мб',
        },
        {
          parametr: 'Номинальная скорость вращения HDD',
          value: '2000 об./мин.',
        },
        {
          parametr: 'Номинальный ресурс для SDD',
          value: '10 000',
        },
        {
          parametr: 'Слот в бэкплейне или номер порта',
          value: '25',
        },
      ],
    };
  },
  methods: {
    switchMemorySlot(period) {
      this.currentMemorySlot = period;
    },
  },
};
</script>
<style lang="scss">
.memory-table-col-first {
  width: 50%;
}
</style>

<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>