|
@@ -16,7 +16,7 @@ function AddSubOrg(props) {
|
|
const [current, setCurrent] = useState(0);
|
|
const [current, setCurrent] = useState(0);
|
|
const [isChange, setIsChange] = useState(false);
|
|
const [isChange, setIsChange] = useState(false);
|
|
const [visible, setVisible] = useState(false);
|
|
const [visible, setVisible] = useState(false);
|
|
-
|
|
|
|
|
|
+
|
|
const { back } = props
|
|
const { back } = props
|
|
const steps = [
|
|
const steps = [
|
|
{
|
|
{
|
|
@@ -40,20 +40,20 @@ function AddSubOrg(props) {
|
|
const pre = () => {
|
|
const pre = () => {
|
|
setCurrent(current - 1);
|
|
setCurrent(current - 1);
|
|
};
|
|
};
|
|
- function handleOk(){
|
|
|
|
|
|
+ function handleOk() {
|
|
back()
|
|
back()
|
|
}
|
|
}
|
|
- function handleCancel(){
|
|
|
|
|
|
+ function handleCancel() {
|
|
setVisible(false)
|
|
setVisible(false)
|
|
}
|
|
}
|
|
- const goback = () => {
|
|
|
|
- if (form.getFieldsValue().name != undefined || form.getFieldsValue().type != undefined){
|
|
|
|
|
|
+ const goback = () => {
|
|
|
|
+ if (form.getFieldsValue().name != undefined || form.getFieldsValue().type != undefined) {
|
|
setVisible(true)
|
|
setVisible(true)
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
back()
|
|
back()
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
<Breadcrumb separator="">
|
|
<Breadcrumb separator="">
|
|
@@ -92,7 +92,7 @@ function AddSubOrg(props) {
|
|
}
|
|
}
|
|
|
|
|
|
function StepContent(props) {
|
|
function StepContent(props) {
|
|
-
|
|
|
|
|
|
+
|
|
const [treeDatas, setTreeDatas] = useState([]);
|
|
const [treeDatas, setTreeDatas] = useState([]);
|
|
const [tabDatas, setTabDatas] = useState([]);
|
|
const [tabDatas, setTabDatas] = useState([]);
|
|
const [activeTab, setActiveTab] = useState('');
|
|
const [activeTab, setActiveTab] = useState('');
|
|
@@ -290,14 +290,13 @@ function StepContent(props) {
|
|
type="password"
|
|
type="password"
|
|
hidden={current !== 1}
|
|
hidden={current !== 1}
|
|
name={['addHospitalUserVO', 'password']}
|
|
name={['addHospitalUserVO', 'password']}
|
|
- rules={[
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: '8-12位大小写字母、数字、特殊字符',
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- ]}
|
|
|
|
- >
|
|
|
|
|
|
+ rules={[{ required: true }, {
|
|
|
|
+ min: 8,
|
|
|
|
+ message: '密码不能少于8个字符',
|
|
|
|
+ }, {
|
|
|
|
+ max: 12,
|
|
|
|
+ message: '密码不能大于12个字符',
|
|
|
|
+ }]}>
|
|
<Input placeholder='8-12位大小写字母、数字、特殊字符' autoComplete='off' disabled={type == 2 ? true : false} />
|
|
<Input placeholder='8-12位大小写字母、数字、特殊字符' autoComplete='off' disabled={type == 2 ? true : false} />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item
|
|
<Form.Item
|