summaryrefslogtreecommitdiff
path: root/src/views/BMC/Configuration/BMCConfigurationTable.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/BMC/Configuration/BMCConfigurationTable.vue')
-rw-r--r--src/views/BMC/Configuration/BMCConfigurationTable.vue72
1 files changed, 45 insertions, 27 deletions
diff --git a/src/views/BMC/Configuration/BMCConfigurationTable.vue b/src/views/BMC/Configuration/BMCConfigurationTable.vue
index a550743e..51e428e3 100644
--- a/src/views/BMC/Configuration/BMCConfigurationTable.vue
+++ b/src/views/BMC/Configuration/BMCConfigurationTable.vue
@@ -4,27 +4,10 @@
responsive="md"
show-empty
class="bootstrap-rounded-table"
- :items="systems"
+ :items="items"
:fields="fields"
:empty-text="$t('global.table.emptyMessage')"
>
- <template #cell(value)="data">
- <b-row v-if="data.index === 2">
- <b-col>
- <span v-if="isAddersСolon">
- {{ '487566942332' }}
- </span>
- <span v-else>
- {{ data.value }}
- </span>
- </b-col>
- <b-col class="macAddresCol">
- <b-form-checkbox v-model="isAddersСolon"> </b-form-checkbox>
- <span> {{ 'XXXX формат' }} </span>
- </b-col>
- </b-row>
- <span v-else>{{ data.value }}</span>
- </template>
</b-table>
</page-section>
</template>
@@ -64,17 +47,52 @@ export default {
},
],
expandRowLabel: expandRowLabel,
- systems: [
+ items: null,
+ };
+ },
+ computed: {
+ bmc() {
+ return this.$store.getters['bmc/bmc'];
+ },
+ },
+ watch: {
+ bmc() {
+ this.items = [
{
- param: 'Время BMC',
- value: '14:20',
+ param: 'Время сервера',
+ value: this.bmc.dateTime,
},
- { param: 'Версия прошивки', value: '1.214.248 beta' },
- { param: 'MAC - адреса', value: '48:75:66:94:23:32' },
- { param: 'IP - адреса', value: '192.168.48.1' },
- { param: 'Имя ВМС', value: 'ВМС-007' },
- ],
- };
+ {
+ 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');
+ });
+ const bmcManagerTablePromise = new Promise((resolve) => {
+ this.$root.$on('hardware-status-bmc-manager-complete', () => resolve());
+ });
+ Promise.all([bmcManagerTablePromise]).finally(() => this.endLoader());
},
};
</script>