summaryrefslogtreecommitdiff
path: root/src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue')
-rw-r--r--src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue91
1 files changed, 91 insertions, 0 deletions
diff --git a/src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue b/src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue
new file mode 100644
index 00000000..f7b6d951
--- /dev/null
+++ b/src/views/_sila/BMC/Configuration/BMCConfigurationTable.vue
@@ -0,0 +1,91 @@
+<template>
+ <page-section class="bootstrap-table__section">
+ <b-table
+ responsive="md"
+ show-empty
+ class="table-rounded"
+ no-border-collapse
+ :items="items"
+ :fields="fields"
+ :busy="isBusy"
+ :empty-text="$t('global.table.emptyMessage')"
+ >
+ </b-table>
+ </page-section>
+</template>
+
+<script>
+import BVToastMixin from '@/components/Mixins/BVToastMixin';
+import PageSection from '@/components/Global/PageSection';
+
+import TableRowExpandMixin, {
+ expandRowLabel,
+} from '@/components/Mixins/TableRowExpandMixin';
+
+export default {
+ components: { PageSection },
+ mixins: [BVToastMixin, TableRowExpandMixin],
+ data() {
+ return {
+ isBusy: true,
+ isAddersСolon: false,
+ fields: [
+ {
+ key: 'param',
+ label: 'Параметр',
+ formatter: this.dataFormatter,
+ thStyle: { width: '50%' },
+ },
+ {
+ key: 'value',
+ label: 'Значение',
+ formatter: this.dataFormatter,
+ },
+ ],
+ expandRowLabel: expandRowLabel,
+ items: null,
+ };
+ },
+ computed: {
+ bmc() {
+ return this.$store.getters['bmc/bmc'];
+ },
+ },
+ watch: {
+ bmc() {
+ this.items = [
+ {
+ param: 'Время сервера',
+ value: this.bmc.dateTime,
+ },
+ {
+ param: 'uuid',
+ value: this.bmc.uuid,
+ },
+ {
+ param: 'Версия прошивки',
+ value: this.bmc.firmwareVersion,
+ },
+ {
+ param: 'Модель',
+ value: this.bmc.model,
+ },
+ {
+ param: 'Описание',
+ value: this.bmc.description,
+ },
+ {
+ param: 'Максимальное количество сессий',
+ value: this.bmc.graphicalConsoleMaxSessions,
+ },
+ ];
+ },
+ },
+ created() {
+ this.$store.dispatch('bmc/getBmcInfo').finally(() => {
+ this.$root.$emit('hardware-status-bmc-manager-complete');
+ this.isBusy = false;
+ });
+ },
+};
+</script>