فهرست منبع

PSSR主清单导出

wangggziwen 6 ماه پیش
والد
کامیت
838624dc40

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

@@ -1193,7 +1193,10 @@ public class TPssrApproveController extends BaseController {
             }
         }
         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) {
             e.printStackTrace();
         }

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

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