liuhj vor 6 Monaten
Ursprung
Commit
ff03f539c6

+ 1 - 1
src/components/OP/Groupedit.vue

@@ -652,7 +652,7 @@ export default {
                 this.commissionlevel( this.ruleForm.opRoyaltyLv)
             }
             if(val==770){
-                this.ruleForm.opRoyaltyLv=995
+                this.ruleForm.opRoyaltyLv=998
                 this.commissionlevel( this.ruleForm.opRoyaltyLv)
             }
         },

+ 16 - 13
src/components/OP/OpInvitationOfficialActivities.vue

@@ -358,8 +358,8 @@
                     </div>
                     <div style="width: 385px;">
                         <el-form-item label="附件:" prop="fileUrl" label-width="160px">
-                            <el-upload :file-list="uploadFiles" ref="upload" :on-success="upLoadSuccess"
-                                :on-error="upLoadError" :before-remove="beforeRemove" :on-change="onChange" :limit="1"
+                            <el-upload :file-list="uploadFiles" multiple ref="upload" :on-success="upLoadSuccess"
+                                :on-error="upLoadError" :before-remove="beforeRemove" :on-change="onChange" :limit="10"
                                 :on-exceed="exceed" :action="uploadURL" :headers="headers" :auto-upload="false">
                                 <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
                                 <!-- <el-button style="margin-left: 10px;" size="small" type="success"
@@ -395,7 +395,7 @@ export default {
     data() {
         return {
             uploadURL: "http://132.232.92.186:8888/api/Groups/UploadProject",
-            projectName: "",
+            projectName: [],
             uploadFiles: [],//上传的文件列表
             DelfileName: "",
             title: "新增商邀费用",
@@ -723,8 +723,8 @@ export default {
                     that.InvitationOfficialActivities.inviterArea = res.data.data._Invitation.inviterArea;
                     that.InvitationOfficialActivities.inviter = res.data.data._Invitation.inviter;
                     that.InvitationOfficialActivities.inviteTime = res.data.data._Invitation.inviteTime;
-                    that.InvitationOfficialActivities.attachment = res.data.data._Invitation.attachment;
-                    that.projectName = res.data.data._Invitation.attachment;
+                    that.InvitationOfficialActivities.attachment = res.data.data._Invitation.attachments;
+                    that.projectName = res.data.data._Invitation.attachments;
                     that.InvitationOfficialActivities.inviteCost = res.data.data._Invitation.inviteCost;
                     that.InvitationOfficialActivities.inviteCurrency = res.data.data._Invitation.inviteCurrency;
                     that.InvitationOfficialActivities.sendCost = res.data.data._Invitation.sendCost;
@@ -757,12 +757,15 @@ export default {
                     that.InvitationOfficialActivities.fax = res.data.data._InvitationData.fax;
                     that.InvitationOfficialActivities.otherInformation = res.data.data._InvitationData.remark;
                     if (that.InvitationOfficialActivities.attachment != null && that.InvitationOfficialActivities.attachment != undefined && that.InvitationOfficialActivities.attachment != "") {
-                        that.uploadFiles.push({
-                            name: that.InvitationOfficialActivities.attachment,
-                            url: 'http://132.232.92.186:24/Office/GrpFile/商邀相关文件/',
-                        })
+                        for (let m = 0; m < that.InvitationOfficialActivities.attachment.length; m++) {
+                            that.uploadFiles.push({
+                                name: that.InvitationOfficialActivities.attachment[m],
+                                url: 'http://132.232.92.186:24/Office/GrpFile/商邀相关文件/'+that.InvitationOfficialActivities.attachment[m],
+                            })
+                        }
                     }
-
+                    console.log(that.uploadFiles);
+                    
                 }
 
             })
@@ -958,7 +961,7 @@ export default {
         // 文件超出限制
         exceed(files, fileList) {
             this.$message.warning(
-                `当前限制选择 1个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length
+                `当前限制选择 10个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length
                 } 个文件,请取消要替换的文件`
             );
         },
@@ -1027,8 +1030,8 @@ export default {
             this.projectName = ""
             this.DelfileName = file.name
         },
-        onChange(file, fileList) {
-            this.projectName = file.name
+        onChange(file, fileList) { 
+            this.projectName.push(file.name);
         },
         QueryRate() {
             var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"