From 6efbb509b876e5e4ec634efa8820bd7b288c2283 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期二, 06 二月 2024 09:16:37 +0800 Subject: [PATCH] 分组 --- src/views/Admin/components/msgEditMod.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/Admin/components/msgEditMod.vue b/src/views/Admin/components/msgEditMod.vue index 0058154..8f922f3 100644 --- a/src/views/Admin/components/msgEditMod.vue +++ b/src/views/Admin/components/msgEditMod.vue @@ -3,7 +3,7 @@ :title="title" :visible="visible" centered - width="50%" + width="75%" @cancel="handleCancel" :afterClose="clearMod" :footer="null" @@ -169,7 +169,7 @@ </a-button> </a-col> <a-col :span="12" style="text-align: right" v-if="title=='信息修改'"> - <a-button type="primary" style="min-width: 140px;margin-right: 12px" @click="confirmSend(4)" :disabled="userInfo.role.id==1?true:false"> + <a-button type="primary" style="min-width: 140px;margin-right: 12px" @click="confirmSend(4)" :disabled="userInfo.role.id==1?true:false" v-preventReClick="1500"> 确认并提交审核 </a-button> </a-col> @@ -287,6 +287,7 @@ methods: { openMod(type,data,id){ const t = this + console.log(data,'data') t.getLeaders() t.form.acceptingUnitIds = [] t.form.peerRecipientIds = [] @@ -490,10 +491,16 @@ return file; }); this.fileList = fileList; + console.log(this.fileList,'list') }, removeFile(file){ - this.delList.push(file.response.data.id) + if(this.title == '信息转发'){ + this.delList.push(file.uid) + }else{ + this.delList.push(file.response.data.id) + } + console.log(this.fileList,this.form,'form') }, async deleteFile(){ @@ -522,8 +529,8 @@ const newAList = [].concat(...aList) for(let i of newAList){ // const {realName,...data} = i - const {id:recipienterId,name: recipienterName,phone: recipienterPhone,company: receiveUnit,realName: recipienterRealName,...rest} = i - const obj = { recipienterId, recipienterName, recipienterRealName, recipienterPhone, receiveUnit,...rest} + const {id:recipienterId,name: recipienterName,phone: recipienterPhone,company: receiveUnit,realName: recipienterRealName, registrationId: registrationId,...rest} = i + const obj = { recipienterId, recipienterName, recipienterRealName, recipienterPhone, receiveUnit, registrationId,...rest} this.form.acceptingUnitIds.push(obj) } this.form.acceptingUnitIds = [...this.form.acceptingUnitIds,...this.sendLeaders] -- Gitblit v1.9.2