|
@ -155,7 +155,6 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, level: whichofits, roadId: records?.[0]?.value || '' } |
|
|
const query = { ...values, level: whichofits, roadId: records?.[0]?.value || '' } |
|
|
dispatch(putRoadway(query)).then((res) => { |
|
|
dispatch(putRoadway(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
@ -163,7 +162,7 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, level: whichofits } |
|
|
const query = { ...values, level: whichofits } |
|
|
dispatch(putRoadway(query)).then((res) => { |
|
|
dispatch(putRoadway(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
@ -174,14 +173,14 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, roadId: records?.[0]?.value || '' } |
|
|
const query = { ...values, roadId: records?.[0]?.value || '' } |
|
|
dispatch(putBridge(query)).then((res) => { |
|
|
dispatch(putBridge(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} else { |
|
|
} else { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values } |
|
|
const query = { ...values } |
|
|
dispatch(putBridge(query)).then((res) => { |
|
|
dispatch(putBridge(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
@ -191,14 +190,14 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, vehicleId: records?.[0]?.value || '', type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
const query = { ...values, vehicleId: records?.[0]?.value || '', type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
dispatch(putSpecificVehicle(query)).then((res) => { |
|
|
dispatch(putSpecificVehicle(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} else { |
|
|
} else { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
const query = { ...values, type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
dispatch(putSpecificVehicle(query)).then((res) => { |
|
|
dispatch(putSpecificVehicle(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
@ -208,14 +207,14 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, businessId: records?.[0]?.value, type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
const query = { ...values, businessId: records?.[0]?.value, type: rewkeys == 'chuzu' ? '出租车' : '危货' } |
|
|
dispatch(putHouseholds(query)).then((res) => { |
|
|
dispatch(putHouseholds(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} else { |
|
|
} else { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, type: rewkeys === 'chuzu' ? '出租车' : '危货' } |
|
|
const query = { ...values, type: rewkeys === 'chuzu' ? '出租车' : '危货' } |
|
|
dispatch(putHouseholds(query)).then((res) => { |
|
|
dispatch(putHouseholds(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
@ -224,14 +223,14 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, lineId: records?.[0]?.value || '' } |
|
|
const query = { ...values, lineId: records?.[0]?.value || '' } |
|
|
dispatch(putCircuit(query)).then((res) => { |
|
|
dispatch(putCircuit(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} else { |
|
|
} else { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values } |
|
|
const query = { ...values } |
|
|
dispatch(putCircuit(query)).then((res) => { |
|
|
dispatch(putCircuit(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
@ -241,14 +240,14 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, carId: records?.[0]?.value || '' } |
|
|
const query = { ...values, carId: records?.[0]?.value || '' } |
|
|
dispatch(putVehicle(query)).then((res) => { |
|
|
dispatch(putVehicle(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} else { |
|
|
} else { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values } |
|
|
const query = { ...values } |
|
|
dispatch(putVehicle(query)).then((res) => { |
|
|
dispatch(putVehicle(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
@ -258,7 +257,7 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values, overspeedId: records?.[0]?.value || '' } |
|
|
const query = { ...values, overspeedId: records?.[0]?.value || '' } |
|
|
dispatch(putPurchase(query)).then((res) => { |
|
|
dispatch(putPurchase(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
setMonitor(res) |
|
|
setMonitor(res) |
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
@ -266,7 +265,7 @@ const UserModal = (props) => { |
|
|
setDelet(values) |
|
|
setDelet(values) |
|
|
const query = { ...values } |
|
|
const query = { ...values } |
|
|
dispatch(putPurchase(query)).then((res) => { |
|
|
dispatch(putPurchase(query)).then((res) => { |
|
|
setSuccess(res.success) |
|
|
|
|
|
setMonitor(res) |
|
|
setMonitor(res) |
|
|
}) |
|
|
}) |
|
|
return true |
|
|
return true |
|
|