| | |
| | | :title="title" |
| | | :visible="visible" |
| | | centered |
| | | width="50%" |
| | | width="75%" |
| | | @cancel="handleCancel" |
| | | :afterClose="clearMod" |
| | | :footer="null" |
| | |
| | | </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> |
| | |
| | | }, |
| | | riskOptions: [ |
| | | {name: '地震',value: 1}, |
| | | {name: '洪涝',value: 2}, |
| | | {name: '气象',value: 3}, |
| | | {name: '泥石流',value: 4}, |
| | | {name: '地质灾害',value: 4}, |
| | | {name: '水旱',value: 5}, |
| | | {name: '森林草原火灾',value: 6} |
| | | ], |
| | |
| | | methods: { |
| | | openMod(type,data,id){ |
| | | const t = this |
| | | console.log(data,'data') |
| | | t.getLeaders() |
| | | t.form.acceptingUnitIds = [] |
| | | t.form.peerRecipientIds = [] |
| | |
| | | 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(){ |
| | |
| | | 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] |