Browse Source

fix bug

dev
liujiangyong 1 year ago
parent
commit
f4c354bd41
  1. 11
      weapp/src/packages/patrol/index.jsx

11
weapp/src/packages/patrol/index.jsx

@ -783,9 +783,14 @@ const Index = () => {
}
if (nextValue.routeName && nextValue.routeCode && nextValue.sectionNo) {
nextValue.startingPlaceName = data[0]?.startingPlaceName
nextValue.stopPlaceName = data[0]?.stopPlaceName
setRoadCodeHead(data[0]?.routeCode?.charAt(0))
let find = roadList?.find(
s => nextValue.routeName == s.routeName
&& nextValue.routeCode == s.routeCode
&& nextValue.sectionNo == s.sectionNo
)
nextValue.startingPlaceName = find?.startingPlaceName
nextValue.stopPlaceName = find?.stopPlaceName
setRoadCodeHead(find?.routeCode?.charAt(0))
} else {
nextValue.startingPlaceName = ''
nextValue.stopPlaceName = ''

Loading…
Cancel
Save