Explorar o código

fix(@six/wisdom-legacy): 成果管理 - 研究报告、经验、获奖、医话附件非必传

cmj hai 1 día
pai
achega
c105c8085d

+ 1 - 8
apps/wisdom-legacy/src/views/outcome/modules/ExperienceEdit.vue

@@ -100,10 +100,6 @@ const { Form, Shell, api } = useEditShell<ExperienceSubmitVO>(experienceForm, {
       message.warning('文件上传中,请稍候');
       throw new Error('uploading');
     }
-    if (!pdfUrl.value) {
-      message.error('请上传附件PDF文件');
-      throw new Error('pdf required');
-    }
 
     return {
       ...values,
@@ -140,10 +136,7 @@ function onPdfRemove() {
       <Form />
 
       <div class="pb-4">
-        <div class="mb-2 text-sm">
-          <span class="text-destructive mr-1">*</span>
-          附件
-        </div>
+        <div class="mb-2 text-sm">附件</div>
         <UploadDragger
           v-model:file-list="pdfFileList"
           :before-upload="beforePdfUpload"

+ 1 - 8
apps/wisdom-legacy/src/views/outcome/modules/MedicalTalkEdit.vue

@@ -102,10 +102,6 @@ const { Form, Shell, api } = useEditShell<MedicalTalkSubmitVO>(
         message.warning('文件上传中,请稍候');
         throw new Error('uploading');
       }
-      if (!pdfUrl.value) {
-        message.error('请上传附件PDF文件');
-        throw new Error('pdf required');
-      }
 
       return {
         ...values,
@@ -143,10 +139,7 @@ function onPdfRemove() {
       <Form />
 
       <div class="pb-4">
-        <div class="mb-2 text-sm">
-          <span class="text-destructive mr-1">*</span>
-          附件
-        </div>
+        <div class="mb-2 text-sm">附件</div>
         <UploadDragger
           v-model:file-list="pdfFileList"
           :before-upload="beforePdfUpload"

+ 1 - 8
apps/wisdom-legacy/src/views/outcome/modules/ResearchReportEdit.vue

@@ -113,10 +113,6 @@ const { Form, Shell, api } = useEditShell<ResearchReportSubmitVO>(
         message.warning('文件上传中,请稍候');
         throw new Error('uploading');
       }
-      if (!pdfUrl.value) {
-        message.error('请上传研究文档');
-        throw new Error('pdf required');
-      }
 
       return {
         ...values,
@@ -185,10 +181,7 @@ function onPdfRemove() {
 
       <div class="pb-4">
         <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
           v-model:file-list="pdfFileList"
           :before-upload="beforePdfUpload"

+ 1 - 8
apps/wisdom-legacy/src/views/outcome/modules/WinawardEdit.vue

@@ -100,10 +100,6 @@ const { Form, Shell, api } = useEditShell<WinawardSubmitVO>(winawardForm, {
       message.warning('文件上传中,请稍候');
       throw new Error('uploading');
     }
-    if (!pdfUrl.value) {
-      message.error('请上传附件PDF文件');
-      throw new Error('pdf required');
-    }
 
     return {
       ...values,
@@ -140,10 +136,7 @@ function onPdfRemove() {
       <Form />
 
       <div class="pb-4">
-        <div class="mb-2 text-sm">
-          <span class="text-destructive mr-1">*</span>
-          附件
-        </div>
+        <div class="mb-2 text-sm">附件</div>
         <UploadDragger
           v-model:file-list="pdfFileList"
           :before-upload="beforePdfUpload"