diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx index d076413..bf83c62 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx @@ -85,6 +85,7 @@ function TimePart(props) { all.start = moment(all.time_part[0]).format('HH:mm:ss') all.end = moment(all.time_part[1]).format('HH:mm:ss') } + //console.log(111,all.time_part ?moment('23:59:00', "HH:mm:ss").diff(moment(all.time_part[0], "HH:mm:ss"), "minutes") + 1 - all.time_before:'') if (all.type == 0) { all.items = [ { @@ -100,8 +101,7 @@ function TimePart(props) { "period": all.time_after_minute, "unit": all.time_after_money, "segment": all.time_part ? - (all.end == '00:00:00' ? moment(all.time_part[1], "HH:mm:ss").diff(moment(all.time_part[0], "HH:mm:ss"), "minutes") - all.time_before : - moment('23:59:00', "HH:mm:ss").diff(moment(all.time_part[0], "HH:mm:ss"), "minutes") + 1 - all.time_before) + moment('23:59:00', "HH:mm:ss").diff(moment(all.time_part[0], "HH:mm:ss"), "minutes") + 1 - all.time_before : all.time_before, }, ] @@ -209,7 +209,7 @@ function TimePart(props) { - e.parentNode}/> + e.parentNode} />
*时段结束时间设置00:00:00相当于23:59:59