zh %!s(int64=2) %!d(string=hai) anos
pai
achega
71abfea3df

+ 8 - 1
src/views/commercialEngineering/components/base.vue

@@ -520,7 +520,14 @@ export default {
           this.formData.loginStatus = 'OK'
           this.formData.loginStatus = 'OK'
         }
         }
         if (this.module === 'examine') {
         if (this.module === 'examine') {
-          this.formData.files = []
+          const item = this.formData.files
+          this.formData.files = item.map(k => {
+            return {
+              ...k,
+              name: k.fileName,
+              url: k.fileUrl
+            }
+          })
         }
         }
 
 
         if (this.formData.homeProjectNameRadio === 'SELF') {
         if (this.formData.homeProjectNameRadio === 'SELF') {

+ 1 - 9
src/views/commercialEngineering/components/examine.vue

@@ -144,15 +144,7 @@ export default {
     }
     }
   },
   },
   created() {
   created() {
-    if (this.formData.id) {
-      this.formData.files = this.formData.files.map(k => {
-        return {
-          ...k,
-          name: k.fileName,
-          url: k.fileUrl
-        }
-      })
-    }
+
   },
   },
   methods: {
   methods: {
     onSbumit() {},
     onSbumit() {},