lanxin 10 uur geleden
bovenliggende
commit
4666842bba
1 gewijzigde bestanden met toevoegingen van 20 en 3 verwijderingen
  1. 20 3
      src/pages/Cledger/C1ledger/C1Import/index.tsx

+ 20 - 3
src/pages/Cledger/C1ledger/C1Import/index.tsx

@@ -163,11 +163,16 @@ function C1Import({ onClose }: { onClose: () => void }) {
             ref={fileInputRef}
             type='file'
             accept={isImportData ? '.xlsx' : '.zip,.rar'}
+            maxLength={1000}
+            max={isImportData ? 10 * 1024 * 1024 : 500 * 1024 * 1024}
             style={{ display: 'none' }}
             onChange={isImportData ? handleUploadExcel : handleUploadZip}
           />
           {isImportData ? (
             <>
+              <div style={{ marginRight: 20 }}>
+                仅支持xlsx格式,文件不得大于10M,单词最多上传1000条
+              </div>
               <Button
                 type='primary'
                 onClick={() => window.open(`${baseURL}/baseData/ZP_TEMP.xlsx`)}
@@ -179,9 +184,21 @@ function C1Import({ onClose }: { onClose: () => void }) {
               </Button>
             </>
           ) : (
-            <Button type='primary' onClick={() => fileInputRef.current?.click()}>
-              上传压缩包(ZIP,RAR格式)
-            </Button>
+            <>
+              <div style={{ marginRight: 20 }}>
+                图片以zip压缩包格式上传,500M以内,请勿嵌套
+                <br />
+                图片命名规则:藏品编号-图片类型(如D00001-A)
+              </div>
+              <div style={{ marginRight: 20 }}>
+                图片的格式:jpg/png/bmp/gif
+                <br />
+                图片类型:A:正视图 B:俯视图 C:侧视图 D:全景图 E:局部图 F:底部图
+              </div>
+              <Button type='primary' onClick={() => fileInputRef.current?.click()}>
+                上传压缩包(ZIP,RAR格式)
+              </Button>
+            </>
           )}
         </div>
       </>