Browse Source

fix(): 修改会员统计导出展示

tags/PMS_V1.0.0_Alpha7
chenqiang 1 year ago
parent
commit
60c8ec1aec
  1. 30
      src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx
  2. 25
      src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx
  3. 49
      src/pages/DataAnalysisPrediction/MemberStat/PayAly/loadable.jsx
  4. 49
      src/pages/DataAnalysisPrediction/MemberStat/RegisterAly/loadable.jsx

30
src/pages/DataAnalysisPrediction/EquipmentAly/EquipmentRunningStat/loadable.jsx

@ -712,21 +712,13 @@ function ExceptionParkReport() {
<p> <p>
共查询到<span> {Data?.total || 0}</span>条数据 共查询到<span> {Data?.total || 0}</span>条数据
</p> </p>
{/* <span
className={"sear_ser"}
onClick={() => {
Data?.total && setOpen(true);
tipForm.setFieldsValue({
filename: "设备运行统计-" + moment().format("YYYY-MM-DD"),
});
// setFormDatas({ ...FormData });
}}
>
导出
</span> */}
<ExportBtnNew
children={<Button className="export-btn" size='medium' type="primary">导出</Button>}
{Data?.total && (
<ExportBtnNew
children={
<Button className="export-btn" size="medium" type="primary">
导出
</Button>
}
modalType="noImg" modalType="noImg"
totalRecords={Data?.total || 0} totalRecords={Data?.total || 0}
exportUrl="/api/ana/equipmentRuning/export" exportUrl="/api/ana/equipmentRuning/export"
@ -734,11 +726,13 @@ function ExceptionParkReport() {
formData: { formData: {
...FormDatas, ...FormDatas,
area_id: Show, area_id: Show,
export_name: "设备运行统计-" + moment().format("YYYY-MM-DD")
}
export_name:
"设备运行统计-" + moment().format("YYYY-MM-DD"),
},
}} }}
imgno={false} imgno={false}
/>
/>
)}
</div> </div>
<ResultFlow <ResultFlow
hasLoad={true} hasLoad={true}

25
src/pages/DataAnalysisPrediction/MemberStat/ParkingAly/loadable.jsx

@ -603,17 +603,13 @@ function ParkingAly() {
<p> <p>
共查询到<span> {Data?.total || 0}</span>条数据 共查询到<span> {Data?.total || 0}</span>条数据
</p> </p>
{/* <span
className={"sear_ser"}
onClick={() => {
Data?.total && ReportPaySummaryReport();
// setFormDatas({ ...FormData });
}}
>
导出
</span> */}
<ExportBtnNew
children={<Button className="export-btn" size='medium' type="primary">导出</Button>}
{Data?.total && (
<ExportBtnNew
children={
<Button className="export-btn" size="medium" type="primary">
导出
</Button>
}
modalType="noImg" modalType="noImg"
totalRecords={500} totalRecords={500}
exportUrl="/api/ana/member/parking_export" exportUrl="/api/ana/member/parking_export"
@ -622,11 +618,12 @@ function ParkingAly() {
pn: 1, pn: 1,
page_size: 15, page_size: 15,
...FormData, ...FormData,
...DateFormt(FormDatas.date_type)
}
...DateFormt(FormDatas.date_type),
},
}} }}
imgno={false} imgno={false}
/>
/>
)}
</div> </div>
<ResultFlow <ResultFlow
hasLoad={true} hasLoad={true}

49
src/pages/DataAnalysisPrediction/MemberStat/PayAly/loadable.jsx

