mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawki stylów i kodu
This commit is contained in:
@@ -317,8 +317,6 @@ export default defineComponent({
|
|||||||
await axios.get(`${TIMETABLES_API_URL}?${this.currentQuery}&countFrom=${countFrom}`)
|
await axios.get(`${TIMETABLES_API_URL}?${this.currentQuery}&countFrom=${countFrom}`)
|
||||||
).data;
|
).data;
|
||||||
|
|
||||||
console.log('Loading...');
|
|
||||||
|
|
||||||
if (!responseData?.response) return;
|
if (!responseData?.response) return;
|
||||||
|
|
||||||
if (responseData.response.length == 0) {
|
if (responseData.response.length == 0) {
|
||||||
|
|||||||
@@ -118,8 +118,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
if (apiResult.errorMessage) return;
|
if (apiResult.errorMessage) return;
|
||||||
|
|
||||||
console.log(apiResult);
|
|
||||||
|
|
||||||
const dispatcherHistoryResult = apiResult.response;
|
const dispatcherHistoryResult = apiResult.response;
|
||||||
this.savedSceneryHistory = dispatcherHistoryResult;
|
this.savedSceneryHistory = dispatcherHistoryResult;
|
||||||
|
|
||||||
|
|||||||
@@ -167,10 +167,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
handleChangeRegion() {
|
handleChangeRegion() {
|
||||||
this.$store.commit(MUTATIONS.SET_REGION, this.currentRegion);
|
this.$store.commit(MUTATIONS.SET_REGION, this.currentRegion);
|
||||||
|
|
||||||
console.log(this.currentRegion);
|
|
||||||
|
|
||||||
|
|
||||||
this.closeCard();
|
this.closeCard();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ export default defineComponent({
|
|||||||
.timetable_progress-bar {
|
.timetable_progress-bar {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
width: 100px;
|
width: 6em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
|
||||||
.bar-fg,
|
.bar-fg,
|
||||||
@@ -212,6 +212,8 @@ export default defineComponent({
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bar-fg {
|
.bar-fg {
|
||||||
|
|||||||
@@ -144,7 +144,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
toggleTimetable(train: Train, state?: boolean) {
|
toggleTimetable(train: Train, state?: boolean) {
|
||||||
const id = this.getTrainId(train);
|
const id = this.getTrainId(train);
|
||||||
console.log(id, this);
|
|
||||||
|
|
||||||
if (state !== undefined) {
|
if (state !== undefined) {
|
||||||
this.chosenTrainId = state ? id : null;
|
this.chosenTrainId = state ? id : null;
|
||||||
@@ -158,10 +157,6 @@ export default defineComponent({
|
|||||||
this.chosenTrainId = null;
|
this.chosenTrainId = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
showTrainId(train: Train) {
|
|
||||||
console.log(this.getTrainId(train));
|
|
||||||
},
|
|
||||||
|
|
||||||
getTrainId(train: Train) {
|
getTrainId(train: Train) {
|
||||||
return train.driverName + train.trainNo.toString();
|
return train.driverName + train.trainNo.toString();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ export const store = createStore<State>({
|
|||||||
const onlineStationNames: string[] = [];
|
const onlineStationNames: string[] = [];
|
||||||
const prevDispatcherStatuses: State['lastDispatcherStatuses'] = [];
|
const prevDispatcherStatuses: State['lastDispatcherStatuses'] = [];
|
||||||
|
|
||||||
console.log(data.dispatchers);
|
|
||||||
data.stations?.forEach((stationAPI) => {
|
data.stations?.forEach((stationAPI) => {
|
||||||
if (stationAPI.region !== this.state.region.id || !stationAPI.isOnline) return;
|
if (stationAPI.region !== this.state.region.id || !stationAPI.isOnline) return;
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
const query = this.$route.query;
|
const query = this.$route.query;
|
||||||
console.log(this.$route.query);
|
|
||||||
|
|
||||||
if(query.sceneryName) this.journalTypeChosen = 'dispatchers';
|
if(query.sceneryName) this.journalTypeChosen = 'dispatchers';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user