mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Poprawka z godziną porzuconego RJ
This commit is contained in:
@@ -52,15 +52,16 @@
|
|||||||
<span>{{ localeTime(item.scheduledBeginDate, $i18n.locale) }} </span>•
|
<span>{{ localeTime(item.scheduledBeginDate, $i18n.locale) }} </span>•
|
||||||
|
|
||||||
<!-- Data przyjazdu na stację końcową / porzucenia -->
|
<!-- Data przyjazdu na stację końcową / porzucenia -->
|
||||||
<b v-if="(item.fulfilled && item.terminated) || !item.terminated"
|
<b v-if="(item.fulfilled && item.terminated) || !item.terminated">
|
||||||
>{{ item.route.split('|').slice(-1)[0] }}:</b
|
{{ item.route.split('|').slice(-1)[0] }}:
|
||||||
>
|
</b>
|
||||||
<i v-else>{{ $t('history.timetable-abandoned') }} </i>
|
<i v-else>{{ $t('history.timetable-abandoned') }} </i>
|
||||||
|
|
||||||
|
|
||||||
<s v-if="item.endDate != item.scheduledEndDate && item.terminated" class="text--grayed">
|
<s v-if="item.endDate != item.scheduledEndDate && item.terminated" class="text--grayed">
|
||||||
{{ localeTime(item.endDate, $i18n.locale) }}
|
{{ localeTime(item.fulfilled ? item.endDate : item.scheduledEndDate, $i18n.locale) }}
|
||||||
</s>
|
</s>
|
||||||
<span>{{ localeTime(item.scheduledEndDate, $i18n.locale) }} </span>
|
<span>{{ localeTime(item.fulfilled ? item.scheduledEndDate : item.endDate, $i18n.locale) }} </span>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -120,7 +121,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { computed, defineComponent, onMounted, onUnmounted, provide, reactive, Ref, ref } from 'vue';
|
import { computed, defineComponent, provide, reactive, Ref, ref } from 'vue';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import SearchBox from '@/components/Global/SearchBox.vue';
|
import SearchBox from '@/components/Global/SearchBox.vue';
|
||||||
@@ -317,6 +318,7 @@ export default defineComponent({
|
|||||||
else queries.push('sortBy=timetableId');
|
else queries.push('sortBy=timetableId');
|
||||||
|
|
||||||
queries.push('countLimit=15');
|
queries.push('countLimit=15');
|
||||||
|
// queries.push('fulfilled=0', 'terminated=1');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const responseData: APIResponse | null = await (await axios.get(`${API_URL}?${queries.join('&')}`)).data;
|
const responseData: APIResponse | null = await (await axios.get(`${API_URL}?${queries.join('&')}`)).data;
|
||||||
@@ -464,7 +466,6 @@ li,
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.loading-label {
|
.loading-label {
|
||||||
|
|
||||||
background: #333;
|
background: #333;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user