@ -22,7 +22,7 @@ import ajax from "@/services";
import { ResultFlow, ExportBtnNew } from "@/components"; import { ResultFlow, ExportBtnNew } from "@/components";
import "./index.scss"; import "./index.scss";
function PayAly() { function PayAly() {
const exportRef = useRef(null)
const exportRef = useRef(null);
const formdata = { const formdata = {
operator_id: "0", // operator_id: "0", //
data_source: "", // 1= 2= data_source: "", // 1= 2=
@ -255,16 +255,16 @@ function PayAly() {
...FormDatas, ...FormDatas,
...DateFormt(FormDatas.date_type), ...DateFormt(FormDatas.date_type),
start: start, start: start,
end: end
end: end,
}).then( }).then(
(res) => { (res) => {
if (parseInt(res?.status) === 20000) { if (parseInt(res?.status) === 20000) {
// Daownload(res?.data?.export_url); // Daownload(res?.data?.export_url);
message.success(res.message)
exportRef.current.handleCancel()
message.success(res.message);
exportRef.current.handleCancel();
} else { } else {
message.error(res?.message); message.error(res?.message);
exportRef.current.handleError()
exportRef.current.handleError();
} }
}, },
(err) => { (err) => {
@ -986,27 +986,24 @@ function PayAly() {
<p> <p>
共查询到<span> {Data?.total || 0}</span>条数据 共查询到<span> {Data?.total || 0}</span>条数据
</p> </p>
{/* <span
className={"sear_ser"}
onClick={() => {
Data?.total && ReportPaySummaryReport();
// setFormDatas({ ...FormData });
}}
>
导出
</span> */}
<ExportBtnNew
children={<Button className="export-btn" size='medium' type="primary">导出</Button>}
modalType="noImg"
ref={exportRef}
totalRecords={Data?.total || 0}
imgno={false}
postdata={{
formData: FormDatas
}}
isTableModule={true}
onOk={ReportPaySummaryReport}
/>
{Data?.total && (
<ExportBtnNew
children={
<Button className="export-btn" size="medium" type="primary">
导出
</Button>
}
modalType="noImg"
ref={exportRef}
totalRecords={Data?.total || 0}
imgno={false}
postdata={{
formData: FormDatas,
}}
isTableModule={true}
onOk={ReportPaySummaryReport}
/>
)}
</div> </div>
<ResultFlow <ResultFlow
hasLoad={true} hasLoad={true}

49
src/pages/DataAnalysisPrediction/MemberStat/RegisterAly/loadable.jsx

@ -22,7 +22,7 @@ import ajax from "@/services";
import { ResultFlow, ExportBtnNew } from "@/components"; import { ResultFlow, ExportBtnNew } from "@/components";
import "./index.scss"; import "./index.scss";
function RegisterAly() { function RegisterAly() {
const exportRef = useRef(null)
const exportRef = useRef(null);
const formdata = { const formdata = {
date_type: "1", date_type: "1",
start_date: moment().startOf("day").format("YYYY-MM-DD"), start_date: moment().startOf("day").format("YYYY-MM-DD"),
@ -246,15 +246,15 @@ function RegisterAly() {
...FormDatas, ...FormDatas,
...DateFormt(FormDatas.date_type), ...DateFormt(FormDatas.date_type),
start: start, start: start,
end: end
end: end,
}).then( }).then(
(res) => { (res) => {
if (parseInt(res?.status) === 20000) { if (parseInt(res?.status) === 20000) {
// Daownload(res?.data?.export_url); // Daownload(res?.data?.export_url);
message.success(res.message)
exportRef.current.handleCancel()
message.success(res.message);
exportRef.current.handleCancel();
} else { } else {
exportRef.current.handleError()
exportRef.current.handleError();
message.error(res?.message); message.error(res?.message);
} }
}, },
@ -809,27 +809,24 @@ function RegisterAly() {
<p> <p>
共查询到<span> {Data?.total || 0}</span>条数据 共查询到<span> {Data?.total || 0}</span>条数据
</p> </p>
{/* <span
className={"sear_ser"}
onClick={() => {
Data?.total && ReportPaySummaryReport();
// setFormDatas({ ...FormData });
}}
>
导出
</span> */}
<ExportBtnNew
children={<Button className="export-btn" size='medium' type="primary">导出</Button>}
modalType="noImg"
ref={exportRef}
totalRecords={Data?.total || 0}
imgno={false}
postdata={{
formData: FormDatas
}}
isTableModule={true}
onOk={ReportPaySummaryReport}
/>
{Data?.total && (
<ExportBtnNew
children={
<Button className="export-btn" size="medium" type="primary">
导出
</Button>
}
modalType="noImg"
ref={exportRef}
totalRecords={Data?.total || 0}
imgno={false}
postdata={{
formData: FormDatas,
}}
isTableModule={true}
onOk={ReportPaySummaryReport}
/>
)}
</div> </div>
<ResultFlow <ResultFlow
hasLoad={true} hasLoad={true}

Loading…
Cancel
Save