From 78c9e3f2bd2eae8e2123a492c0c09113c2880525 Mon Sep 17 00:00:00 2001 From: xingjx Date: Fri, 26 Jan 2024 22:40:00 +0800 Subject: [PATCH] =?UTF-8?q?fix():bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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