From 6bdc2614c6b22d1a06f83faa891905ef3f35b4e0 Mon Sep 17 00:00:00 2001 From: lijingqi <1437862981@qq.com> Date: Fri, 17 Jan 2025 17:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modals/LivingGarbage/PopoverCard/index.less | 11 +++++++++-- .../modals/LivingGarbage/PopoverCard/index.tsx | 12 ++++++------ .../modals/LivingGarbage/index.tsx | 7 ++++--- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.less b/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.less index 862b7764..b061dc95 100644 --- a/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.less +++ b/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.less @@ -2,10 +2,17 @@ position: relative; background: rgba(27, 124, 181, 0.2); width: 382x; - height: 178px; + height: 175px; padding: 10px 10px; overflow: auto; - +:global{ + .ant-descriptions-item-container{ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 350px; + } +} .title { font-size: 24px; color: rgb(255, 255, 255); diff --git a/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.tsx b/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.tsx index 615288d5..deaacff8 100644 --- a/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.tsx +++ b/src/pages/GlobalModalServices/modals/LivingGarbage/PopoverCard/index.tsx @@ -11,33 +11,33 @@ const PopoverCard: React.FC = (props) => { return [ { key: '1', - label: '处置厂类型:', + label: '处置厂类型:', children: data?.czclx, }, { key: '4', - label: '处置厂最大处置量(万吨):', + label: '处置厂最大处置量(万吨):', children: data?.czcln, }, { key: '3', - label: '管理单位:', + label: '管理单位:', children: data?.manageunitname, }, { key: '2', - label: '所在位置:', + label: '所在位置:', children: data?.address, }, { key: '5', - label: '建设时间:', + label: '建设时间:', children: data?.jcsscreatetime, }, { key: '6', - label: '本月处置量(万吨):', + label: '本月处置量(万吨):', children: data?.czl, }, ]; diff --git a/src/pages/GlobalModalServices/modals/LivingGarbage/index.tsx b/src/pages/GlobalModalServices/modals/LivingGarbage/index.tsx index bacbf6fc..d93c582f 100644 --- a/src/pages/GlobalModalServices/modals/LivingGarbage/index.tsx +++ b/src/pages/GlobalModalServices/modals/LivingGarbage/index.tsx @@ -249,9 +249,10 @@ const LivingGarbage: React.FC = () => { > {pointData ?.filter((it) => checkedKeys?.includes(it.czclx)) - ?.map((item) => { + ?.map((item,index) => { return ( { try { @@ -389,9 +390,9 @@ const LivingGarbage: React.FC = () => { {expand === item?.title && (
- {item?.children?.map((it, index) => ( + {item?.children?.map((it, idx) => (
handleLocation(it)} > -- GitLab