Browse Source

资料上传

panyong 4 years ago
parent
commit
719a1d9300

+ 0 - 1
htmldev/loan/src/views/loan/attest/components/myUploader.vue

@@ -52,7 +52,6 @@
         })
         })
         Promise.all(result).then(res => {
         Promise.all(result).then(res => {
           res.forEach((item, index) => {
           res.forEach((item, index) => {
-            console.log(item)
             if (item.filePath && item.filePath.startsWith('http')) {
             if (item.filePath && item.filePath.startsWith('http')) {
               fileList[index].url = item.filePath
               fileList[index].url = item.filePath
             }
             }

+ 5 - 3
htmldev/loan/src/views/loan/attest/index.vue

@@ -25,7 +25,9 @@
                   :uploadType="uploadType1"
                   :uploadType="uploadType1"
                   @funSetUploadData="funSetUploadData"/>
                   @funSetUploadData="funSetUploadData"/>
     </div>
     </div>
-    <button class="submit disabled" @click="funSubmit">提交</button>
+    <button class="submit" :class="creditReport.length && houseProperty.length ? 'active' : 'disabled'"
+            @click="funSubmit">提交
+    </button>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -80,8 +82,8 @@
       funSubmit () {
       funSubmit () {
         const postData = {
         const postData = {
           id: this.id,
           id: this.id,
-          checkContent1: this.creditReport,
-          checkContent2: this.houseProperty
+          checkContent1: this.creditReport.map(item => item.url),
+          checkContent2: this.houseProperty.map(item => item.url)
         }
         }
         if (!this.verifyData()) {
         if (!this.verifyData()) {
           Toast({
           Toast({