Sfoglia il codice sorgente

1.下载压缩包添加申请人信息

leihy 2 anni fa
parent
commit
7136741fee

+ 3 - 2
src/main/resources/static/web/js/api/dealt.api.js

@@ -38,7 +38,7 @@ layui.define(['jquery', 'ajax', 'layer', 'constants'], (exports) => {
 				}
 			})
 		},
-		download: (id, serviceId) => {
+		download: (id, serviceId, sqrxm) => {
 			const index = layui.layer.load(0);
 			let xhr = new XMLHttpRequest();
 			xhr.responseType = "arraybuffer"; 
@@ -48,7 +48,8 @@ layui.define(['jquery', 'ajax', 'layer', 'constants'], (exports) => {
 				const aLink = document.createElement('a');
 				aLink.style.display = 'none';
 				aLink.href = window.URL.createObjectURL(blob);
-				aLink.download =  new Date().getTime() + '.zip';
+				//aLink.download =  new Date().getTime() + '.zip';
+				aLink.download =  sqrxm + '.zip';
 				document.body.appendChild(aLink);
 				aLink.click();
 				document.body.removeChild(aLink);

+ 1 - 1
src/main/resources/static/web/js/dealt.js

@@ -121,7 +121,7 @@ const initClick = (result) => {
 			})
 		} else if (obj.event == 'download') {
 			console.log(obj.data)
-			layui.api.download(obj.data.id, obj.data.data_id)
+			layui.api.download(obj.data.id, obj.data.data_id, obj.data.sqrxm)
 		}
 	})
 }

+ 1 - 1
src/main/resources/static/web/js/done.js

@@ -110,7 +110,7 @@ const initClick = (result) => {
 			})
 			layui.customUtil.autoView('.brume-main', '.brume-form')
 		} else if (obj.event == 'download') {
-			layui.api.download(obj.data.id, obj.data.dataId)
+			layui.api.download(obj.data.id, obj.data.dataId, obj.data.sqrxm)
 		}
 	})
 }

+ 1 - 1
src/main/resources/static/web/js/process.js

@@ -132,7 +132,7 @@ const initClick = (result) => {
 
 		} else if (obj.event == 'download') {
 			console.log(obj.data)
-			layui.api.download(obj.data.id, obj.data.data_id)
+			layui.api.download(obj.data.id, obj.data.data_id, obj.data.sqrxm)
 		} else if (obj.event == 'useEvent') {
 			layui.layer.confirm('确认要补齐补证吗?', {
 				btn: ['补齐补证', '取消']