From 0cbf1713dc23e0039653891fab1fa2c52b4bfaf3 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Wed, 1 Jun 2022 17:40:28 +0300 Subject: Add PopoverSlot restyled DateTime and ServerPowerOrerations pages add reload BMC. --- .../BMC/Configuration/BMCConfigurationControl.vue | 10 +- .../BMC/Configuration/BMCConfigurationTable.vue | 72 ++- .../Fans/StaticInformation/FansStaticPage.vue | 10 +- src/views/HardwareStatus/Inventory/Inventory.vue | 73 +-- src/views/Logs/EventLogs/EventLogs.vue | 465 ++++++++--------- .../Specification/MemoryStaticPage.vue | 10 +- src/views/Operations/Kvm/Kvm.vue | 13 +- .../Operations/SerialOverLan/SerialOverLan.vue | 13 +- .../ServerPowerOperations/BootSettings.vue | 38 +- .../ServerPowerOperations.vue | 370 +++++++------- .../Specification/PowerStaticPage.vue | 5 +- .../AcceleratorSpecificationTable.vue | 7 +- .../Specification/ProcessorsSpecificationTable.vue | 7 +- src/views/SILA/EventLogs/EventLogs.vue | 548 ++++++--------------- src/views/SILA/PciDevices/PciDevicesPage.vue | 5 +- .../RAID/Specification/RAIDSpecificationPage.vue | 7 +- src/views/Settings/DateTime/DateTime.vue | 62 ++- .../Info/InventoryTableSystem.vue | 47 +- .../SystemDescription/Info/SystemDescription.vue | 138 +++--- 19 files changed, 841 insertions(+), 1059 deletions(-) (limited to 'src/views') diff --git a/src/views/BMC/Configuration/BMCConfigurationControl.vue b/src/views/BMC/Configuration/BMCConfigurationControl.vue index 0eb8bfc9..2cc259a7 100644 --- a/src/views/BMC/Configuration/BMCConfigurationControl.vue +++ b/src/views/BMC/Configuration/BMCConfigurationControl.vue @@ -10,6 +10,7 @@ description="BMC.ReloadBmc" popup="BMC.ReloadBmc_popup" button="BMC.ReloadBmc" + :action="rebootBmc" /> this.successToast(message)) + .catch(({ message }) => this.errorToast(message)); + }, }, }; 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')" > - @@ -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()); }, }; diff --git a/src/views/Fans/StaticInformation/FansStaticPage.vue b/src/views/Fans/StaticInformation/FansStaticPage.vue index 85b5191f..7e3a9849 100644 --- a/src/views/Fans/StaticInformation/FansStaticPage.vue +++ b/src/views/Fans/StaticInformation/FansStaticPage.vue @@ -16,19 +16,13 @@ > @@ -38,14 +37,14 @@ @@ -112,10 +111,4 @@ export default { .semi-bold-12px { color: $text-primary; } - -.console { - background-color: black; - width: 100%; - height: 70vh; -} diff --git a/src/views/Operations/SerialOverLan/SerialOverLan.vue b/src/views/Operations/SerialOverLan/SerialOverLan.vue index 6f6852cf..33533bf9 100644 --- a/src/views/Operations/SerialOverLan/SerialOverLan.vue +++ b/src/views/Operations/SerialOverLan/SerialOverLan.vue @@ -39,8 +39,7 @@ -
- + @@ -49,7 +48,7 @@ @@ -124,10 +123,4 @@ export default { .semi-bold-12px { color: $text-primary; } - -.console { - background-color: black; - width: 100%; - height: 70vh; -} diff --git a/src/views/Operations/ServerPowerOperations/BootSettings.vue b/src/views/Operations/ServerPowerOperations/BootSettings.vue index 4896286b..ab3c22b9 100644 --- a/src/views/Operations/ServerPowerOperations/BootSettings.vue +++ b/src/views/Operations/ServerPowerOperations/BootSettings.vue @@ -1,16 +1,17 @@ @@ -152,10 +197,17 @@ import BVToastMixin from '@/components/Mixins/BVToastMixin'; import BootSettings from './BootSettings'; import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin'; import Alert from '@/components/Global/Alert'; +import PopoverWithSlot from '@/components/Global/SilaComponents/PopoverWithSlot'; export default { name: 'ServerPowerOperations', - components: { PageTitle, PageSection, BootSettings, Alert }, + components: { + PageTitle, + PageSection, + BootSettings, + Alert, + PopoverWithSlot, + }, mixins: [BVToastMixin, LoadingBarMixin], beforeRouteLeave(to, from, next) { this.hideLoader(); @@ -207,52 +259,18 @@ export default { this.$store.dispatch('controls/serverPowerOn'); }, rebootServer() { - const modalMessage = this.$t( - 'pageServerPowerOperations.modal.confirmRebootMessage' - ); - const modalOptions = { - title: this.$t('pageServerPowerOperations.modal.confirmRebootTitle'), - okTitle: this.$t('global.action.confirm'), - cancelTitle: this.$t('global.action.cancel'), - }; - if (this.form.rebootOption === 'orderly') { - this.$bvModal - .msgBoxConfirm(modalMessage, modalOptions) - .then((confirmed) => { - if (confirmed) this.$store.dispatch('controls/serverSoftReboot'); - }); + this.$store.dispatch('controls/serverSoftReboot'); } else if (this.form.rebootOption === 'immediate') { - this.$bvModal - .msgBoxConfirm(modalMessage, modalOptions) - .then((confirmed) => { - if (confirmed) this.$store.dispatch('controls/serverHardReboot'); - }); + this.$store.dispatch('controls/serverHardReboot'); } }, shutdownServer() { - const modalMessage = this.$t( - 'pageServerPowerOperations.modal.confirmShutdownMessage' - ); - const modalOptions = { - title: this.$t('pageServerPowerOperations.modal.confirmShutdownTitle'), - okTitle: this.$t('global.action.confirm'), - cancelTitle: this.$t('global.action.cancel'), - }; - if (this.form.shutdownOption === 'orderly') { - this.$bvModal - .msgBoxConfirm(modalMessage, modalOptions) - .then((confirmed) => { - if (confirmed) this.$store.dispatch('controls/serverSoftPowerOff'); - }); + this.$store.dispatch('controls/serverSoftPowerOff'); } if (this.form.shutdownOption === 'immediate') { - this.$bvModal - .msgBoxConfirm(modalMessage, modalOptions) - .then((confirmed) => { - if (confirmed) this.$store.dispatch('controls/serverHardPowerOff'); - }); + this.$store.dispatch('controls/serverHardPowerOff'); } }, }, diff --git a/src/views/PowerSupplies/Specification/PowerStaticPage.vue b/src/views/PowerSupplies/Specification/PowerStaticPage.vue index 8ff1aa1b..3511b1f7 100644 --- a/src/views/PowerSupplies/Specification/PowerStaticPage.vue +++ b/src/views/PowerSupplies/Specification/PowerStaticPage.vue @@ -32,10 +32,7 @@ - + diff --git a/src/views/Processors/Specification/AcceleratorSpecificationTable.vue b/src/views/Processors/Specification/AcceleratorSpecificationTable.vue index 1be41ac2..c13e13ff 100644 --- a/src/views/Processors/Specification/AcceleratorSpecificationTable.vue +++ b/src/views/Processors/Specification/AcceleratorSpecificationTable.vue @@ -18,16 +18,13 @@ +
- Страница - - 1 - из - 123 - + Страницы +
Показывать по записей на странице + + {{ $t('global.action.exportAll') }} +
@@ -272,19 +301,28 @@ diff --git a/src/views/SystemDescription/Info/InventoryTableSystem.vue b/src/views/SystemDescription/Info/InventoryTableSystem.vue index f903a46b..eef0d871 100644 --- a/src/views/SystemDescription/Info/InventoryTableSystem.vue +++ b/src/views/SystemDescription/Info/InventoryTableSystem.vue @@ -4,7 +4,7 @@ responsive="md" show-empty class="bootstrap-rounded-table" - :items="systems" + :items="items" :fields="fields" :empty-text="$t('global.table.emptyMessage')" > @@ -15,14 +15,14 @@ diff --git a/src/views/SystemDescription/Info/SystemDescription.vue b/src/views/SystemDescription/Info/SystemDescription.vue index 558c70ef..b5cde965 100644 --- a/src/views/SystemDescription/Info/SystemDescription.vue +++ b/src/views/SystemDescription/Info/SystemDescription.vue @@ -6,87 +6,61 @@
-
- - {{ $t('SystemDescription.title.ServerConfig') }} - - - - - -
-
- {{ $t('SystemDescription.title.Notes') }} -
-
-
- - - - - -
- - -
- -
-
-
-
- -
- - {{ $t('SystemDescription.title.Control') }} - - - - - -
+ + +
+
+ {{ $t('SystemDescription.title.Notes') }} +
+
+
+ + + + + +
+ + +
+ +
+
@@ -94,13 +68,11 @@