armg 1 年之前
父节点
当前提交
991b2587ac

+ 3 - 5
ruoyi-ui/src/views/invest/components/fileItem.vue

@@ -21,8 +21,7 @@
 import { getToken } from "@/utils/auth";
 import { listFileBusinessId, delFile } from "@/api/system/file";
 export default {
-  props: {
-  },
+  props: {},
   data() {
     return {
       fileList: [],
@@ -48,6 +47,7 @@ export default {
               list[i].name = list[i].newUploadName;
             }
             this.fileList = list;
+            this.$emit("getFileList", this.fileList);
           }
         });
       }
@@ -84,9 +84,7 @@ export default {
 };
 </script>
 <style lang="scss">
-.uploadWrapper
-::v-deep .el-upload-list__item {
+.uploadWrapper ::v-deep .el-upload-list__item {
   transition: none !important;
 }
-
 </style>

+ 6 - 6
ruoyi-ui/src/views/invest/components/projectList.vue

@@ -621,7 +621,7 @@
         <el-form-item label="文件" class="special-el-form-item">
           <fileItem
             class="show_disabled"
-            ref="fileItems"
+            ref="fileItems1"
             :id="dueForm.id"
             @getFileList="getFileList"
           ></fileItem>
@@ -1112,29 +1112,28 @@ export default {
       let that = this;
       this.dueDiligenceType = type;
       //type 1=发起  2=修改  3=上传
-      console.log(type, row);
       if (type === "1") {
         this.resetDueForm();
         setTimeout(() => {
           that.$refs.fileItems.fileList = [];
-        }, 200);
+        }, 300);
         this.dueDiligenceTit = "发起尽调申请";
         this.dueDiligenceOpen = true;
       } else if (type === "2") {
         setTimeout(() => {
           that.$refs.fileItems.getListFileBusinessId(this.dueForm.id);
-        }, 200);
+        }, 300);
         this.dueDiligenceTit = "修改尽调申请";
         this.dueDiligenceOpen = true;
       } else if (type === "3") {
         this.duePeportForm.projectInvestigateId = this.dueForm.id;
         setTimeout(() => {
-          that.$refs.fileItems.getListFileBusinessId(this.dueForm.id);
           that.$refs.reportFileItems.fileList = [];
           that.$refs.reportFileItems.getListFileBusinessId(
             this.duePeportForm.id
           );
-        }, 200);
+          that.$refs.fileItems1.getListFileBusinessId(this.dueForm.id);
+        }, 300);
         this.dueDiligenceTit1 = "上传尽调报告";
         getProjectInvestigateId(this.dueForm.id).then((response) => {
           if (response.data) {
@@ -1150,6 +1149,7 @@ export default {
     submitduePeportForm() {
       this.$refs["duePeportForm"].validate((valid) => {
         if (valid) {
+          this.duePeportForm.projectPoolId = this.dueForm.projectPoolId;
           this.duePeportForm.listFile = this.reportFileList;
           addInvestigatePerson(this.duePeportForm).then((response) => {
             this.$modal.msgSuccess("操作成功");