我的图表页面

This commit is contained in:
brian 2023-07-21 18:35:51 +08:00
parent 521aca96d0
commit 936cad3d34

View File

@ -99,21 +99,16 @@ const MyChartPage: React.FC = () => {
}}
loading={loading}
dataSource={chartList}
footer={
<div>
<b>ant design</b> footer part
</div>
}
renderItem={(item) => (
<List.Item key={item.id}>
<Card style={{ width: '100%' }}>
<List.Item.Meta
avatar={<Avatar src={currentUser && currentUser.userAvatar} />}
title={item.chartName}
description={item.chartType ? '图表类型' + item.chartType : undefined}
description={item.chartType ? '图表类型' + item.chartType : undefined}
/>
<div style={{ marginBottom: 16 }} />
{'分析目标' + item.goal}
{'分析目标' + item.goal}
<div style={{ marginBottom: 16 }} />
<ReactECharts option={JSON.parse(item.genChart ?? '{}')}></ReactECharts>
</Card>