#
luxiaotao1123
2024-10-15 2c43cc857247cd2bb0d4a88de5b950899abf4b7e
zy-acs-flow/src/map/header/MapSearch.jsx
@@ -19,8 +19,8 @@
const deviceTypeSelectOptionsFn = (translate) => {
    const deviceTypes = [
        { key: DEVICE_TYPE.SHELF, id: 'page.map.devices.shelf' },
        { key: DEVICE_TYPE.STATION, id: 'page.map.devices.station' },
        { key: DEVICE_TYPE.AGV, id: 'page.map.devices.agv' },
        { key: DEVICE_TYPE.STATION, id: 'page.map.devices.station' },
        { key: DEVICE_TYPE.POINT, id: 'page.map.devices.point' },
        // 添加其他设备类型
    ];
@@ -35,6 +35,7 @@
    const {
        mode,
        setMode,
        dataFetched,
        curZone,
        setCurSprite,
        setSpriteSettings,
@@ -59,11 +60,10 @@
    };
    useEffect(() => {
        if (!Tool.getMapContainer()) return;
        setTimeout(() => {
        if (dataFetched) {
            resetSearch();
        }, 200);
    }, [curDeviceType, curZone]);
        }
    }, [curDeviceType, dataFetched, curZone]);
    useEffect(() => {
        if (!Tool.getMapContainer()) return;
@@ -195,6 +195,7 @@
                onInputChange={(event, newInputValue) => {
                    setInputValue(newInputValue);
                }}
                disableClearable
            />
        </Stack>
    );