diff --git a/Libs/CMS_CORE_Library.dll b/Libs/CMS_CORE_Library.dll index cc9b58eb..89938fb8 100644 Binary files a/Libs/CMS_CORE_Library.dll and b/Libs/CMS_CORE_Library.dll differ diff --git a/Step/wwwroot/assets/styles/base/info-equipment.less b/Step/wwwroot/assets/styles/base/info-equipment.less index a03de2b3..e7f14900 100644 --- a/Step/wwwroot/assets/styles/base/info-equipment.less +++ b/Step/wwwroot/assets/styles/base/info-equipment.less @@ -29,7 +29,7 @@ margin-right: 16px; } } - .info-equipment-body{ + .info-equipment-body{ height: calc(~'100% - 52px'); width: 100%; display: flex; diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 501768df..70a5bedc 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -4558,6 +4558,9 @@ footer .container button.big:before { align-items: center; margin-left: auto; } +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-left-filter .group-button .btn:last-child { + margin-right: 0; +} .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-left-filter .multiselect { z-index: 100; } @@ -4659,36 +4662,29 @@ footer .container button.big:before { } .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(1), .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(1) { - width: 50px; - max-width: 50px; - text-align: right; - padding-left: 5px; -} -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(2), -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(2) { width: 100px; max-width: 100px; } -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(3), -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(3) { - width: 450px; - max-width: 450px; +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(2), +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(2) { + width: 550px; + max-width: 550px; text-align: left; } -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(4), -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(4) { +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(3), +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(3) { width: 150px; max-width: 150px; text-align: left; } -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(5), -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(5) { +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(4), +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(4) { width: 100px; max-width: 100px; text-align: left; } -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(6), -.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(6) { +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table th:nth-child(5), +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table td:nth-child(5) { width: 100px; max-width: 100px; } @@ -4814,19 +4810,20 @@ footer .container button.big:before { font-size: 18px; font-weight: bold; color: #d0021b; - margin-bottom: 2px; + margin-bottom: 6px; } .alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle { - margin-bottom: 3px; + margin-bottom: 15px; } -.alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle label { - width: 64px; +.alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle span { height: 21px; border: solid 1px #9b9b9b; font-size: 14px; font-weight: 600; line-height: 1.29; color: #4b4b4b; + padding: 0 5px; + margin: 0 3px 0 0px; } .alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .date { margin-bottom: 8px; diff --git a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts index 98ff3787..ea6609b1 100644 --- a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts +++ b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts @@ -148,6 +148,8 @@ export default class AlarmHistory extends Vue { async mounted() { var $this = this; + ModalHelper.HideModal("modal-internal"); + this.users = await awaiter(loginService.getAllUsers()); this.users.unshift({ id: -1, username: this.$options.filters.localize("alarm_history_users_not_user", "Nessun utente") }); this.paginationData = await awaiter(alarmsService.getAlarmsData()); diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts index a811464a..3bafdc6d 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts @@ -512,7 +512,7 @@ export default class depot extends Vue { public dataForOpenInfoNcShank(id) { let shank = (this.$store.state as AppModel).tooling.ncShanks.find(s => s.id == id); - + ModalHelper.infoEquipmentModal.enableModalShank = true; ModalHelper.infoEquipmentModal.enableModalTool = false; ModalHelper.infoEquipmentModal.currentShank = shank; @@ -550,11 +550,12 @@ export default class depot extends Vue { } public dataForOpenInfoNcEquipment(id) { - let tool = (this.$store.state as AppModel).tooling.ncTools.find(t => t.id == id); - if (tool) { + let shank = (this.$store.state as AppModel).tooling.ncShanks.find(t => t.id == id); + + if (shank.childsTools.length == 1) { ModalHelper.infoEquipmentModal.enableModalShank = false; ModalHelper.infoEquipmentModal.enableModalTool = true; - ModalHelper.infoEquipmentModal.currentEquipment = tool; + ModalHelper.infoEquipmentModal.currentEquipment = shank.childsTools[0]; ModalHelper.infoEquipmentModal.editEnabled = !this.editable; ModalHelper.ShowModal(InfoEquipment); }