|
|
|
@ -260,26 +260,49 @@ const Workplace: FC = () => {
|
|
|
|
|
position: 'top-center',
|
|
|
|
|
}}
|
|
|
|
|
point={{ size: 5 }}
|
|
|
|
|
tooltip={{
|
|
|
|
|
customContent: (title: any, items: any): any => {
|
|
|
|
|
console.log('title',title);
|
|
|
|
|
console.log('items',items);
|
|
|
|
|
return(
|
|
|
|
|
<div style={{ padding: '12px 14px', fontSize: '12px', width: '180px', height: '68px',lineHeight:'20px' }}>
|
|
|
|
|
<div>{title}</div>
|
|
|
|
|
<div>学习时长:{items[0]?items[0].data.learning_minutes:''}</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
<Card
|
|
|
|
|
bodyStyle={{ padding: 15 }}
|
|
|
|
|
bordered={false}
|
|
|
|
|
className={styles.studyCard}
|
|
|
|
|
title="当前学习"
|
|
|
|
|
loading={activitiesLoading}
|
|
|
|
|
// cover={<img alt="example" src={lastLearningList?.course_attachment_json?.img} />}
|
|
|
|
|
cover={<Image preview={false} width={200} height={150} src={`/dsideal_yy/html/${lastLearningList?.subject_attachment_json?.url}`} fallback="../fallback.svg" />}
|
|
|
|
|
{
|
|
|
|
|
JSON.stringify(lastLearningList)!=='{}'?
|
|
|
|
|
<Card
|
|
|
|
|
bodyStyle={{ padding: 15 }}
|
|
|
|
|
bordered={false}
|
|
|
|
|
className={styles.studyCard}
|
|
|
|
|
title="当前学习"
|
|
|
|
|
loading={activitiesLoading}
|
|
|
|
|
// cover={<img alt="example" src={lastLearningList?.course_attachment_json?.img} />}
|
|
|
|
|
cover={<Image preview={false} width={200} height={150} src={`/dsideal_yy/html/${lastLearningList?.subject_attachment_json?.url}`} fallback="../fallback.svg" />}
|
|
|
|
|
>
|
|
|
|
|
<Descriptions title={lastLearningList?.course_name} layout='horizontal' column={1} >
|
|
|
|
|
<Descriptions.Item label="主将人">{lastLearningList?.lecture_teacher}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="章节">{lastLearningList?.chapter_name}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="主题">{lastLearningList?.subject_name}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="时长">{lastLearningList?.total_course_minutes}分钟</Descriptions.Item>
|
|
|
|
|
</Descriptions>
|
|
|
|
|
<Progress percent={lastLearningList?.learning_progress} />
|
|
|
|
|
<Descriptions title={lastLearningList?.course_name} layout='horizontal' column={1} >
|
|
|
|
|
<Descriptions.Item label="主将人">{lastLearningList?.lecture_teacher}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="章节">{lastLearningList?.chapter_name}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="主题">{lastLearningList?.subject_name}</Descriptions.Item>
|
|
|
|
|
<Descriptions.Item label="时长">{lastLearningList?.total_course_minutes}分钟</Descriptions.Item>
|
|
|
|
|
</Descriptions>
|
|
|
|
|
<Progress percent={lastLearningList?.learning_progress} />
|
|
|
|
|
</Card>
|
|
|
|
|
: <Card
|
|
|
|
|
bodyStyle={{ padding: 15 }}
|
|
|
|
|
bordered={false}
|
|
|
|
|
className={styles.studyCard}
|
|
|
|
|
title="当前学习"
|
|
|
|
|
><div style={{minHeight:'5rem',textAlign:'right',paddingTop:'1rem',fontSize:'15px'}}>暂无数据</div></Card>
|
|
|
|
|
}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col xl={14} lg={14} md={14} sm={14} xs={14}>
|
|
|
|
|
<Card
|
|
|
|
|