From 98f0dc29378413be45739f8fdf2f6251c4dc9e7d Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Sat, 17 Aug 2024 17:43:26 +0800
Subject: [PATCH] 查看材料弹窗组件
---
gz-customerSystem/src/components/personCard/index.jsx | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gz-customerSystem/src/components/personCard/index.jsx b/gz-customerSystem/src/components/personCard/index.jsx
index a0be0ab..987bdae 100644
--- a/gz-customerSystem/src/components/personCard/index.jsx
+++ b/gz-customerSystem/src/components/personCard/index.jsx
@@ -18,7 +18,7 @@
* handleCheckParty, // 点击查看详情
* handleDeleteParty, // 删除当事人
*/
-const PersonCard = ({ isCheck, data, handleCheckParty, handleDeleteParty }) => {
+const PersonCard = ({ isCheck, data, handleCheckParty, handleDeleteParty, handleAdd }) => {
return (
<Row gutter={[24, 16]}>
@@ -57,7 +57,7 @@
}
<Space style={{ display: 'flex', flexWrap: 'wrap' }}>
{x.remark?.map((item, index) => (
- <div key={index} style={{ lineHeight: '22px', padding: '0px 8px', backgroundColor: `${item.color}`, width: 'fit-content', borderRadius: '4px', marginTop: '4px' }}>{item.label}</div>
+ <div key={index} style={{ lineHeight: '22px', padding: '0px 8px', backgroundColor: `${item.color}`, width: 'fit-content', borderRadius: '4px', marginTop: '4px', color: '#fff' }}>{item.label}</div>
))}
</Space>
</div>
@@ -68,11 +68,11 @@
<div className="dataSync-addBtn">
<Tooltip
title={(<Space direction='vertical '>
- <div className="dataSync-btnApply" style={{ backgroundColor: '#1A6FB8' }}>申请方</div>
- <div className="dataSync-btnApply" style={{ backgroundColor: '#FA8C16' }}>被申请方</div>
- <div className="dataSync-btnApply" style={{ backgroundColor: '#3491FA' }}>代理人</div>
+ <div className="dataSync-btnApply" style={{ backgroundColor: '#1A6FB8' }} onClick={() => {handleAdd(0)}}>申请方</div>
+ <div className="dataSync-btnApply" style={{ backgroundColor: '#FA8C16' }} onClick={() => {handleAdd(1)}}>被申请方</div>
+ <div className="dataSync-btnApply" style={{ backgroundColor: '#3491FA' }} onClick={() => {handleAdd(2)}}>代理人</div>
</Space>)}
- placement={data.length % 3 === 0 ? 'left' : "right"}
+ placement={data.length !== 0 && data.length % 3 === 0 ? 'left' : "right"}
color='#ffff'
overlayStyle={{}}
>
--
Gitblit v1.8.0