Kaynağa Gözat

feat: RenderLongleCon修改

lanjianrong 5 yıl önce
ebeveyn
işleme
aba174371c

+ 7 - 9
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockTabList.jsx

@@ -60,7 +60,7 @@ const LockTabList = props => {
                         /> */}
                       </Col>
                       <Col span="16">
-                        <RenderLongleCon longgleService={item}></RenderLongleCon>
+                        <RenderLongleCon longgleService={item} />
                       </Col>
                     </Row>
                   </List.Item>
@@ -134,15 +134,13 @@ const LockTabList = props => {
 const RenderLongleCon = ({ longgleService }) => {
   return (
     <>
-      {showProductsStatus.includes(item.status) ? (
-        <ProductLabel longgleService={item.product} />
-      ) : null},
-      {showNewLongleStatus.includes(item.status) ? (
-        {item.NewKeyNum}
-      ) : null},
-      {showMarkStatus.includes(item.status) ? (
-        {item.mark}
+      {showProductsStatus.includes(longgleService.status) ? (
+        <ProductLabel longgleService={longgleService.product} />
       ) : null}
+      {showNewLongleStatus.includes(longgleService.status) ? (
+        <span>{longgleService.NewKeyNum}</span>
+      ) : null}
+      {showMarkStatus.includes(longgleService.status) ? <span>{longgleService.mark}</span> : null}
     </>
   )
 }