Optimize falukantService and DirectorInfo component for improved performance and user experience

- Refactored proposal handling in falukantService to load existing proposals before cleaning expired ones, reducing unnecessary database queries.
- Enhanced fetchProposals method with explicit joins for better performance and added a limit to avoid excessive data retrieval.
- Updated DirectorInfo component to reload data after hiring a director, ensuring the UI reflects the latest information.
This commit is contained in:
Torsten Schulz (local)
2026-01-22 10:15:45 +01:00
parent 3018b1f2e1
commit 8c0f07cc51
2 changed files with 42 additions and 6 deletions

View File

@@ -181,7 +181,7 @@
</div>
</div>
</div>
<NewDirectorDialog ref="newDirectorDialog" />
<NewDirectorDialog ref="newDirectorDialog" @directorHired="handleDirectorHired" />
</template>
<script>
@@ -276,6 +276,11 @@ export default {
this.$refs.newDirectorDialog.open(this.branchId);
},
async handleDirectorHired() {
// Nach dem Einstellen eines Direktors die Daten neu laden
await this.loadDirector();
},
async updateDirector() {
if (!this.director || this.editIncome == null) return;
try {