|
@ -8,6 +8,7 @@ |
|
|
:before-upload="beforeUpload" :on-exceed="handleExceed" :limit="10" :on-remove="removeFile"> |
|
|
:before-upload="beforeUpload" :on-exceed="handleExceed" :limit="10" :on-remove="removeFile"> |
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> |
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> |
|
|
<div slot="tip" class="el-upload__tip">文件大小且不超过500M</div> |
|
|
<div slot="tip" class="el-upload__tip">文件大小且不超过500M</div> |
|
|
|
|
|
<div slot="tip" class="el-upload__tip">必须上传《部门联审意见》</div> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -87,7 +88,17 @@ async function submitImportForm() { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
let cunzai = false; |
|
|
|
|
|
fileList.forEach((x) => { |
|
|
|
|
|
console.log('xxxxxxxxxx', x, x.file); |
|
|
|
|
|
if(x.file.name.includes('部门联审意见')){ |
|
|
|
|
|
cunzai = true; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
if(!cunzai){ |
|
|
|
|
|
ElMessage.error('请上传《部门联审意见》'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// // 使用form表单的数据格式 |
|
|
// // 使用form表单的数据格式 |
|
|
const params = new FormData(); |
|
|
const params = new FormData(); |
|
|
// 将上传文件数组依次添加到参数paramsData中 |
|
|
// 将上传文件数组依次添加到参数paramsData中 |
|
|