Commit d6c29ab5 by zhujian

fix:tooltips

parent 486955e2
...@@ -35,14 +35,14 @@ function StudyTable(props: any) { ...@@ -35,14 +35,14 @@ function StudyTable(props: any) {
function getList() { function getList() {
Service.Hades('public/hades/getTaskCustomerRecordPage', query).then((res: any) => { Service.Hades('public/hades/getTaskCustomerRecordPage', query).then((res: any) => {
res.result.records.map((item: any) => { res.result.records.map((item: any) => {
item.department =item.departmentNameList.map((_item:any)=>{ item.department = item.departmentNameList.map((_item: any) => {
if (_item == '1000') { if (_item == '1000') {
return '微信' return '微信'
} else { } else {
return <WWOpenDataCom type="departmentName" openid={_item} /> return <WWOpenDataCom type="departmentName" openid={_item} />
} }
}) })
}) })
setList(res.result.records) setList(res.result.records)
setTotal(res.result.total) setTotal(res.result.total)
...@@ -73,13 +73,13 @@ function StudyTable(props: any) { ...@@ -73,13 +73,13 @@ function StudyTable(props: any) {
key: 'departmentNameList', key: 'departmentNameList',
dataIndex: 'departmentNameList', dataIndex: 'departmentNameList',
render: (val: any, record: any) => { render: (val: any, record: any) => {
return <div> return <div>
{ {
record.department.map((item:any,index:number)=>{ record.department.map((item: any, index: number) => {
if((index+1) ==record.department.length){ if ((index + 1) == record.department.length) {
return item return item
}else{ } else {
return [item,';'] return [item, ';']
} }
}) })
...@@ -103,7 +103,13 @@ function StudyTable(props: any) { ...@@ -103,7 +103,13 @@ function StudyTable(props: any) {
}, },
}, },
{ {
title: '学习进度', title: <div>学习进度 <Tooltip
title={'已完成任务数/任务总数'}>
<span
style={{ color: "rgba(191, 191, 191, 1)", fontWeight: 400 }}
className="iconfont"
>&#xe61d;</span>
</Tooltip></div>,
key: 'learnPercentage', key: 'learnPercentage',
dataIndex: 'learnPercentage', dataIndex: 'learnPercentage',
render: (val: any, record: any) => { render: (val: any, record: any) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment