Commit 09d7a08d authored by chenshouchao's avatar chenshouchao

fix: 查看数据集显示数据修改

parent ecfe0608
...@@ -117,6 +117,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => { ...@@ -117,6 +117,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
Object.keys(res.data.list[0]).forEach((item) => { Object.keys(res.data.list[0]).forEach((item) => {
if ( if (
![ ![
"meta",
"canonical_smiles", "canonical_smiles",
"id", "id",
"mol", "mol",
...@@ -313,7 +314,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => { ...@@ -313,7 +314,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
</div> </div>
{showData.length !== 0 && ( {showData.length !== 0 && (
<div className={style.datasetLiDataList}> <div className={style.datasetLiDataList}>
{Object.keys(item.meta) {Object.keys(item)
.filter((key) => showData.indexOf(key) !== -1) .filter((key) => showData.indexOf(key) !== -1)
.map((key, index) => { .map((key, index) => {
return ( return (
...@@ -328,8 +329,9 @@ const SeeDataset = observer((props: ISeeDatasetProps) => { ...@@ -328,8 +329,9 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
</span> </span>
<span <span
className={style.datasetLiDataLiValue} className={style.datasetLiDataLiValue}
title={item[key]}
> >
{item.meta[key]} {item[key]}
</span> </span>
</div> </div>
); );
......
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