Commit 23a3e560 authored by cellee's avatar cellee

账号样式更改,解决后台报错loading框不消失问题

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 0cd0d8ac
...@@ -99,6 +99,8 @@ const Account = (props: any) => { ...@@ -99,6 +99,8 @@ const Account = (props: any) => {
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(false); setLoading(false);
history.go(-1); history.go(-1);
} else {
setLoading(false);
} }
} }
}, [SubResult]); }, [SubResult]);
...@@ -303,19 +305,20 @@ const Account = (props: any) => { ...@@ -303,19 +305,20 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Input placeholder="E-mail address" className="input" /> <Input placeholder="E-mail address" className="input" />
</Form.Item> </Form.Item>
</Descriptions.Item> <Form.Item
<Descriptions.Item> name="tosAccountName"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> label="Name"
rules={AccountTip[1] as any}
style={{ marginRight: 20 }}
>
<Input placeholder="Name Of Administrator" className="input" /> <Input placeholder="Name Of Administrator" className="input" />
</Form.Item> </Form.Item>
</Descriptions.Item>
<Descriptions.Item> <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
<Form.Item name="tosUserPhone" label="Correct telephone" rules={AccountTip[2] as any}>
<Input <Input
placeholder="Contact Information" placeholder="Contact Information"
className="input" className="input"
...@@ -323,8 +326,7 @@ const Account = (props: any) => { ...@@ -323,8 +326,7 @@ const Account = (props: any) => {
onKeyUp={keyup_communityManagerFee} onKeyUp={keyup_communityManagerFee}
/> />
</Form.Item> </Form.Item>
</Descriptions.Item> </div>
</Descriptions>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
...@@ -423,19 +423,19 @@ const Account = (props: any) => { ...@@ -423,19 +423,19 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Input placeholder="Login Account" className="input" disabled /> <Input placeholder="Login Account" className="input" disabled />
</Form.Item> </Form.Item>
</Descriptions.Item> <Form.Item
<Descriptions.Item> name="tosAccountName"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> label="Name"
rules={AccountTip[1] as any}
style={{ marginRight: 20 }}
>
<Input placeholder="Name Of Administrator" className="input" disabled /> <Input placeholder="Name Of Administrator" className="input" disabled />
</Form.Item> </Form.Item>
</Descriptions.Item> <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
<Descriptions.Item>
<Form.Item name="tosUserPhone" label="Phone" rules={AccountTip[2] as any}>
<Input <Input
placeholder="Contact Information" placeholder="Contact Information"
className="input" className="input"
...@@ -444,8 +444,7 @@ const Account = (props: any) => { ...@@ -444,8 +444,7 @@ const Account = (props: any) => {
disabled disabled
/> />
</Form.Item> </Form.Item>
</Descriptions.Item> </div>
</Descriptions>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
...@@ -88,6 +88,8 @@ const Account = (props: any) => { ...@@ -88,6 +88,8 @@ const Account = (props: any) => {
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(true); setLoading(true);
history.go(-1); history.go(-1);
} else {
setLoading(false);
} }
} }
}, [SubResult]); }, [SubResult]);
...@@ -572,19 +574,19 @@ const Account = (props: any) => { ...@@ -572,19 +574,19 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Input placeholder="E-mail address" className="input" disabled /> <Input placeholder="E-mail address" className="input" disabled />
</Form.Item> </Form.Item>
</Descriptions.Item> <Form.Item
<Descriptions.Item> name="tosAccountName"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> label="Name"
rules={AccountTip[1] as any}
style={{ marginRight: 20 }}
>
<Input placeholder="Name Of Administrator" className="input" /> <Input placeholder="Name Of Administrator" className="input" />
</Form.Item> </Form.Item>
</Descriptions.Item> <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
<Descriptions.Item>
<Form.Item name="tosUserPhone" label="Correct telephone" rules={AccountTip[2] as any}>
<Input <Input
placeholder="Contact Information" placeholder="Contact Information"
className="input" className="input"
...@@ -592,8 +594,7 @@ const Account = (props: any) => { ...@@ -592,8 +594,7 @@ const Account = (props: any) => {
onKeyUp={keyup_communityManagerFee} onKeyUp={keyup_communityManagerFee}
/> />
</Form.Item> </Form.Item>
</Descriptions.Item> </div>
</Descriptions>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment