hanfucheng пре 7 месеци
родитељ
комит
f27b28b92f

+ 2 - 2
lawenforcement-ui/src/views/lawenforcement/record/index.vue

@@ -708,8 +708,6 @@ export default {
     },
     //审批
     submit(id, type) {
-      console.log(id)
-      console.log(type)
       this.form.id = id
       this.form.isRegister = type
       const form = this.form
@@ -764,6 +762,8 @@ export default {
           this.title = res.data.type
           if (res.data.attachPath !== undefined) {
             this.attachPath = res.data.attachPath;
+          }else {
+            this.attachPath = null
           }
           this.describe = res.data.describe;
         }

+ 4 - 2
src/main/java/com/sooka/sponest/lawenforcement/record/service/impl/LawenforcementRecordServiceImpl.java

@@ -468,8 +468,10 @@ public class LawenforcementRecordServiceImpl extends BaseServiceImpl implements
         if (fillForm != null) {
             StringBuilder newDiles = new StringBuilder();
             String filename = fillForm.getAttachName();
-            newDiles.append(fillForm.getAttachPath()).append("+").append(filename);
-            fillForm.setAttachPath(newDiles.toString());
+            if (StringUtils.isNotEmpty(fillForm.getAttachPath())){
+                newDiles.append(fillForm.getAttachPath()).append("+").append(filename);
+                fillForm.setAttachPath(newDiles.toString());
+            }
         }
         return fillForm;
     }