shaogen1995 1 rok temu
rodzic
commit
ffb9059fe8

+ 12 - 10
src/pages/A1event/A1add/index.module.scss

@@ -19,11 +19,10 @@
       .A1fromRow {
         position: relative;
         width: 800px;
-        height: 56px;
 
-        // &>div {
-        //   width: 100%;
-        // }
+        textarea {
+          min-height: 75px !important;
+        }
 
         .A1_1Frow {
           position: absolute;
@@ -86,23 +85,26 @@
 
 
     // 从查看进入
-    .A1eMainLook{
+    .A1eMainLook {
 
       // 左边的 label 也不让选中
-      label{
+      label {
         pointer-events: none;
       }
 
-      .ant-picker{
+      .ant-picker {
         pointer-events: none;
       }
-      .ant-checkbox-wrapper{
+
+      .ant-checkbox-wrapper {
         pointer-events: none;
       }
-      .ant-input-number{
+
+      .ant-input-number {
         pointer-events: none;
       }
-      .ant-select{
+
+      .ant-select {
         pointer-events: none;
       }
     }

+ 4 - 5
src/pages/A1event/A1add/index.tsx

@@ -7,7 +7,6 @@ import {
   DatePicker,
   Form,
   FormInstance,
-  Input,
   InputNumber,
   Select,
 } from "antd";
@@ -19,6 +18,7 @@ import ZupAudio from "@/components/ZupAudio";
 import ZupOne from "@/components/ZupOne";
 import ZRichTexts from "@/components/ZRichTexts";
 import classNames from "classnames";
+import TextArea from "antd/es/input/TextArea";
 
 const { RangePicker } = DatePicker;
 
@@ -155,7 +155,7 @@ function A1add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
         dateEnd,
         fileName: nameAudio.fileName,
         filePath: nameAudio.filePath,
-        dirCode
+        dirCode,
       };
 
       const res = await A1_APIsave(obj);
@@ -201,12 +201,11 @@ function A1add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
               label="标题"
               name="name"
               rules={[{ required: true, message: "请输入标题!" }]}
-              getValueFromEvent={(e) => e.target.value.trim()}
             >
-              <Input
+              <TextArea
                 readOnly={editInfo.txt === "查看"}
                 style={{ width: "500px" }}
-                maxLength={50}
+                maxLength={100}
                 showCount
                 placeholder="请输入内容"
               />

+ 3 - 4
src/pages/A2exhibition/A2add/index.module.scss

@@ -19,11 +19,10 @@
       .A2fromRow {
         position: relative;
         width: 800px;
-        height: 56px;
 
-        // &>div {
-        //   width: 100%;
-        // }
+        textarea {
+          min-height: 75px !important;
+        }
 
         .A2_1Frow {
           position: absolute;

+ 2 - 3
src/pages/A2exhibition/A2add/index.tsx

@@ -290,12 +290,11 @@ function A2add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
               name="name"
               rules={[{ required: true, message: "请输入标题!" }]}
               // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
-              getValueFromEvent={(e) => e.target.value.trim()}
             >
-              <Input
+              <TextArea
                 readOnly={editInfo.txt === "查看"}
                 style={{ width: "500px" }}
-                maxLength={50}
+                maxLength={100}
                 showCount
                 placeholder="请输入内容"
               />

+ 3 - 4
src/pages/A3holding/A3add/index.module.scss

@@ -19,11 +19,10 @@
       .A3fromRow {
         position: relative;
         width: 800px;
-        height: 56px;
 
-        // &>div {
-        //   width: 100%;
-        // }
+        textarea {
+          min-height: 75px !important;
+        }
 
         .A3_1Frow {
           position: absolute;

+ 2 - 2
src/pages/A3holding/A3add/index.tsx

@@ -173,10 +173,10 @@ function A3add({
               rules={[{ required: true, message: "请输入名称!" }]}
               // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
             >
-              <Input
+              <TextArea
                 readOnly={editInfo.txt === "查看"}
                 style={{ width: "500px" }}
-                maxLength={50}
+                maxLength={100}
                 showCount
                 placeholder="请输入内容"
               />

+ 4 - 4
src/pages/A4study/A4add/index.module.scss

@@ -15,15 +15,15 @@
       height: 100%;
       overflow-y: auto;
 
+      textarea {
+        min-height: 75px !important;
+      }
+
 
       .A4fromRow {
         position: relative;
         width: 800px;
-        height: 56px;
 
-        // &>div {
-        //   width: 100%;
-        // }
 
         .A4_1Frow {
           position: absolute;

+ 2 - 7
src/pages/A4study/A4add/index.tsx

@@ -6,7 +6,6 @@ import {
   DatePicker,
   Form,
   FormInstance,
-  Input,
   InputNumber,
   Select,
 } from "antd";
@@ -164,12 +163,10 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
             label="标题"
             name="name"
             rules={[{ required: true, message: "请输入标题!" }]}
-            // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
-            getValueFromEvent={(e) => e.target.value.trim()}
           >
-            <Input
+            <TextArea
               readOnly={editInfo.txt === "查看"}
-              maxLength={50}
+              maxLength={100}
               showCount
               placeholder="请输入内容"
             />
@@ -211,7 +208,6 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
             label="地点"
             name="address"
             rules={[{ required: true, message: "请输入标题!" }]}
-            getValueFromEvent={(e) => e.target.value.trim()}
           >
             <TextArea
               readOnly={editInfo.txt === "查看"}
@@ -225,7 +221,6 @@ function A4add({ editInfo, closeFu, editTableFu, addTableFu }: Props) {
             label="人数限制"
             name="remark"
             rules={[{ required: true, message: "请输入标题!" }]}
-            getValueFromEvent={(e) => e.target.value.trim()}
           >
             <TextArea
               readOnly={editInfo.txt === "查看"}

+ 3 - 5
src/pages/A5publish/A5add/index.module.scss

@@ -15,15 +15,13 @@
       height: 100%;
       overflow-y: auto;
 
+      textarea {
+        min-height: 75px !important;
+      }
 
       .A5fromRow {
         position: relative;
         width: 800px;
-        height: 56px;
-
-        // &>div {
-        //   width: 100%;
-        // }
 
         .A5_1Frow {
           position: absolute;

+ 3 - 5
src/pages/A5publish/A5add/index.tsx

@@ -7,7 +7,6 @@ import {
   DatePicker,
   Form,
   FormInstance,
-  Input,
   InputNumber,
   Select,
 } from "antd";
@@ -18,6 +17,7 @@ import classNames from "classnames";
 import ZupOne from "@/components/ZupOne";
 import ZRichTexts from "@/components/ZRichTexts";
 import MyPopconfirm from "@/components/MyPopconfirm";
+import TextArea from "antd/es/input/TextArea";
 
 type Props = {
   topType: A5topType;
@@ -205,12 +205,10 @@ function A5add({ editInfo, topType, closeFu, editTableFu, addTableFu }: Props) {
             label="标题"
             name="name"
             rules={[{ required: true, message: "请输入标题!" }]}
-            // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
-            getValueFromEvent={(e) => e.target.value.trim()}
           >
-            <Input
+            <TextArea
               readOnly={editInfo.txt === "查看"}
-              maxLength={50}
+              maxLength={100}
               showCount
               placeholder="请输入内容"
             />

+ 2 - 2
src/pages/A8dict/index.tsx

@@ -163,11 +163,11 @@ function A8dict() {
             >
               <Input
                 placeholder="请输入内容"
-                maxLength={50}
+                maxLength={100}
                 showCount
                 value={formData.name}
                 onChange={(e) =>
-                  formDataChangeFu("name", e.target.value.replace(/\s+/g, ""))
+                  formDataChangeFu("name", e.target.value.trim())
                 }
               />
             </div>

+ 2 - 2
src/utils/http.ts

@@ -7,8 +7,8 @@ import { domShowFu } from "./domShow";
 
 const envFlag = process.env.NODE_ENV === "development";
 
-// const baseUrlTemp = "https://sit-shoubov2.4dage.com"; // 测试环境
-const baseUrlTemp = "http://192.168.20.61:8070"; // 线下环境
+const baseUrlTemp = "https://sit-shoubov2.4dage.com"; // 测试环境
+// const baseUrlTemp = "http://192.168.20.61:8070"; // 线下环境
 
 const baseFlag = baseUrlTemp.includes("https://");