change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-16 15:08:12 +05:30
parent 3a641b93fe
commit f88ed1524d
44 changed files with 202 additions and 2 deletions

View File

@ -115,7 +115,7 @@ function Index() {
}
function downloadReport(url) {
fetch(url , { headers })
fetch(url)
.then(response => {
console.log(response)
const filename = response.headers.get('Content-Disposition').split('filename=')[1];
@ -220,7 +220,6 @@ function Index() {
<option value="">-- レポート種類 --</option>
<option value="BoxDisplacement">函体変位表</option>
<option value="MachineControl">オープンシールドマシン管理日報</option>
<option value="MachineSheet">オープンシールド機変位表</option>
<option value="Measurement">函底高偏位量測定一覧表</option>
<option value="CheckSheet">工程内検査表</option>
<option value="Injection">裏込注入材料受払い簿</option>