This commit is contained in:
2022-03-04 18:22:22 +05:30
parent 4ace33041e
commit eb1546d80c
2 changed files with 111 additions and 41 deletions

View File

@ -95,6 +95,8 @@ function Index() {
}
function doGetReport(){
console.log(isDownload());
console.log(downloadUrl);
if(report == "" || selectedcons == ""){
alert("建設とレポートの両方を選択してください");
return;
@ -111,13 +113,13 @@ function Index() {
//downloadReport(url);
}
else {
// if(graph){
// url = baseUrl + "/generate" + report + "?construction_id=" +selectedcons+"&graph=true";
// }
// else{
// url = baseUrl + "/generate" + report + "?construction_id=" +selectedcons;
// }
setDownloadUrl('');
if(graph){
url = baseUrl + "/generate" + report + "?construction_id=" +selectedcons+"&graph=true";
}
else{
url = baseUrl + "/generate" + report + "?construction_id=" +selectedcons;
}
setDownloadUrl(url);
//downloadReport(url);
}
}