chromesetting
杨树明 5 years ago
parent b9a2bce771
commit e427a11f69

@ -59,7 +59,10 @@ class TPMRightSection extends Component {
render() {
let {TPMRightSection, clickNewsubscripttype} = this.state;
let {TPMRightSectionData} = this.props
console.log(this.props.status)
let Progresssum;
if(TPMRightSectionData&&TPMRightSectionData.complete_count!=null){
Progresssum=(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))*100;
}
return (
<div>
{
@ -94,7 +97,7 @@ class TPMRightSection extends Component {
</div>
</div>
<div className="edu-back-white padd252020px relative">
{TPMRightSectionData&&TPMRightSectionData.complete_count!=null?<div className="edu-back-white padd252020px relative">
<div className="font-16 mb5">
<span><i className={"iconfont icon-biaoqian2 audit_situationactive font-14"}></i> </span>
<span className={"sortinxdirection space-between fr"}>
@ -102,13 +105,12 @@ class TPMRightSection extends Component {
</span>
</div>
{console.log(TPMRightSectionData&&TPMRightSectionData.complete_count)}
{console.log(TPMRightSectionData&&TPMRightSectionData.challenge_count)}
<Progress percent={(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))/ 100.00} showInfo={false} status="active" strokeColor={{
<Progress percent={Progresssum} showInfo={false} status="active" strokeColor={{
'0%': '#29BD8B',
'100%': '#29BD8B',
}} />
</div>
</div>:""}
{
TPMRightSectionData === undefined ? "" : TPMRightSectionData.tags === undefined ? "" : TPMRightSectionData.tags.length === 0 ? "" :
<div className="edu-back-white padd252020px mb10 relative">

Loading…
Cancel
Save