Browse Source

fix():bug修改

tags/PMS_V1.0.0_Alpha5
xingjx 1 year ago
parent
commit
c3b7ce65a4
  1. 4
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
  2. 4
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingFalseAlarms/loadable.jsx
  3. 6
      src/pages/NewEnergy/ChargeDeviceMgm/EquipmentSupplier/loadable.jsx

4
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx

@ -373,10 +373,10 @@ function ParkingAlyPeriod() {
setKeyVal(res.data.list?.hour_list.length) setKeyVal(res.data.list?.hour_list.length)
//setHourData({}) //setHourData({})
getParkOptionHour(res.data.list?.hour_list); getParkOptionHour(res.data.list?.hour_list);
setLoading(false)
} }
setLoading(false)
}) })
.catch((err) => console.error(err));
.catch((err) => { console.error(err); setLoading(false) });
} }
// //
const getSelectList = () => { const getSelectList = () => {

4
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingFalseAlarms/loadable.jsx

@ -278,10 +278,10 @@ function ParkingFalseAlarms() {
if (res.status === 20000) { if (res.status === 20000) {
setLineData(res.data) setLineData(res.data)
getParkOption(res.data.device_list); getParkOption(res.data.device_list);
setLoading(false)
} }
setLoading(false)
}) })
.catch((err) => console.error(err));
.catch((err) => { console.error(err); setLoading(false) });
} }
// useEffect(() => { // useEffect(() => {
// if () { // if () {

6
src/pages/NewEnergy/ChargeDeviceMgm/EquipmentSupplier/loadable.jsx

@ -175,7 +175,7 @@ function EquipmentSupplier() {
exportUrl="/api/bpm/record/get_record_export" exportUrl="/api/bpm/record/get_record_export"
/> />
<Modal <Modal
title="新增电桩型号"
title="新增设备供应商"
open={detailVisible} open={detailVisible}
width={500} width={500}
className="electric-station-modal" className="electric-station-modal"
@ -189,8 +189,8 @@ function EquipmentSupplier() {
<div className="row "> <div className="row ">
<div className="redLogo">*</div> <div className="redLogo">*</div>
<FormSelect <FormSelect
yisaLabel="设备生产号"
placeholder="请选择设备生产号"
yisaLabel="设备供应商"
placeholder="请选择设备供应商"
yisaData={getProducerList} yisaData={getProducerList}
defaultValue={addFormData.supplier_id || null} defaultValue={addFormData.supplier_id || null}
hasUnlimited={false} hasUnlimited={false}

Loading…
Cancel
Save