浏览代码

fix: 审核附件展示

zh 2 年之前
父节点
当前提交
cf472ce99f

+ 11 - 0
src/views/commercialEngineering/components/examine.vue

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

+ 9 - 0
src/views/commercialEngineering/crossDistrict/examine.vue

@@ -33,6 +33,15 @@ export default {
         isSpan: true
 
       }
+      if (this.formData.files.length) {
+        this.formData.files = this.formData.files.map(k => {
+          return {
+            ...k,
+            fileName: k.name,
+            fileUrl: k.url
+          }
+        })
+      }
       if (params.loginStatus === 'FAIL' && !params.projectNo) {
         this.$errorMsg('请填写项目编号')
         return

+ 11 - 1
src/views/commercialEngineering/frock/examine.vue

@@ -28,10 +28,20 @@ export default {
   methods: {
     onSbumit() {
       const params = {
-        ...this.formData,
+        ...this.formData
 
       }
 
+      if (this.formData.files.length) {
+        this.formData.files = this.formData.files.map(k => {
+          return {
+            ...k,
+            fileName: k.name,
+            fileUrl: k.url
+          }
+        })
+      }
+
       if (params.loginStatus === 'FAIL' && !params.projectNo) {
         this.$errorMsg('请填写项目编号')
         return

+ 9 - 0
src/views/commercialEngineering/homeDecoration/examine.vue

@@ -31,6 +31,15 @@ export default {
       const params = {
         ...this.formData
       }
+      if (this.formData.files.length) {
+        this.formData.files = this.formData.files.map(k => {
+          return {
+            ...k,
+            fileName: k.name,
+            fileUrl: k.url
+          }
+        })
+      }
       if (params.loginStatus === 'FAIL' && !params.projectNo) {
         this.$errorMsg('请填写项目编号')
         return