Browse Source

页面修改

MFMF 3 years ago
parent
commit
6581ce526a
2 changed files with 17 additions and 7 deletions
  1. 4 2
      src/components/DictManager/addDict.js
  2. 13 5
      src/components/HospitalSet/addHospset.js

+ 4 - 2
src/components/DictManager/addDict.js

@@ -11,6 +11,8 @@ const { post, api, xPost } = apiObj;
 const { Option, OptGroup } = Select;
 const { organizationData } = utils;
 const { SHOW_PARENT } = TreeSelect;
+const { TextArea } = Input;
+
 function AddDict(props) {
   
   const [form] = Form.useForm();
@@ -141,9 +143,9 @@ function AddDict(props) {
 			]}
         >
           {type == 3 ?
-            <Input autoComplete='off'/>
+            <TextArea rows={4} />
             :
-            <Input placeholder="50个字以内" autoComplete='off'/>
+          	<TextArea placeholder="50个字以内" rows={4} />
           }
 
         </Form.Item>

+ 13 - 5
src/components/HospitalSet/addHospset.js

@@ -11,6 +11,7 @@ const { post, api, xPost } = apiObj;
 const { Option, OptGroup } = Select;
 const { organizationData } = utils;
 const { SHOW_PARENT } = TreeSelect;
+const { TextArea } = Input;
 
 function AddHospset(props) {
   const [HospsetidList, setHospsetidList] = useState([]);//代码类别模糊查找
@@ -148,19 +149,26 @@ function AddHospset(props) {
 			]}
         >
           {type == 3 ?
-            <Input autoComplete='off'/>
+            <TextArea rows={4} />
             :
-            <Input placeholder="50个字以内" autoComplete='off'/>
+			<TextArea placeholder="50个字以内" rows={4} />
           }
 
         </Form.Item>
         <Form.Item
           name="remark"
           label="参数描述"
-          rules={[{ required: true, message: '请输入参数描述' }]}
+          rules={[{ required: true, message: '请输入参数描述' },
+		  {
+		    max: 50,
+		    message: '密码不能大于50个字符',
+		  },]}
         >
-		      <Input autoComplete='off'/>
-			  
+		    {type == 3 ?
+		      <TextArea rows={4} />
+		      :
+		      <TextArea placeholder="50个字以内" rows={4} />
+		    }
         </Form.Item>
         
           <Form.Item wrapperCol={{ offset: 8, span: 16 }}>