Stopka rozkazu z informacjami

This commit is contained in:
2022-07-20 21:38:25 +02:00
parent f953d8fe7f
commit 9a4a729449
7 changed files with 152 additions and 81 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineComponent } from 'vue';
import { useStore } from '../store/store';
export default defineComponent({
setup() {
return {
store: useStore(),
};
},
methods: {
generateFooter() {
const footer = this.store.orderFooter;
this.store.footerMessage = ' <b>|</b> ';
if (footer.stationName) this.store.footerMessage += ` Stacja: ${footer.stationName}`;
if (footer.checkpointName) this.store.footerMessage += ` Posterunek: ${footer.checkpointName}`;
if (footer.hour) this.store.footerMessage += `, godz. ${footer.hour}`;
if (footer.minutes) this.store.footerMessage += ` min. ${footer.minutes}`;
if (footer.dispatcherName) this.store.footerMessage += `, dyżurny ruchu ${footer.dispatcherName}`;
if (footer.secondaryDispatcherName)
this.store.footerMessage += `, z polecenia dyżurnego ruchu ${footer.secondaryDispatcherName}`;
},
},
});