diff --git a/src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx b/src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx index 2b408c6..7f16a7d 100644 --- a/src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx +++ b/src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx @@ -712,21 +712,13 @@ function ExceptionParkReport() {

共查询到 {Data?.total || 0}条数据

- {/* { - Data?.total && setOpen(true); - - tipForm.setFieldsValue({ - filename: "设备运行统计-" + moment().format("YYYY-MM-DD"), - }); - // setFormDatas({ ...FormData }); - }} - > - 导出 - */} - 导出} + {Data?.total && ( + + 导出 + + } modalType="noImg" totalRecords={Data?.total || 0} exportUrl="/api/ana/equipmentRuning/export" @@ -734,11 +726,13 @@ function ExceptionParkReport() { formData: { ...FormDatas, area_id: Show, - export_name: "设备运行统计-" + moment().format("YYYY-MM-DD") - } + export_name: + "设备运行统计-" + moment().format("YYYY-MM-DD"), + }, }} imgno={false} - /> + /> + )}
- record.id} diff --git a/src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx b/src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx index aa2262e..2190054 100644 --- a/src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx +++ b/src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx @@ -603,17 +603,13 @@ function ParkingAly() {

共查询到 {Data?.total || 0}条数据

- {/* { - Data?.total && ReportPaySummaryReport(); - // setFormDatas({ ...FormData }); - }} - > - 导出 - */} - 导出} + {Data?.total && ( + + 导出 + + } modalType="noImg" totalRecords={500} exportUrl="/api/ana/member/parking_export" @@ -622,11 +618,12 @@ function ParkingAly() { pn: 1, page_size: 15, ...FormData, - ...DateFormt(FormDatas.date_type) - } + ...DateFormt(FormDatas.date_type), + }, }} imgno={false} - /> + /> + )} { if (parseInt(res?.status) === 20000) { // Daownload(res?.data?.export_url); - message.success(res.message) - exportRef.current.handleCancel() + message.success(res.message); + exportRef.current.handleCancel(); } else { message.error(res?.message); - exportRef.current.handleError() + exportRef.current.handleError(); } }, (err) => { @@ -986,27 +986,24 @@ function PayAly() {

共查询到 {Data?.total || 0}条数据

- {/* { - Data?.total && ReportPaySummaryReport(); - // setFormDatas({ ...FormData }); - }} - > - 导出 - */} - 导出} - modalType="noImg" - ref={exportRef} - totalRecords={Data?.total || 0} - imgno={false} - postdata={{ - formData: FormDatas - }} - isTableModule={true} - onOk={ReportPaySummaryReport} - /> + {Data?.total && ( + + 导出 + + } + modalType="noImg" + ref={exportRef} + totalRecords={Data?.total || 0} + imgno={false} + postdata={{ + formData: FormDatas, + }} + isTableModule={true} + onOk={ReportPaySummaryReport} + /> + )} { if (parseInt(res?.status) === 20000) { // Daownload(res?.data?.export_url); - message.success(res.message) - exportRef.current.handleCancel() + message.success(res.message); + exportRef.current.handleCancel(); } else { - exportRef.current.handleError() + exportRef.current.handleError(); message.error(res?.message); } }, @@ -809,27 +809,24 @@ function RegisterAly() {

共查询到 {Data?.total || 0}条数据

- {/* { - Data?.total && ReportPaySummaryReport(); - // setFormDatas({ ...FormData }); - }} - > - 导出 - */} - 导出} - modalType="noImg" - ref={exportRef} - totalRecords={Data?.total || 0} - imgno={false} - postdata={{ - formData: FormDatas - }} - isTableModule={true} - onOk={ReportPaySummaryReport} - /> + {Data?.total && ( + + 导出 + + } + modalType="noImg" + ref={exportRef} + totalRecords={Data?.total || 0} + imgno={false} + postdata={{ + formData: FormDatas, + }} + isTableModule={true} + onOk={ReportPaySummaryReport} + /> + )}