#
luxiaotao1123
2024-10-09 14946ddf178021fb65fdfd0cb50aba73ae0a1aa9
zy-acs-flow/src/map/MapPage.jsx
@@ -73,13 +73,13 @@
    const switchMode = (mode) => {
        switch (mode) {
            case MapMode.OBSERVER_MODE:
                console.log('a');
                setDeviceVisible(false);
                break
            case MapMode.MOVABLE_MODE:
                console.log('b');
                setDeviceVisible(true);
                break
            case MapMode.SETTINGS_MODE:
                console.log('c');
                setDeviceVisible(false);
                break
            default:
                break
@@ -119,6 +119,7 @@
                flexDirection: 'column',
            }}
        >
            {/* header */}
            <Box
                sx={{
                    display: 'flex',
@@ -128,6 +129,7 @@
                    padding: '0 16px',
                    height: '64px',
                    flexShrink: 0, // keep height
                    zIndex: 200
                }}
            >
                <TextField
@@ -163,6 +165,7 @@
                            variant="contained"
                            color="primary"
                            sx={{ mr: 1 }}
                            onClick={() => setDeviceVisible(!deviceVisible)}
                        >
                            添加模型
                        </Button>
@@ -192,6 +195,7 @@
                    <MenuItem value={MapMode.SETTINGS_MODE}>配置模式</MenuItem>
                </Select>
            </Box>
            {/* content */}
            <Box
                sx={{
                    flexGrow: 1,    // fill remaining of map space 
@@ -232,6 +236,7 @@
                    ))}
                </SpeedDial>
            </Box>
            <Device
                open={deviceVisible}
                onCancel={() => {
@@ -239,6 +244,7 @@
                }}
                onDrop={onDrop}
            />
        </Box>
    );
}