From c453503250a6257fda343d36dc936f584cea4e06 Mon Sep 17 00:00:00 2001
From: zhaobing
Date: Fri, 11 Aug 2023 09:02:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=84=E7=90=86=E8=BD=AE=E6=92=AD?=
=?UTF-8?q?=E5=8D=A1=E7=89=87=E5=86=85=E5=AE=B9=E6=BA=A2=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/sections/quanju/containers/footer/guanli/index.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/client/src/sections/quanju/containers/footer/guanli/index.js b/web/client/src/sections/quanju/containers/footer/guanli/index.js
index 42bfce1e..7a2532bb 100644
--- a/web/client/src/sections/quanju/containers/footer/guanli/index.js
+++ b/web/client/src/sections/quanju/containers/footer/guanli/index.js
@@ -10,6 +10,7 @@ import { getjiandmanage, getjiandetail } from '../../../actions/example'
import { getRoadadministration } from '../../../../fillion/actions/luzheng'
import './style.less'
import NoData from '../../public/noData';
+import { stubString } from 'lodash';
const Guanli = (props) => {
const { dispatch } = props
const [leftDatas, setleftDatas] = useState([])
@@ -164,14 +165,16 @@ const Guanli = (props) => {
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC",
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis", display: 'inline-block', width: 160
}}>
- {roadname}
+ {roadname.length > 2 ? {roadname.substring(0, 5) + '...'} : roadname}
执法成果:
- {enforcementreslt}
+ {enforcementreslt.length > 2 ? {enforcementreslt.substring(0, 5) + '...'} : enforcementreslt}
+
+