Änderung: Bereinigung und Optimierung der Protokollausgaben in mehreren Vue-Komponenten

Änderungen:
- Entfernen von überflüssigen Protokollausgaben in den Methoden `setupSocketEvents` und `handleEvent` in den Komponenten BankView.vue, BranchView.vue, DirectorView.vue, FamilyView.vue, HealthView.vue, HouseView.vue, NobilityView.vue und OverviewView.vue.
- Diese Anpassungen verbessern die Lesbarkeit des Codes und reduzieren die Menge an Konsolenausgaben, was die Wartbarkeit der Anwendung erhöht.
This commit is contained in:
Torsten Schulz (local)
2025-09-12 15:38:45 +02:00
parent 2a3a2b258f
commit b26bc0eb8b
9 changed files with 2 additions and 73 deletions

View File

@@ -202,8 +202,6 @@ export default {
},
handleEvent(eventData) {
console.log('🔄 BranchView: handleEvent aufgerufen mit:', eventData);
console.log('🔄 BranchView: Event-Typ:', eventData.event);
switch (eventData.event) {
case 'production_ready':
this.$refs.productionSection?.loadProductions();
@@ -229,41 +227,21 @@ export default {
break;
case 'falukantUpdateStatus':
case 'falukantBranchUpdate':
console.log('🔄 BranchView: Lade alle Sektionen für', eventData.event);
console.log('🔄 BranchView: StatusBar ref:', this.$refs.statusBar);
console.log('🔄 BranchView: ProductionSection ref:', this.$refs.productionSection);
console.log('🔄 BranchView: StorageSection ref:', this.$refs.storageSection);
console.log('🔄 BranchView: SaleSection ref:', this.$refs.saleSection);
if (this.$refs.statusBar) {
console.log('🔄 BranchView: Rufe StatusBar.fetchStatus() auf...');
this.$refs.statusBar.fetchStatus();
} else {
console.log('⚠️ BranchView: StatusBar ref nicht verfügbar');
}
if (this.$refs.productionSection) {
console.log('🔄 BranchView: Rufe ProductionSection.loadProductions() auf...');
this.$refs.productionSection.loadProductions();
} else {
console.log('⚠️ BranchView: ProductionSection ref nicht verfügbar');
}
if (this.$refs.storageSection) {
console.log('🔄 BranchView: Rufe StorageSection.loadStorageData() auf...');
this.$refs.storageSection.loadStorageData();
} else {
console.log('⚠️ BranchView: StorageSection ref nicht verfügbar');
}
if (this.$refs.saleSection) {
console.log('🔄 BranchView: Rufe SaleSection.loadInventory() auf...');
this.$refs.saleSection.loadInventory();
} else {
console.log('⚠️ BranchView: SaleSection ref nicht verfügbar');
}
console.log('✅ BranchView: Alle Sektionen aktualisiert');
break;
case 'knowledge_update':
this.loadProducts();