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} + +