Bugfix: user supplier with d2d routing, Bugfix: indeterminate in Destination Manager, Removed Azure maps dependency in frontend, adjusted logmessage (memory, startup)
This commit is contained in:
parent
6e80beda14
commit
1f5dc0e6ff
4 changed files with 11 additions and 9 deletions
|
|
@ -14,7 +14,6 @@
|
|||
"dependencies": {
|
||||
"@phosphor-icons/vue": "^2.2.1",
|
||||
"@vueuse/core": "^13.6.0",
|
||||
"azure-maps-control": "^3.6.1",
|
||||
"chart.js": "^4.5.0",
|
||||
"leaflet": "^1.9.4",
|
||||
"loglevel": "^1.9.2",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
:key="`${dest.id}-${dest.overallCheck}-${dest.overallIndeterminate}`"
|
||||
v-for="dest in destPool">
|
||||
<checkbox :checked="dest.overallCheck" :indeterminate="dest.overallIndeterminate"
|
||||
@checkbox-changed="updateOverallCheck($event, dest.id)"></checkbox>
|
||||
@checkbox-changed="setOverallCheck($event, dest.id)"></checkbox>
|
||||
{{ toNode(dest, 6) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -115,8 +115,7 @@ export default {
|
|||
const totalCount = this.destMatrix.length;
|
||||
|
||||
dest.overallCheck = selectedCount === totalCount;
|
||||
dest.overallIndeterminate = selectedCount > 0 && selectedCount < totalCount;
|
||||
|
||||
dest.overallIndeterminate = selectedCount > 0 && !dest.overallCheck;
|
||||
this.$forceUpdate();
|
||||
|
||||
},
|
||||
|
|
@ -131,9 +130,13 @@ export default {
|
|||
this.destMatrix.forEach(p => p.destinations.push({...destination, selected: false}));
|
||||
}
|
||||
},
|
||||
updateOverallCheck(newValue, id) {
|
||||
this.destPool.find(d => d.id === id).overallCheck = newValue;
|
||||
setOverallCheck(newValue, id) {
|
||||
const header = this.destPool.find(d => d.id === id);
|
||||
header.overallCheck = newValue;
|
||||
header.overallIndeterminate = false;
|
||||
|
||||
this.destMatrix.forEach(r => r.destinations.find(d => d.id === id).selected = newValue);
|
||||
this.$forceUpdate();
|
||||
},
|
||||
async fetch(query) {
|
||||
const supplierQuery = {searchTerm: query, includeUserNode: true, nodeType: "DESTINATION"};
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@ public class LccApplication {
|
|||
|
||||
Runtime runtime = Runtime.getRuntime();
|
||||
long usedMemory = (runtime.totalMemory() - runtime.freeMemory()) / 1024 / 1024;
|
||||
logger.info("LCC Start - Memory: {} used, {} total, {} free, {} max ", usedMemory, runtime.totalMemory() / 1024 / 1024, runtime.freeMemory() / 1024 / 1024, runtime.maxMemory() / 1024 / 1024);
|
||||
logger.info("LCC Launcher (start) - Memory: {} used, {} total, {} free, {} max ", usedMemory, runtime.totalMemory() / 1024 / 1024, runtime.freeMemory() / 1024 / 1024, runtime.maxMemory() / 1024 / 1024);
|
||||
|
||||
SpringApplication.run(LccApplication.class, args);
|
||||
|
||||
usedMemory = (runtime.totalMemory() - runtime.freeMemory()) / 1024 / 1024;
|
||||
logger.info("LCC End - Memory: {} used, {} total, {} free, {} max ", usedMemory, runtime.totalMemory() / 1024 / 1024, runtime.freeMemory() / 1024 / 1024, runtime.maxMemory() / 1024 / 1024);
|
||||
logger.info("LCC Launcher (finished) - Memory: {} used, {} total, {} free, {} max ", usedMemory, runtime.totalMemory() / 1024 / 1024, runtime.freeMemory() / 1024 / 1024, runtime.maxMemory() / 1024 / 1024);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public class RouteSectionCostCalculationService {
|
|||
result.setUnmixedPrice(premise.getHuMixable());
|
||||
|
||||
// Get nodes and distance
|
||||
Node fromNode = nodeRepository.getById(premise.getSupplierNodeId()).orElseThrow();
|
||||
Node fromNode = premise.getSupplierNodeId() != null ? nodeRepository.getById(premise.getSupplierNodeId()).orElseThrow() : userNodeRepository.getById(premise.getUserSupplierNodeId()).orElseThrow();
|
||||
Node toNode = nodeRepository.getById(destination.getDestinationNodeId()).orElseThrow();
|
||||
|
||||
double distance = distanceService.getDistance(fromNode, toNode, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue