소스 검색

PSSR主清单导出

wangggziwen 6 달 전
부모
커밋
838624dc40
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 1
      master/src/main/java/com/ruoyi/project/pssr/controller/TPssrApproveController.java
  2. 1 1
      ui/src/views/pssr/aboveall/index.vue

+ 4 - 1
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrApproveController.java

@@ -1193,7 +1193,10 @@ public class TPssrApproveController extends BaseController {
             }
             }
         }
         }
         try {
         try {
-            ZipUtil.toZipWithDirectory(rootPath, downloadPath + "pssr.zip");//打包
+            String zipName = "pssr_" + id + ".zip";
+            ZipUtil.toZipWithDirectory(rootPath, downloadPath + zipName);//打包
+            aboveall.setZipUrl(zipName);
+            tPssrAboveallService.updateTPssrAboveall(aboveall);
         } catch (IOException e) {
         } catch (IOException e) {
             e.printStackTrace();
             e.printStackTrace();
         }
         }

+ 1 - 1
ui/src/views/pssr/aboveall/index.vue

@@ -432,7 +432,7 @@ export default {
         cancelButtonText: "取消",
         cancelButtonText: "取消",
         type: "warning"
         type: "warning"
       }).then(function () {
       }).then(function () {
-        _this.downloadForm.fileName = "pssr.zip";
+        _this.downloadForm.fileName = row.zipUrl;
         _this.downloadForm.delete = false;
         _this.downloadForm.delete = false;
         _this.$refs['downloadForm'].submit();
         _this.$refs['downloadForm'].submit();
       });
       });