5.6 高质量运营优化
This commit is contained in:
@ -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'>
|
||||
|
@ -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));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -59,7 +59,8 @@ export function chunk(arr: any[], size: number) {
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* 权限校验(党建管理员)
|
||||
* 权限校验(党建管理员,高质量运营管理员)
|
||||
* ebtp-party-admin
|
||||
* @returns
|
||||
*/
|
||||
export const managerAuthority = (authority: string) => {
|
||||
|
Reference in New Issue
Block a user