mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Przekierowanie do historii dr
This commit is contained in:
@@ -133,7 +133,12 @@ export default defineComponent({
|
||||
mixins: [dateMixin],
|
||||
|
||||
props: {
|
||||
searchedSceneryName: {
|
||||
sceneryName: {
|
||||
type: String,
|
||||
required: false,
|
||||
},
|
||||
|
||||
dispatcherName: {
|
||||
type: String,
|
||||
required: false,
|
||||
},
|
||||
@@ -202,16 +207,25 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
mounted() {
|
||||
const query = this.$route.query;
|
||||
|
||||
console.log("Mounted");
|
||||
|
||||
|
||||
if (query.sceneryName || query.dispatcherName) {
|
||||
this.searchersValues[1].value = query.sceneryName?.toString() || "";
|
||||
this.searchersValues[0].value = query.dispatcherName?.toString() || "";
|
||||
|
||||
this.search();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.fetchHistoryData();
|
||||
},
|
||||
|
||||
activated() {
|
||||
window.addEventListener('scroll', this.handleScroll);
|
||||
|
||||
if (this.searchedSceneryName) {
|
||||
this.searchersValues[1].value = this.searchedSceneryName;
|
||||
this.search();
|
||||
}
|
||||
},
|
||||
|
||||
deactivated() {
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<!-- Nick dyżurnego -->
|
||||
<div v-if="item.authorName">
|
||||
<b class="text--grayed">{{ $t('journal.dispatcher-name') }} </b>
|
||||
<b>{{ item.authorName }}</b>
|
||||
<router-link class="dispatcher-link" :to="`/journal?view=dispatchers&dispatcherName=${item.authorName}`">{{ item.authorName }}</router-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -437,4 +437,8 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dispatcher-link {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user