#
luxiaotao1123
2024-03-14 ca767633a3e8414661138720a68cc41a435a4afe
zy-asrs-flow/src/pages/map/index.jsx
@@ -64,6 +64,7 @@
    const { styles } = useStyles();
    const mapRef = React.useRef();
    const contentRef = React.useRef();
    const sensorTypeSelectOptions = Utils.sensorTypeSelectOptions(intl);
    const [model, setModel] = React.useState(() => MapModel.OBSERVER_MODEL);
    const [deviceVisible, setDeviceVisible] = React.useState(false);
@@ -212,28 +213,18 @@
                <Header className={styles.header}>
                    <Row style={{ height: '100%' }}>
                        <Col className={styles.headerCol} span={12} style={{}}>
                            <Select
                                className='map-header-select'
                                variant='filled'
                                defaultValue="agv"
                                style={{
                                    width: 160,
                                }}
                                size={'large'}
                                options={sensorTypeSelectOptions}
                                defaultValue={sensorTypeSelectOptions?.[0]?.value}
                                onChange={(value, option) => {
                                    console.log(value, option);
                                }}
                                options={[
                                    {
                                        value: 'agv',
                                        label: 'agv',
                                    },
                                    {
                                        value: 'crn',
                                        label: 'crn',
                                    },
                                ]}
                            />
                            <AutoComplete
                                className='map-header-select'