|
@@ -113,10 +113,6 @@ const { Form, Shell, api } = useEditShell<ResearchReportSubmitVO>(
|
|
|
message.warning('文件上传中,请稍候');
|
|
message.warning('文件上传中,请稍候');
|
|
|
throw new Error('uploading');
|
|
throw new Error('uploading');
|
|
|
}
|
|
}
|
|
|
- if (!pdfUrl.value) {
|
|
|
|
|
- message.error('请上传研究文档');
|
|
|
|
|
- throw new Error('pdf required');
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
...values,
|
|
...values,
|
|
@@ -185,10 +181,7 @@ function onPdfRemove() {
|
|
|
|
|
|
|
|
<div class="pb-4">
|
|
<div class="pb-4">
|
|
|
<h3 class="mb-3 text-base font-semibold text-foreground">相关附件</h3>
|
|
<h3 class="mb-3 text-base font-semibold text-foreground">相关附件</h3>
|
|
|
- <div class="mb-2 text-sm">
|
|
|
|
|
- <span class="text-destructive mr-1">*</span>
|
|
|
|
|
- 研究文档
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="mb-2 text-sm">研究文档</div>
|
|
|
<UploadDragger
|
|
<UploadDragger
|
|
|
v-model:file-list="pdfFileList"
|
|
v-model:file-list="pdfFileList"
|
|
|
:before-upload="beforePdfUpload"
|
|
:before-upload="beforePdfUpload"
|