From d1c205d29b5eacf1de22a7af29329ca370d1c2d3 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 29 十一月 2024 14:50:19 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1 --- company/src/components/business/OperaApplyChangeUnitCheckWindow.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue b/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue index 7e881ff..bcae577 100644 --- a/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue +++ b/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue @@ -73,7 +73,7 @@ <div class="form_item"> <div class="form_item_label"><span>*</span>涓婁紶鎵瑰崟锛�</div> <div class="form_item_val"> - <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> + <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" @remove="removeEditPiDan" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> </div> </div> <div class="form_item"> @@ -136,7 +136,7 @@ applyStartTime:null, validCode:null, pidanFile:[], - editPidanFile:null, + editPidanFile:[], fileList1: [], fileList2: [], selectRadio:0 @@ -167,7 +167,7 @@ applyStartTime:null, validCode:null, pidanFile:[], - editPidanFile:null, + editPidanFile:[], fileList1: [], fileList2: [], selectRadio:0 @@ -229,8 +229,15 @@ }) }, editBaoxianFileUploaded(data){ - this.form.editPidanFile=data + this.form.editPidanFile.push(data) }, + removeEditPiDan(imgaddr) { + this.form.editPidanFile.forEach((item, index) => { + if (imgaddr === item.imgaddr) { + this.form.editPidanFile.splice(index, 1) + } + }) + }, backDo(){ this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') .then(() => { @@ -261,7 +268,7 @@ this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') .then(() => { this.isWorking = true - uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) + uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFileList:this.form.pidanFile}) .then(response => { this.visible = false this.$emit('success') @@ -275,7 +282,7 @@ this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') .then(() => { this.isWorking = true - editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) + editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFileList:this.form.editPidanFile}) .then(response => { this.visible = false this.$emit('success') -- Gitblit v1.9.3