Commit af885b0d authored by Sixiang_Zzb's avatar Sixiang_Zzb

物业服务 详情和编辑 头部内容提示更改

parent e4429652
...@@ -38,18 +38,27 @@ const Detail = (props: any) => { ...@@ -38,18 +38,27 @@ const Detail = (props: any) => {
'Reply To Problem Feedback', 'Reply To Problem Feedback',
]; ];
const headTitlesDetail = [
'Details of community maintenance',
'Details of Shelf life Service',
'Details of Owner Complaints',
'Details of Report Online',
'Details of Problem Feedback',
];
useEffect(() => { useEffect(() => {
if (location.pathname.indexOf('/Edit') > -1) { if (location.pathname.indexOf('/Edit') > -1) {
setEditorFlag(true); setEditorFlag(true);
setHeadTitle(headTitles[parseInt(location.query.serviceType) - 1]);
} else { } else {
setEditorFlag(false); setEditorFlag(false);
setHeadTitle(headTitlesDetail[parseInt(location.query.serviceType) - 1]);
} }
RA(21, { RA(21, {
serviceType: location.query.serviceType, serviceType: location.query.serviceType,
id: location.query.id, id: location.query.id,
}); });
setHeadTitle(headTitles[parseInt(location.query.serviceType) - 1]);
setLoading(true); setLoading(true);
}, [location.pathname]); }, [location.pathname]);
......
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