From 8811dd5162f936bb622ab59292d16a986590b63b Mon Sep 17 00:00:00 2001 From: zhaobing Date: Thu, 10 Aug 2023 14:15:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A6=96=E9=A1=B5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=B8=83=E5=B1=80+=E6=B3=A8=E9=87=8Aconsole.?= =?UTF-8?q?log()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fillion/components/gis/patrolGis.js | 2 +- .../fillion/components/maintenanceTable.js | 2 +- .../fillion/components/patrolTable.js | 4 +- .../containers/maintenanceSpotCheck.js | 4 +- .../quanju/containers/footer/guanli/index.js | 193 ++++++++++++------ 5 files changed, 132 insertions(+), 73 deletions(-) diff --git a/web/client/src/sections/fillion/components/gis/patrolGis.js b/web/client/src/sections/fillion/components/gis/patrolGis.js index d19399d3..1580f44a 100644 --- a/web/client/src/sections/fillion/components/gis/patrolGis.js +++ b/web/client/src/sections/fillion/components/gis/patrolGis.js @@ -49,7 +49,7 @@ function PatrolGis(props) { }, [userId, dateRange]) useEffect(() => { - console.log('userId', userId) + //console.log('userId', userId) if (reportList && mapObj) { mapObj.clearMap(); renderMarkers(); diff --git a/web/client/src/sections/fillion/components/maintenanceTable.js b/web/client/src/sections/fillion/components/maintenanceTable.js index 4ab2e550..b6d495c6 100644 --- a/web/client/src/sections/fillion/components/maintenanceTable.js +++ b/web/client/src/sections/fillion/components/maintenanceTable.js @@ -91,7 +91,7 @@ const DetailForm = (props) => { ]; const renderContent = (data) => { if (data) { - console.log('data1111', data) + // console.log('data1111', data) if (moment(data.time).isAfter(moment('2023-08-03 00:00:00'))) { return
diff --git a/web/client/src/sections/fillion/components/patrolTable.js b/web/client/src/sections/fillion/components/patrolTable.js index 2c866cab..29873744 100644 --- a/web/client/src/sections/fillion/components/patrolTable.js +++ b/web/client/src/sections/fillion/components/patrolTable.js @@ -1063,12 +1063,12 @@ const PatrolTable = (props) => { }; const handleChangeRecord = (newRecord) => { - console.log('userId', newRecord) + //console.log('userId', newRecord) let target = null; if (!recordCopy || (newRecord != recordCopy)) { target = newRecord; } - console.log('userId', target) + //console.log('userId', target) setRecordCopy(target) } diff --git a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js index 41c2eab7..fcbfb035 100644 --- a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js +++ b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js @@ -462,7 +462,7 @@ const MaintenanceSpotCheck = (props) => { id: item.id } }) - console.log('data1', data) + //console.log('data1', data) setReportData(data) } }) @@ -517,7 +517,7 @@ const MaintenanceSpotCheck = (props) => { setVis(false) } } - console.log('setReportData', reportData) + //console.log('setReportData', reportData) const lookhandler = () => { if ((dateRange && dateRange instanceof Array && dateRange[0] != '')) { 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 a569ecff..5bc518ef 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/index.js +++ b/web/client/src/sections/quanju/containers/footer/guanli/index.js @@ -68,72 +68,116 @@ const Guanli = (props) => { useEffect(() => { requestleftDatas(); // requestRightDatas() - + roadManagement() }, []) - const renderContent = () => { - - return
- {rightitemlist && rightitemlist.length !== 0 ? rightitemlist?.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { - if (index < 120) { - return
- -
- {picfile?.length > 0 ? - {picfile?.map(v => )} - - :
- } - - -
-

- 执法日期: - {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} -

-

- 执法道路: - {roadname} -

-

- 执法成果: - {enforcementreslt}

-
-
- -
} - placement="leftTop" - overlayStyle={{ minWidth: 500, minHeight: 200, paddingTop: 10, margin: 0, backgroundImage: `url(../../../../../assets/images/leadership/beijinglan.png)` }} - overlayClassName='popover' + // const renderContent = () => { + // console.log('rightitemlist', rightitemlist) + // return
+ // {rightitemlist && rightitemlist.length !== 0 ? rightitemlist?.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { + // if (index < 120) { + // return
+ // + //
+ // {picfile?.length > 0 ? + // {picfile?.map(v => )} + // + // :
+ // } - > -
-
{enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"}
-
{enforcementreslt}
-
- + + //
+ //

+ // 执法日期: + // {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} + //

+ //

+ // 执法道路: + // {roadname} + //

+ //

+ // 执法成果: + // {enforcementreslt}

+ //
+ //
+ + //
} + // placement="leftTop" + // overlayStyle={{ minWidth: 500, minHeight: 200, paddingTop: 10, margin: 0, backgroundImage: `url(../../../../../assets/images/leadership/beijinglan.png)` }} + // overlayClassName='popover' + + // > + //
+ //
{enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"}
+ //
{enforcementreslt}
+ //
+ //
+ //
+ // } + // }) : ""} + //
+ // } + const renderContent = rightitemlist.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { + return ( +
+
+ {picfile?.length > 0 ? + {picfile?.map(v =>
+ +
)} +
+ :
+ } +
+

+ 执法日期: + {enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} +

+

+ 执法道路: + {roadname} +

+

+ 执法成果: + {enforcementreslt}

- } - }) : ""} -
- } +
+
+ ) + }) const renderLeftContent = () => { // setleftDatas(leftDatas=>leftDatas.sort((a,b)=>b.total - a.total)) @@ -143,6 +187,7 @@ const Guanli = (props) => { } // renderContent() + // console.log(' renderContent.length', renderContent.length) return ( <>
@@ -169,19 +214,33 @@ const Guanli = (props) => { 处罚 处理日期
*/} -
+ {/*
执法日期
执法成果
-
- {rightitemlist && rightitemlist.length !== 0 ? */} + {rightitemlist && rightitemlist.length !== 0 ? : } + + {/* { + renderContent.length > 3 ? + + {renderContent} + : renderContent + } */} -
+
) } -function mapStateToProps (state) { +function mapStateToProps(state) { const { auth, depMessage, global } = state; const pakData = (dep) => { return dep.map((d) => {