Browse Source

fix():bug修改

tags/PMS_V1.0.0_Alpha5
xingjx 1 year ago
parent
commit
de8ac9f7c7
  1. 6
      src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx
  2. 10
      src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/TimePart.jsx

6
src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx

@ -100,8 +100,10 @@ function AddModal(props) {
}
if (timevalidate == 0) {
message.error("时段之和必须为24小时,且时段不能重叠");
return
} else if (timevalidate == 2) {
message.error('时段范围不能重叠!')
return
}
//return
if (status === "add") {
@ -114,7 +116,7 @@ function AddModal(props) {
}
});
} else {
ajax.editChargeRule(params).then((res) => {
ajax.editChargeRule({ ...params, rule_id: record.id }).then((res) => {
if (res.status === 20000) {
message.success("编辑成功");
submitSuccess();
@ -148,7 +150,7 @@ function AddModal(props) {
open={visible}
width={1200}
onCancel={close}
title="添加"
title={status === "add" ? "添加" : "编辑"}
onOk={submit}
>
<div>

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

@ -66,7 +66,15 @@ function TimePart(props) {
// .then(values => { console.log(values) })
// .catch(e => console.log(e))
// }
if (value.type && !all.unit) {
if (value.type == 0 && !all.time_before_minute) {
timePart(false)
effTimePart(false)
}
if (value.type == 1 && !all.time_before) {
timePart(false)
effTimePart(false)
}
if (value.type == 2 && !all.time_before_minute) {
timePart(false)
effTimePart(false)
}

Loading…
Cancel
Save