From 71b872aa44de6266a344646d0e535895620d57a7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 05 一月 2020 22:45:06 +0800 Subject: [PATCH] 2020-01-05 --- src/tabviews/commontable/mainTable/index.jsx | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/tabviews/commontable/mainTable/index.jsx b/src/tabviews/commontable/mainTable/index.jsx index 049989f..3bcf3b9 100644 --- a/src/tabviews/commontable/mainTable/index.jsx +++ b/src/tabviews/commontable/mainTable/index.jsx @@ -124,6 +124,20 @@ </div> </div> ) + } else if (item.type === 'picture') { + let photos = '' + if (item.field && record.hasOwnProperty(item.field)) { + photos = record[item.field].split(',') + } else { + photos = '' + } + return ( + <div className="picture-col" style={{ minWidth: (item.Width || 120) + 'px' }}> + {photos && photos.map((url, i) => { + return <img key={`${i}`} src={url} alt=""/> + })} + </div> + ) } else if (item.type === 'action') { return ( <div className={item.style} style={{ minWidth: (item.Width || 120) + 'px' }}> -- Gitblit v1.8.0