| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Col, Form, Input, Row, Switch, Slider, Select, Drawer, Space, Button, InputNumber, Segmented } from 'antd'; |
| | | import { Col, Form, Input, Row, Switch, Slider, message, Drawer, Space, Button, InputNumber, Segmented } from 'antd'; |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import { createStyles } from 'antd-style'; |
| | | import * as Utils from '../utils' |
| | |
| | | } |
| | | }, [form, props]); |
| | | |
| | | useEffect(() => { |
| | | if (autoIncrement === true && curSprite) { |
| | | switch (curSprite.data?.type) { |
| | | case Utils.SENSOR_TYPE.SHELF: |
| | | console.log(1); |
| | | if (!curSprite.data?.row || !curSprite.data?.bay) { |
| | | message.warning(intl.formatMessage({ id: 'map.settings.sub.copy.warn.config.shelf', defaultMessage: '请先设置货架参数!' })) |
| | | } |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | } |
| | | }, [autoIncrement]) |
| | | |
| | | const handleCancel = () => { |
| | | props.onClose(); |
| | | } |