5.6 高质量运营优化

This commit is contained in:
jl-zhoujl2
2023-05-06 14:30:49 +08:00
parent bf41560559
commit f5819216de
3 changed files with 12 additions and 7 deletions

View File

@ -33,8 +33,6 @@ const formItemLayout = {
wrapperCol: { span: 17 },
};
const learnUrl = START_ENV == "PROD" ? "https://m.campus.chinaunicom.cn/#/checkidentity?dataId=376&type=THEME" : null;
//卡片头
const LeftCardTop = (props: any) => {
return (
@ -409,6 +407,12 @@ const Home: React.FC<{}> = () => {
setContactData([...totalContactData.slice(0, 3)]);
}
}
//right learn click
const learnClick = (rightData: any[], index: number) => {
if (rightData && rightData.length > 0 && START_ENV == "PROD") {
window.open(rightData[index].dataValue);
}
}
const handleChange = (tag: string, checked: boolean) => {
const nextSelectedTag = checked ? tag : '';
getContactList(nextSelectedTag);
@ -573,13 +577,13 @@ const Home: React.FC<{}> = () => {
<RightDisplayContent index={0} data={rightList} img={partymember} color="number-blue" />
</div>
<div className='right-learn'>
<div className='right-learn-title' onClick={() => { learnUrl && window.open(learnUrl) }}>
<div className='right-learn-title' onClick={() => learnClick(rightList, 10)}>
<span></span>
</div>
<div className='right-learn-test'>
<div className='right-learn-test' onClick={() => learnClick(rightList, 11)}>
<span></span>
</div>
<div className='right-learn-exam'>
<div className='right-learn-exam' onClick={() => learnClick(rightList, 12)}>
<span></span>
</div>
<div className='right-learn-rank'>

View File

@ -45,7 +45,7 @@ const ProLineMaintenance: React.FC<{}> = () => {
// })
getHomeRight().then(res => {
if (res?.success) {
setFormData(res?.data.slice(-4));
setFormData(res?.data.slice(6, 10));
}
})
}

View File

@ -59,7 +59,8 @@ export function chunk(arr: any[], size: number) {
return result;
}
/**
* 权限校验(党建管理员)
* 权限校验(党建管理员,高质量运营管理员
* ebtp-party-admin
* @returns
*/
export const managerAuthority = (authority: string) => {