马宇豪
2024-01-24 c72a20727b865fdb8a9fd9a26b3f4f79ebee53bf
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>
@@ -238,9 +238,8 @@
      },
      riskOptions: [
        {name: '地震',value: 1},
        {name: '洪涝',value: 2},
        {name: '气象',value: 3},
        {name: '泥石流',value: 4},
        {name: '地质灾害',value: 4},
        {name: '水旱',value: 5},
        {name: '森林草原火灾',value: 6}
      ],
@@ -288,6 +287,7 @@
  methods: {
    openMod(type,data,id){
      const t = this
      console.log(data,'data')
      t.getLeaders()
      t.form.acceptingUnitIds = []
      t.form.peerRecipientIds = []
@@ -491,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(){
@@ -523,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]