Browse Source

fix():修改计费规则管理页面详情打开异常bug

tags/PMS_Frontend_v1.0.6-develop
xingjx 1 year ago
parent
commit
4b3b8d8323
  1. 10
      src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx

10
src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx

@ -18,6 +18,7 @@ function Detail(props) {
const { record, visible = false, close = () => {} } = props;
const [form] = Form.useForm();
const [effectiveDateList, setEffectiveDateList] = useState(record.property);
console.log(effectiveDateList)
useEffect(() => {
setEffectiveDateList(record.property);
console.log(record.property);
@ -84,11 +85,10 @@ function Detail(props) {
</Descriptions.Item>
</Descriptions>
<Divider />
{effectiveDateList &&
effectiveDateList?.map((item, index) => {
console.log(item);
return <EffectiveDetail record={item} key={index} />;
})}
{/* {effectiveDateList &&
effectiveDateList.time_part_arr?.map((item, index) => {
console.log(item); */}
<EffectiveDetail record={effectiveDateList}/>
</div>
</Modal>
);

Loading…
Cancel
Save