calcul model sur bouton

This commit is contained in:
Jérôme Delacotte
2025-05-12 13:37:51 +02:00
parent 16783a79be
commit edaf3dbcfb
8 changed files with 139 additions and 42 deletions

View File

@@ -547,6 +547,16 @@ function initReport(data) {
indicators.innerHTML = string
}
function generateModel() {
const element = document.getElementById('current_file_name');
let filename = element.value
const indicators = Array.from(selectedReportIndicators).join(',');
fetch(`/generate_model?filename=${filename}`)
.then(alert('Generation en cours'));
}
function generateReport() {
const element = document.getElementById('current_file_name');