| | |
| | | import * as Utils from '../../utils' |
| | | import Http from '@/utils/http'; |
| | | import BoolValueIcon from '@/components/BoolValueIcon'; |
| | | import ShuttleHandle from './handle'; |
| | | |
| | | const useStyles = createStyles(({ token, css }) => { |
| | | return { |
| | |
| | | |
| | | const { data } = props; |
| | | const [loading, setLoading] = React.useState(false); |
| | | const [childrenDrawer, setChildrenDrawer] = useState(false); |
| | | const [info, setInfo] = React.useState(null); |
| | | |
| | | useEffect(() => { |
| | |
| | | <Button className={styles.tableButton} size='default' disabled> |
| | | <FormattedMessage id='map.enable' defaultMessage='启用' /> |
| | | </Button> |
| | | <Button className={styles.tableButton} size='default'> |
| | | <Button |
| | | className={styles.tableButton} |
| | | size='default' |
| | | onClick={() => { |
| | | setChildrenDrawer(true); |
| | | }} |
| | | > |
| | | <FormattedMessage id='map.handle' defaultMessage='手动操作' /> |
| | | </Button> |
| | | </> |
| | |
| | | ] |
| | | } |
| | | /> |
| | | <ShuttleHandle |
| | | open={childrenDrawer} |
| | | refCurr={props.refCurr} |
| | | shuttleNo={data.no} |
| | | onClose={() => { |
| | | setChildrenDrawer(false) |
| | | }} |
| | | /> |
| | | </div> |
| | | )} |
| | | </div> |