马宇豪
2023-10-31 c7bd1a3fd46b5d5f887ce4f674387294ee1e8ccd
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"
@@ -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}
      ],
@@ -491,10 +490,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(){