Selaa lähdekoodia

fix: 附件bug

zh 2 vuotta sitten
vanhempi
commit
2414c3592d

+ 1 - 1
src/views/commercialEngineering/crossDistrict/examine.vue

@@ -34,7 +34,7 @@ export default {
 
       }
       if (this.formData.files.length) {
-        this.formData.files = this.formData.files.map(k => {
+        params.files = this.formData.files.map(k => {
           return {
             ...k,
             fileName: k.name,

+ 2 - 4
src/views/commercialEngineering/frock/examine.vue

@@ -29,11 +29,9 @@ export default {
     onSbumit() {
       const params = {
         ...this.formData
-
       }
-
       if (this.formData.files.length) {
-        this.formData.files = this.formData.files.map(k => {
+        params.files = this.formData.files.map(k => {
           return {
             ...k,
             fileName: k.name,
@@ -41,7 +39,6 @@ export default {
           }
         })
       }
-
       if (params.loginStatus === 'FAIL' && !params.projectNo) {
         this.$errorMsg('请填写项目编号')
         return
@@ -55,6 +52,7 @@ export default {
         this.$errorMsg('项目编号不能审核项目编号')
         return
       }
+
       examineLoginFrock(params).then(res => {
         this.commonFn('审核成功')
       })

+ 1 - 1
src/views/commercialEngineering/homeDecoration/examine.vue

@@ -32,7 +32,7 @@ export default {
         ...this.formData
       }
       if (this.formData.files.length) {
-        this.formData.files = this.formData.files.map(k => {
+        params.files = this.formData.files.map(k => {
           return {
             ...k,
             fileName: k.name,