shaogen1995 hai 1 ano
pai
achega
9b48092a6c

+ 1 - 1
src/components/ZupOne/index.tsx

@@ -233,7 +233,7 @@ function ZupOne(
       ) : null}
 
       <div className="fileBoxRow_r_tit" hidden={isLook}>
-        支持{formatTxt}的图片格式;最大支持{size}M。{upTxt}
+        支持{formatTxt}格式;最大支持{size}M。{upTxt}
         <br />
         <div
           className={classNames(

+ 3 - 3
src/components/ZupTypes/index.tsx

@@ -283,8 +283,8 @@ function ZupTypes(
                 {type === "model"
                   ? "仅支持4dage格式的模型文件,大小不能超过500M。"
                   : type === "audio"
-                  ? "仅支持MP3格式的音频文件,大小不得超过10MB。"
-                  : "仅支持MP4格式的视频文件,大小不得超过500MB。"}
+                  ? `仅支持mp3格式的音频文件,大小不得超过${audioSize}MB。`
+                  : `仅支持mp4格式的视频文件,大小不得超过${videoSize}MB。`}
               </div>
             </>
           )}
@@ -292,7 +292,7 @@ function ZupTypes(
       );
       return dom;
     },
-    [fileList, typeCheck, upFileFu]
+    [audioSize, fileList, typeCheck, upFileFu, videoSize]
   );
 
   // ------------让父组件调用的 回显

+ 2 - 2
src/pages/A1video/A1add/index.tsx

@@ -113,7 +113,7 @@ function A1add({ addId, closeFu, addTableFu, type }: Props) {
             rules={[{ required: true, message: "请输入标题!" }]}
             getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
           >
-            <Input maxLength={10} showCount placeholder="请输入内容" />
+            <Input maxLength={50} showCount placeholder="请输入内容" />
           </Form.Item>
 
           {/* 封面 */}
@@ -150,7 +150,7 @@ function A1add({ addId, closeFu, addTableFu, type }: Props) {
                   ref={ZupOneRef2}
                   isLook={false}
                   fileCheck={fileCheck}
-                  size={200}
+                  size={500}
                   dirCode={type === "video" ? "tab1Video" : "tab2Poster"}
                   myUrl="cms/poster/upload"
                   format={["video/mp4"]}

+ 2 - 2
src/pages/A4exhibit/A4add/index.tsx

@@ -113,11 +113,11 @@ function A4add({ addId, closeFu, addTableFu, editTableFu }: Props) {
             rules={[{ required: true, message: "请输入名称!" }]}
             getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
           >
-            <Input maxLength={20} showCount placeholder="请输入内容" />
+            <Input maxLength={50} showCount placeholder="请输入内容" />
           </Form.Item>
 
           <Form.Item label="简介" name="description">
-            <TextArea placeholder="请输入内容" showCount maxLength={200} />
+            <TextArea placeholder="请输入内容" showCount maxLength={1000} />
           </Form.Item>
 
           <Form.Item

+ 1 - 1
src/pages/A4exhibit/index.tsx

@@ -104,7 +104,7 @@ function A4exhibit() {
           <span>搜索项:</span>
           <Input
             key={inputKey}
-            maxLength={20}
+            maxLength={50}
             style={{ width: 300 }}
             placeholder="请输入名称"
             allowClear

+ 4 - 2
src/pages/A5goods/A5add/index.tsx

@@ -141,7 +141,7 @@ function A5add({ addId, closeFu, addTableFu, editTableFu }: Props) {
             rules={[{ required: true, message: "请输入名称!" }]}
             getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
           >
-            <Input maxLength={20} showCount placeholder="请输入内容" />
+            <Input maxLength={50} showCount placeholder="请输入内容" />
           </Form.Item>
 
           <Form.Item
@@ -231,7 +231,7 @@ function A5add({ addId, closeFu, addTableFu, editTableFu }: Props) {
           </Form.Item>
 
           <Form.Item label="简介" name="description">
-            <TextArea placeholder="请输入内容" showCount maxLength={200} />
+            <TextArea placeholder="请输入内容" showCount maxLength={1000} />
           </Form.Item>
 
           <Form.Item
@@ -259,6 +259,8 @@ function A5add({ addId, closeFu, addTableFu, editTableFu }: Props) {
                 fileCheck={false}
                 dirCode={dirCode}
                 myUrl="cms/goods/upload"
+                // 音频大小
+                audioSize={50}
               />
             </div>
           </div>

+ 1 - 1
src/pages/A5goods/index.tsx

@@ -112,7 +112,7 @@ function A5goods() {
             <span>搜索项:</span>
             <Input
               key={inputKey}
-              maxLength={20}
+              maxLength={50}
               style={{ width: 300 }}
               placeholder="请输入名称"
               allowClear