Commit d7fe6ac8 authored by Sixiang_Zzb's avatar Sixiang_Zzb

服务商问题注销问题修复,业主新建页面布局修改

parent 3414cb65
...@@ -166,7 +166,6 @@ export default { ...@@ -166,7 +166,6 @@ export default {
case 16: case 16:
{ {
console.log('等待删除完成'); console.log('等待删除完成');
message.success('Success Operation!');
var returnValue = resp; var returnValue = resp;
yield put({ type: 'ReturnValue', returnValue }); yield put({ type: 'ReturnValue', returnValue });
} }
......
...@@ -91,6 +91,9 @@ const UsersDetail = (props: any) => { ...@@ -91,6 +91,9 @@ const UsersDetail = (props: any) => {
id: DataSave.id, id: DataSave.id,
owerName: DataSave.owerName, owerName: DataSave.owerName,
enable: DataSave.enable, enable: DataSave.enable,
buildingNumber: DataSave.buildingNumber,
floorNumber: DataSave.floorNumber,
roomNumber: DataSave.roomNumber,
}); });
} else { } else {
message.error(returnValue.error_msg, 3); message.error(returnValue.error_msg, 3);
...@@ -201,6 +204,9 @@ const UsersDetail = (props: any) => { ...@@ -201,6 +204,9 @@ const UsersDetail = (props: any) => {
id: DataSave.id, id: DataSave.id,
owerName: DataSave.owerName, owerName: DataSave.owerName,
enable: DataSave.enable, enable: DataSave.enable,
buildingNumber: DataSave.buildingNumber,
floorNumber: DataSave.floorNumber,
roomNumber: DataSave.roomNumber,
}); });
MemberResultClear(); MemberResultClear();
} }
......
...@@ -53,15 +53,13 @@ const AccoutingContent = (props: { ...@@ -53,15 +53,13 @@ const AccoutingContent = (props: {
useEffect(() => { useEffect(() => {
console.log(Result); console.log(Result);
if (Result !== null) { if (Result !== null) {
dispatch({ type: 'ServiceProvider/ResultClear' });
setLoading(false); setLoading(false);
if (Result) { if (Result) {
dispatch({ type: 'ServiceProvider/ResultClear' }); message.success('Logout successful!');
message.success('Logout successful!', 3, () => {
history.goBack(); history.goBack();
});
} else { } else {
message.error('Logout failed. Please try again!', 3); message.error('Logout failed. Please try again!');
dispatch({ type: 'ServiceProvider/ResultClear', playload: '' });
} }
} }
}, [Result]); }, [Result]);
......
...@@ -100,14 +100,14 @@ const Detail = (props: any) => { ...@@ -100,14 +100,14 @@ const Detail = (props: any) => {
useEffect(() => { useEffect(() => {
console.log(Result); console.log(Result);
if (Result !== null) { if (Result !== null) {
dispatch({ type: 'ServiceProvider/ResultClear' });
setLoding(false); setLoding(false);
if (Result) { if (Result) {
dispatch({ type: 'ServiceProvider/ResultClear' }); message.success('Logout successful!');
message.success('Logout successful!', 2); console.log('跳转页面');
history.goBack(); history.goBack();
} else { } else {
message.error('Logout failed. Please try again!', 3); message.error('Logout failed. Please try again!', 3);
dispatch({ type: 'ServiceProvider/ResultClear', playload: '' });
} }
} }
}, [Result]); }, [Result]);
......
...@@ -53,11 +53,12 @@ ...@@ -53,11 +53,12 @@
} }
.box1item3 { .box1item3 {
position: absolute; position: absolute;
left: 529px; top: 50px;
} }
.box1item4 { .box1item4 {
position: absolute; position: absolute;
left: 650px; left: 154px;
top: 50px;
} }
// 线栏 // 线栏
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
width: 100%; width: 100%;
height: 1px; height: 1px;
border-top: 1px solid rgba(217, 217, 217, 1); border-top: 1px solid rgba(217, 217, 217, 1);
margin-top: 28px; margin-top: 70px;
margin-bottom: 28px; margin-bottom: 28px;
} }
......
...@@ -132,7 +132,7 @@ const Edit = (props: any) => { ...@@ -132,7 +132,7 @@ const Edit = (props: any) => {
}, },
]} ]}
> >
<Input style={{ width: 200 }} placeholder="Single Line Input" /> <Input style={{ width: 260 }} placeholder="Single Line Input" />
</Form.Item> </Form.Item>
</div> </div>
</div> </div>
......
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