Commit 3265b750 authored by cellee's avatar cellee

Merge branch 'final' of http://120.77.240.215:9701/Maple/tostumi.git into final

parents 5d88c0e2 b5b524ac
...@@ -71,14 +71,14 @@ export default defineConfig({ ...@@ -71,14 +71,14 @@ export default defineConfig({
}, },
{ {
path: '/', path: '/',
redirect: '/UserManagement/LIFEUserManagement', redirect: '/runTest',
}, },
// { {
// path: '/runTest', path: '/runTest',
// name: 'monitoringcenter', // name: 'monitoringcenter',
// icon: 'PieChartOutlined', icon: 'PieChartOutlined',
// component: './runTest/Template', component: './runTest/Template',
// }, },
{ {
path: '/UserManagement', path: '/UserManagement',
name: 'usemanagement', name: 'usemanagement',
......
...@@ -22,7 +22,6 @@ const PictureOptionsRow = (props: any) => { ...@@ -22,7 +22,6 @@ const PictureOptionsRow = (props: any) => {
const [previewImage, setPreviewImage] = useState(''); const [previewImage, setPreviewImage] = useState('');
const [limitNum, setLimitNum] = useState(5); const [limitNum, setLimitNum] = useState(5);
const handleCancel = () => setPreviewVisible(false); const handleCancel = () => setPreviewVisible(false);
const [imgLoad, setimgLoad] = useState(false); //图片上传 load状态 const [imgLoad, setimgLoad] = useState(false); //图片上传 load状态
useEffect(() => { useEffect(() => {
...@@ -48,7 +47,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -48,7 +47,7 @@ const PictureOptionsRow = (props: any) => {
resultToInside.push(item.name); resultToInside.push(item.name);
}); });
setFileList(result); setFileList(result);
onChange(resultToInside); onChange && onChange(resultToInside);
} }
} }
}, [value]); }, [value]);
...@@ -69,7 +68,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -69,7 +68,7 @@ const PictureOptionsRow = (props: any) => {
resultToInside.push(item.name); resultToInside.push(item.name);
}); });
setFileList(result); setFileList(result);
onChange(resultToInside); onChange && onChange(resultToInside);
} }
// } // }
}, [defaultValue]); }, [defaultValue]);
...@@ -105,7 +104,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -105,7 +104,7 @@ const PictureOptionsRow = (props: any) => {
tmp.map((item: { name: string }, index: number) => { tmp.map((item: { name: string }, index: number) => {
result.push(item.name); result.push(item.name);
}); });
onChange(result); onChange && onChange(result);
} }
}; };
...@@ -118,7 +117,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -118,7 +117,7 @@ const PictureOptionsRow = (props: any) => {
} }
} }
setFileList([...list]); setFileList([...list]);
onChange([...list]); onChange && onChange([...list]);
}; };
// 提交前限制 // 提交前限制
......
...@@ -96,9 +96,9 @@ export default { ...@@ -96,9 +96,9 @@ export default {
const resp = yield call(service.RA, playload); const resp = yield call(service.RA, playload);
console.log('resp', resp); console.log('resp', resp);
if (resp.code == 500 || resp.error_code != '0000') { if (resp.code == 500 || resp.error_code != '0000') {
// message.error("Server Error,try again,error code:500",3) // message.error('Server Error,try again,error code:500', 3);
// window.location.href = '/500'; // window.location.href = '/500';
message.error(resp.msg); // message.error(resp.msg);
} }
if (resp.error_code != '0000') { if (resp.error_code != '0000') {
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
break; break;
case 13: case 13:
{ {
// message.error('Request exception please retry!!!');
history.push('/UserManagement/LIFEUserManagement'); history.push('/UserManagement/LIFEUserManagement');
} }
break; break;
...@@ -132,6 +133,7 @@ export default { ...@@ -132,6 +133,7 @@ export default {
} }
yield put({ type: 'returnData4Error', Data4Error }); yield put({ type: 'returnData4Error', Data4Error });
break; break;
case 18:
case 53: case 53:
{ {
Result = resp; Result = resp;
...@@ -150,7 +152,7 @@ export default { ...@@ -150,7 +152,7 @@ export default {
case 18: case 18:
case 14: case 14:
{ {
message.success('Success Operation!', 3); message.success('Success Operation!');
// window.location.href = '/CommunityManagement/FacilityBookings'; // window.location.href = '/CommunityManagement/FacilityBookings';
history.push('/UserManagement/LIFEUserManagement'); history.push('/UserManagement/LIFEUserManagement');
} }
......
...@@ -44,6 +44,7 @@ export default { ...@@ -44,6 +44,7 @@ export default {
yield put({ type: 'returnPage', Data }); yield put({ type: 'returnPage', Data });
} else { } else {
console.log('请求错误码:' + resp.error_code); console.log('请求错误码:' + resp.error_code);
message.error(resp.error_msg);
let Data = null; let Data = null;
console.log(playload); console.log(playload);
yield put({ type: 'returnPage', Data }); yield put({ type: 'returnPage', Data });
...@@ -112,7 +113,7 @@ export default { ...@@ -112,7 +113,7 @@ export default {
const res = yield call(service.TosGuarderDel, playload); const res = yield call(service.TosGuarderDel, playload);
console.log(res); console.log(res);
if (res.error_code === '0000') { if (res.error_code === '0000') {
message.success(res.error_msg); message.success('Safer information deleted successfully!!!');
history.go(-1); history.go(-1);
} else { } else {
message.error('Deletion failed,Please try again'); message.error('Deletion failed,Please try again');
......
...@@ -223,7 +223,6 @@ const Detail = (props: any) => { ...@@ -223,7 +223,6 @@ const Detail = (props: any) => {
function mapStateToProps(state: any) { function mapStateToProps(state: any) {
const { CurDataDetail } = state.CommunityService; const { CurDataDetail } = state.CommunityService;
console.log(CurDataDetail);
return { return {
CurDataDetail, CurDataDetail,
}; };
......
...@@ -70,6 +70,14 @@ const ChargeManager = (props: any) => { ...@@ -70,6 +70,14 @@ const ChargeManager = (props: any) => {
...location.query, ...location.query,
}; };
get(readyData); get(readyData);
return () => {
readyData = {
tosOwnerName: '',
communityName: '',
pageNum: 1,
};
};
}, [location]); }, [location]);
// 监听数据返回 // 监听数据返回
......
...@@ -74,9 +74,10 @@ const UsersDetail = (props: any) => { ...@@ -74,9 +74,10 @@ const UsersDetail = (props: any) => {
useEffect(() => { useEffect(() => {
if (Result != null) { if (Result != null) {
console.log(Result); console.log(Result);
if (Result.error_code == '0001') { if (Result.error_code !== '0000') {
message.error(Result.error_msg, 3); message.error(Result.error_msg);
ResultClear(); ResultClear();
history.go(0);
} }
} }
}, [Result]); }, [Result]);
...@@ -90,6 +91,9 @@ const UsersDetail = (props: any) => { ...@@ -90,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);
...@@ -175,7 +179,18 @@ const UsersDetail = (props: any) => { ...@@ -175,7 +179,18 @@ const UsersDetail = (props: any) => {
message.error('No Permissions!!!', 3); message.error('No Permissions!!!', 3);
return; return;
} }
confirm({
title: 'Are you sure delete this infomation?',
icon: <ExclamationCircleOutlined />,
content: 'Please click confirm to delete',
okText: 'Confirm',
okType: 'danger',
cancelText: 'Cancel',
onCancel() {},
onOk() {
RA(39, { id: values.id, ownerId: values.owner_id }); RA(39, { id: values.id, ownerId: values.owner_id });
},
});
}; };
const titleBackCallBack = () => { const titleBackCallBack = () => {
...@@ -189,6 +204,9 @@ const UsersDetail = (props: any) => { ...@@ -189,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]);
...@@ -84,6 +82,7 @@ const AccoutingContent = (props: { ...@@ -84,6 +82,7 @@ const AccoutingContent = (props: {
return ( return (
<div className={styles.base}> <div className={styles.base}>
{SaveChooseData ? (
<Spin spinning={loading}> <Spin spinning={loading}>
{/* 头部组件 */} {/* 头部组件 */}
<div className={styles.box}> <div className={styles.box}>
...@@ -142,6 +141,9 @@ const AccoutingContent = (props: { ...@@ -142,6 +141,9 @@ const AccoutingContent = (props: {
</Button> </Button>
</div> </div>
</Spin> </Spin>
) : (
<></>
)}
</div> </div>
); );
}; };
......
...@@ -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>
......
...@@ -60,7 +60,7 @@ const Guard = (props: any) => { ...@@ -60,7 +60,7 @@ const Guard = (props: any) => {
<div className={styles.item1_1}>{CurDataFollowDetail.companyName}</div> <div className={styles.item1_1}>{CurDataFollowDetail.companyName}</div>
<div className={styles.clear1}></div> <div className={styles.clear1}></div>
<div className={styles.item1}>Full Name</div> <div className={styles.item1}>User Name</div>
<div className={styles.item1_1}>{CurDataFollowDetail.saferName}</div> <div className={styles.item1_1}>{CurDataFollowDetail.saferName}</div>
<div className={styles.clear1}></div> <div className={styles.clear1}></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