Ver código fonte

修改平台我的链属导入点击确定无反应

zhanglb 3 anos atrás
pai
commit
9bbd6c8d8c

+ 6 - 3
front-vue/src/components/UploadImport/index.vue

@@ -68,15 +68,18 @@ export default {
                 return {}
             }
         },
-        handleFileUploadProgress: Function,
-        handleFileSuccess: Function
+        handleFileUploadProgress: Function
     },
     methods: {
         importTemplate() {
             this.$emit('importTemplate')
         },
         submitFileForm() {
-            this.$emit('submitFileForm')
+            this.$refs.upload.submit();
+        },
+        handleFileSuccess (response, file, fileList) {
+            this.$emit('handleFileSuccess', response, file, fileList)
+            this.$refs.upload.clearFiles();
         }
     }
 }

+ 2 - 7
front-vue/src/views/service/creditLine/supplierCreditLine.vue

@@ -82,9 +82,9 @@
         :visible.sync="upload.open"
         append-to-body
         :handleFileUploadProgress="handleFileUploadProgress"
-        :handleFileSuccess="handleFileSuccess"
+        @handleFileSuccess="handleFileSuccess"
         @importTemplate="importTemplate"
-        @submitFileForm="submitFileForm">
+      >
     </upload-import>
 </div>
 </template>
@@ -435,16 +435,11 @@ export default {
         handleFileSuccess(response, file, fileList) {
             this.upload.open = false;
             this.upload.isUploading = false;
-            this.$refs.upload.clearFiles();
             this.$alert(response.msg, "导入结果", {
                 dangerouslyUseHTMLString: true
             });
             this.getList();
         },
-        // 提交上传文件
-        submitFileForm() {
-            this.$refs.upload.submit();
-        },
         /** 导出按钮操作 */
         handleExport() {
             this.download(

+ 1 - 1
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -242,7 +242,7 @@
                 </el-tab-pane>
                 <!-- 添加或修改融资记录对话框 -->
                 <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
-                    <el-form ref="form" :model="form" :rules="rules" label-width="auto">
+                    <el-form ref="form" class="zap-form" :model="form" :rules="rules" label-width="auto">
                         <el-form-item label="实际放款金额" prop="zfrLoanAmount">
                             <el-input v-model="form.zfrLoanAmount" @input.native="changeRate($event,form.zfrLoanAmount)" placeholder="实际放款金额">
                                 <template slot="append">元</template>

+ 2 - 8
front-vue/src/views/service/rel/companyRel.vue

@@ -547,9 +547,8 @@
                     :visible.sync="upload.open"
                     append-to-body
                     :handleFileUploadProgress="handleFileUploadProgress"
-                    :handleFileSuccess="handleFileSuccess"
-                    @importTemplate="importTemplate"
-                    @submitFileForm="submitFileForm">
+                    @handleFileSuccess="handleFileSuccess"
+                    @importTemplate="importTemplate">
                 </upload-import>
             </el-tabs>
         </div>
@@ -909,7 +908,6 @@ export default {
         handleFileSuccess(response, file, fileList) {
             this.upload.open = false;
             this.upload.isUploading = false;
-            this.$refs.upload.clearFiles();
             this.$alert(response.msg, "导入结果", {
                 dangerouslyUseHTMLString: true
             });
@@ -917,10 +915,6 @@ export default {
             this.getSpare();
             this.getCompanyList();
         },
-        // 提交上传文件
-        submitFileForm() {
-            this.$refs.upload.submit();
-        },
         /** 查询链属列表 */
         getList() {
             this.loading = true;

+ 1 - 1
front-vue/src/views/service/repayment/detailRepayment.vue

@@ -6,7 +6,7 @@
         <el-button style="float:right;margin-right:3%" size="mini" type="text" icon="el-icon-view" @click="handleDownload(form.fileUrl)">下载</el-button>
         <el-button style="float:right;margin-right:3%" size="mini" type="text" icon="el-icon-view" @click="handlePreview(form.fileName,form.fileUrl)">预览</el-button>
     </div>
-    <el-row class="pb20 zap-bg">
+    <el-row class="pb20 zap-bg zap-form">
         <el-col :span="8">
             <div class="zap-form-text">
                 <span class="zap-form-text__label">还款明细编号</span>

+ 1 - 1
front-vue/src/views/service/repayment/repayment.vue

@@ -330,7 +330,7 @@
         </el-tab-pane>
 
         <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
-            <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+            <el-form ref="form" :model="form" :rules="rules" label-width="80px" class="zap-form">
                 <el-form-item label="上传附件">
                     <el-upload
                         ref="upload"