#
luxiaotao1123
2024-03-14 c05ee091c5e3f3086260c8c53538a5ea007d1a6a
#
1个文件已修改
25 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/map/header/search.jsx 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/header/search.jsx
@@ -48,22 +48,15 @@
            return
        }
        setSensorList([]);
        switch (curSensorType) {
            case Utils.SENSOR_TYPE.SHELF:
                Utils.getMapContainer().children.forEach(child => {
                    if (child?.data?.type === Utils.SENSOR_TYPE.SHELF && child?.data?.no) {
                        setSensorList(prevArr => [...prevArr, {
                            value: child.data.no,
                            label: renderTitle(child.data.no, child.data.uuid)
                        }]);
                    }
                })
                break;
            case Utils.SENSOR_TYPE.AGV:
                break;
            default:
                break;
        }
        setCurSensorLabel(null);
        Utils.getMapContainer().children.forEach(child => {
            if (child?.data?.type === curSensorType && child?.data?.no) {
                setSensorList(prevArr => [...prevArr, {
                    value: child.data.no,
                    label: renderTitle(child.data.no, child.data.uuid)
                }]);
            }
        });
    }, [curSensorType])
    return (