7.4 党建临时发版内容
This commit is contained in:
@ -19,6 +19,10 @@ import topic_protocol from '@/assets/topic/topic_protocol.png'
|
||||
import topic_header_img from '@/assets/topic/topic_header_img.png'
|
||||
import topic_banner_default from '@/assets/topic/topic_banner_default.jpg'
|
||||
import topic_activity_default from '@/assets/topic/topic_activity_default.jpg'
|
||||
import topic_firstline from '@/assets/topic/topic_firstline.png'
|
||||
import topic_interview from '@/assets/topic/topic_interview.png'
|
||||
import topic_assure from '@/assets/topic/topic_assure.png'
|
||||
import topic_difficult from '@/assets/topic/topic_difficult.png'
|
||||
import { getHomeActivity, getHomeBanner, getHomeContact, getHomeGraceful, getHomeProject, getHomeRight, submitAdvice } from './service';
|
||||
import { formatTime, getImageUrl, isEmpty, isNotEmpty } from '../utils';
|
||||
|
||||
@ -168,6 +172,10 @@ const CommentModal = (props: any) => {
|
||||
}
|
||||
|
||||
const onSubmit = async () => {
|
||||
if (isEmpty(radioRef.current)) {
|
||||
message.info("请选择意见类型");
|
||||
return;
|
||||
}
|
||||
if (isEmpty(textRef.current)) {
|
||||
message.info("请先输入意见内容");
|
||||
return;
|
||||
@ -212,7 +220,7 @@ const CommentModal = (props: any) => {
|
||||
<Spin spinning={modalLoading}>
|
||||
<div className='bottom-modal-body'>
|
||||
<div className='radio-group'>
|
||||
<Radio.Group onChange={onRadioChange} defaultValue={"网络运营"}>
|
||||
<Radio.Group onChange={onRadioChange} defaultValue={""}>
|
||||
<Radio value="网络运营" className="radio-content">网络运营</Radio>
|
||||
<Radio value="IT" className="radio-content">IT</Radio>
|
||||
<Radio value="市场" className="radio-content">市场</Radio>
|
||||
@ -331,8 +339,9 @@ const Home: React.FC<{}> = () => {
|
||||
getHomeRight().then(res => {
|
||||
if (res?.code == 200) {
|
||||
if (res?.data.length > 0) {
|
||||
setRightList(res?.data.slice(0, 6));
|
||||
setRightGraphList(res?.data.slice(6, 9));
|
||||
// setRightList(res?.data.slice(0, 6));
|
||||
// setRightGraphList(res?.data.slice(6));
|
||||
setRightList(res?.data);
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -487,7 +496,7 @@ const Home: React.FC<{}> = () => {
|
||||
<RightDisplayContent index={5} data={rightList} img={topic_protocol} color="number-orange" />
|
||||
</div>
|
||||
<Divider className='right-divider' />
|
||||
{rightGraphList.length > 0 && rightGraphList.map(item => (
|
||||
{/* {rightGraphList.length > 0 && rightGraphList.map(item => (
|
||||
<div className='right-graph' key={item.dataClass}>
|
||||
<div className='right-graph-title'>
|
||||
{item.dataClass}
|
||||
@ -499,7 +508,14 @@ const Home: React.FC<{}> = () => {
|
||||
<RightGraphContent name={item.dataClass} type={item.dataType} data={item.data} />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
))} */}
|
||||
<div className='right-display'>
|
||||
<RightDisplayTitle title="党建攻坚活动情况" />
|
||||
<RightDisplayContent index={6} data={rightList} img={topic_firstline} color="number-purple" />
|
||||
<RightDisplayContent index={7} data={rightList} img={topic_interview} color="number-purple" />
|
||||
<RightDisplayContent index={8} data={rightList} img={topic_assure} color="number-purple" />
|
||||
<RightDisplayContent index={9} data={rightList} img={topic_difficult} color="number-purple" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className='bottom-global'>
|
||||
|
Reference in New Issue
Block a user