Poprawki w order helperze

This commit is contained in:
2022-10-21 01:06:23 +02:00
parent e3a256c09a
commit 43f03070b2
6 changed files with 111 additions and 2 deletions
+53
View File
@@ -0,0 +1,53 @@
<template>
<div class="order-helper g-modal">
<div class="modal-bg" @click="store.helperModalOpen = false"></div>
<div class="content modal-content">
<h2>Rozkazy pisemne - zastosowania w TD2</h2>
<hr />
<b>Rozkaz pisemny "S" (dot. semaforów)</b>
<p>Rozkaz pisemny "S" jest stosowany w następujących sytuacjach:</p>
<ul>
<li v-for="data in orderHelperData.orderS">{{ data }}</li>
</ul>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { useStore } from '../store/store';
import orderHelperData from '../data/orderHelperData.json';
export default defineComponent({
setup() {
return {
store: useStore(),
orderHelperData,
};
},
});
</script>
<style lang="scss" scoped>
.content {
width: 100%;
max-width: 800px;
height: 100vh;
max-height: 800px;
margin: 1em;
padding: 1em;
background-color: #2b2b2b;
text-align: center;
}
ul {
text-align: left;
list-style: inside;
}
</style>
+3 -1
View File
@@ -5,6 +5,8 @@
<img :src="saveIcon" alt="save icon" />
</button> -->
<!-- <button @click="store.helperModalOpen = true">?</button> -->
<button
v-for="orderType in orderTypeList"
:key="orderType.id"
@@ -51,7 +53,7 @@ export default defineComponent({
methods: {
selectOrderType(type: any) {
if (type != this.store.chosenOrderType) this.store.chosenLocalOrderId = '';
this.store.chosenOrderType = type;
},
},