From a09205214e5cb6803563cb06c6d9f58d68916b73 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Mon, 16 Sep 2024 22:11:21 +0800
Subject: [PATCH] 调整网格调整,修正头部head数据传输逻辑

---
 gz-customerSystem/src/components/personCard/DetailDialog.jsx |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/gz-customerSystem/src/components/personCard/DetailDialog.jsx b/gz-customerSystem/src/components/personCard/DetailDialog.jsx
index 814f556..2a94e1c 100644
--- a/gz-customerSystem/src/components/personCard/DetailDialog.jsx
+++ b/gz-customerSystem/src/components/personCard/DetailDialog.jsx
@@ -326,14 +326,19 @@
           return {
             ...res,
             value: <>
-              {data[res.field]?.map(item => {
-                console.log(item);
-                if(item.response) {
+              {data[res.field]?.map((item, index) => {
+                if (item.response) {
                   //新上传的,前端数据
-                  const data = item.response.data[0]
-                  return <PreviewImage name={data.name} src={data.showUrl} />
+                  const newData = item.response.data[0]
+                  return <div style={{ display: 'inline-block' }}>
+                    <PreviewImage name={newData.name} src={newData.showUrl} />
+                    {index !== data[res.field].length - 1 && <>,</>}
+                  </div>
                 } else {
-                  return <PreviewImage name={item.name} src={item.showUrl} />
+                  return <div style={{ display: 'inline-block' }}>
+                    <PreviewImage name={item.name} src={item.showUrl} />
+                    {index !== data[res.field].length - 1 && <>,</>}
+                  </div>
                 }
               })}
             </>
@@ -352,6 +357,11 @@
               ...res,
               value: filterValue
             }
+          } else if (res.field === 'extreme') {
+            return {
+              ...res,
+              value: data[res.field] === 0 ? '否' : '是'
+            }
           } else {
             return {
               ...res,

--
Gitblit v1.8.0