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)
//setHourData({})
getParkOptionHour(res.data.list?.hour_list);
setLoading(false)
}
setLoading(false)
})
.catch((err) => console.error(err));
.catch((err) => { console.error(err); setLoading(false) });
}
//
const getSelectList = () => {

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

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

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

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

Loading…
Cancel
Save