|
|
@ -1,11 +1,11 @@ |
|
|
|
import moment from 'moment'; |
|
|
|
import moment from 'moment'; |
|
|
|
import React, { useEffect, useState } from 'react'; |
|
|
|
import { useState } from 'react'; |
|
|
|
import { Search, X } from 'react-feather'; |
|
|
|
import { Search, X } from 'react-feather'; |
|
|
|
import { useDispatch, useSelector } from 'react-redux'; |
|
|
|
import { useDispatch, useSelector } from 'react-redux'; |
|
|
|
import { Badge, Button, Input, InputGroup } from 'reactstrap'; |
|
|
|
import { Badge, Button, Input, InputGroup } from 'reactstrap'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
controlGpDtlAction, |
|
|
|
controlGpDtlAction, |
|
|
|
controlGpLogAction |
|
|
|
controlGpFlightPlanAction |
|
|
|
} from '../../../modules/control/gp'; |
|
|
|
} from '../../../modules/control/gp'; |
|
|
|
import { objectClickAction } from '../../../modules/control/map/actions/controlMapActions'; |
|
|
|
import { objectClickAction } from '../../../modules/control/map/actions/controlMapActions'; |
|
|
|
|
|
|
|
|
|
|
@ -15,9 +15,10 @@ const ControlReportList = props => { |
|
|
|
|
|
|
|
|
|
|
|
const dispatch = useDispatch(); |
|
|
|
const dispatch = useDispatch(); |
|
|
|
|
|
|
|
|
|
|
|
const handlerDetail = (objectId, cntrlId) => { |
|
|
|
const handlerDetail = item => { |
|
|
|
dispatch(objectClickAction(cntrlId)); |
|
|
|
dispatch(objectClickAction(item.controlId)); |
|
|
|
dispatch(controlGpDtlAction.request(cntrlId)); |
|
|
|
dispatch(controlGpDtlAction.request(item.controlId)); |
|
|
|
|
|
|
|
dispatch(controlGpFlightPlanAction.request(item.objectId)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// useEffect(() => {}, [filterId]);
|
|
|
|
// useEffect(() => {}, [filterId]);
|
|
|
@ -62,7 +63,7 @@ const ControlReportList = props => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className='layer-content-list' |
|
|
|
className='layer-content-list' |
|
|
|
onClick={() => handlerDetail(item.objectId, item.controlId)} |
|
|
|
onClick={() => handlerDetail(item)} |
|
|
|
key={item.objectId} |
|
|
|
key={item.objectId} |
|
|
|
> |
|
|
|
> |
|
|
|
<dl> |
|
|
|
<dl> |
|
|
|