|
@ -195,6 +195,9 @@ const TableModule = forwardRef((props, ref) => { |
|
|
temp_obj[key] = [moment(temp_obj[key][0]), moment(temp_obj[key][1])] |
|
|
temp_obj[key] = [moment(temp_obj[key][0]), moment(temp_obj[key][1])] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if(temp_obj.tel != fv.tel){ // todo |
|
|
|
|
|
temp_obj.tel = fv.tel |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
searchForm.setFieldsValue(temp_obj) |
|
|
searchForm.setFieldsValue(temp_obj) |
|
|
if (sessionTabList?.plateValue) { |
|
|
if (sessionTabList?.plateValue) { |
|
@ -1011,13 +1014,13 @@ const TableModule = forwardRef((props, ref) => { |
|
|
}, [pageData]); |
|
|
}, [pageData]); |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if(operatorNameType===1){ |
|
|
|
|
|
|
|
|
// if(operatorNameType===1){ |
|
|
getAllOperator(); |
|
|
getAllOperator(); |
|
|
} |
|
|
|
|
|
|
|
|
// } |
|
|
}, [operatorNameType]); |
|
|
}, [operatorNameType]); |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (areaNameType === 1) { |
|
|
|
|
|
|
|
|
// if (areaNameType === 1) { |
|
|
ajax |
|
|
ajax |
|
|
.getAreaTree() |
|
|
.getAreaTree() |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
@ -1030,12 +1033,12 @@ const TableModule = forwardRef((props, ref) => { |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
console.error(err); |
|
|
console.error(err); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
}, [areaNameType]); |
|
|
}, [areaNameType]); |
|
|
const [getRoadList, setGetRoadList] = useState([]) |
|
|
const [getRoadList, setGetRoadList] = useState([]) |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (roadNameType === 1) { |
|
|
|
|
|
|
|
|
// if (roadNameType === 1) { |
|
|
ajax.getNewRoadSearch().then((res) => { |
|
|
ajax.getNewRoadSearch().then((res) => { |
|
|
if (res.status === 20000) { |
|
|
if (res.status === 20000) { |
|
|
setGetRoadList(res.data); |
|
|
setGetRoadList(res.data); |
|
@ -1043,7 +1046,7 @@ const TableModule = forwardRef((props, ref) => { |
|
|
message.error(res.message) |
|
|
message.error(res.message) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
|
|
|
// } |
|
|
}, [roadNameType]) |
|
|
}, [roadNameType]) |
|
|
return ( |
|
|
return ( |
|
|
<div className={`TableModule ${className}`}> |
|
|
<div className={`TableModule ${className}`}> |
|
|