Browse Source

fix():bug修改

tags/PMS_V1.0.0_Alpha6
xingjx 1 year ago
parent
commit
78c9e3f2bd
  1. 6
      src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx

6
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) {
<Row gutter={[30]}>
<Col span={16}>
<Form.Item label={`时段${index}`} name="time_part" rules={[{ required: true, message: '请选择时间段!' }]}>
<TimePicker.RangePicker style={{ width: "50%" }} order={false} secondStep={60} getPopupContainer={(e) => e.parentNode}/>
<TimePicker.RangePicker style={{ width: "50%" }} order={false} secondStep={60} getPopupContainer={(e) => e.parentNode} />
</Form.Item>
<div style={{ marginBottom: '10px', color: '#858585' }}>*时段结束时间设置00:00:00相当于23:59:59</div>
</Col>

Loading…
Cancel
Save