Browse Source

fix():修改路内BUG

tags/PMS_Frontend_v1.0.6-develop
guoxin 1 year ago
parent
commit
c6ea9536f6
  1. 8
      src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
  2. 8
      src/pages/InRoadMgm/BusinessMgm/ChargeRules/loadable.jsx

8
src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx

@ -196,9 +196,9 @@ const FormModal = (props) => {
}
//
const handelDate = (data, type) => {
if (data && data['rules']?.length) {
// console.log(data.rules);
data['rules'].map(item => {
if (data && data?.source['rules']?.length) {
console.log(data.rules);
data.source['rules'].map(item => {
if (item.cdate) {
if (type == 1) {
item["cdate"] = moment(item["cdate"]).format('YYYY-MM-DD HH:mm:ss');
@ -222,7 +222,7 @@ const FormModal = (props) => {
//
if(handleFormValidation(data,0)&&handleFormValidation(data,1)){
let newData = handelDate(data, 1)
ajax.deleteChangeRules({source:data}).then(res => {
ajax.deleteChangeRules({source:newData}).then(res => {
if (res.status === 20000) {
setGetEditVisible(false)
getData()

8
src/pages/InRoadMgm/BusinessMgm/ChargeRules/loadable.jsx

@ -132,14 +132,6 @@ function ChargeRules(props) {
width: '300px'
},
{
title: '操作1',
render: (text, record) => {
return <>
<button className="blackRecordBtn colorBtn">{record.source.feeName}</button>
</>
},
},
{
title: '操作',
render: (text, record) => {
return <>

Loading…
Cancel
Save