#
luxiaotao1123
2024-10-19 2efa376119e084f6c45f6d5da55d72bc19c40576
#
2个文件已修改
24 ■■■■ 已修改文件
zy-acs-flow/src/map/MapPage.jsx 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/http.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/MapPage.jsx
@@ -90,8 +90,8 @@
            }
            setTimeout(() => {
                player.adaptScreen();
                notify.info(translate('page.map.welcome'));
                player.adaptScreen();
                setDataFetched(true);
                setMode(MAP_MODE.OBSERVER_MODE);
            }, 200)
@@ -363,6 +363,20 @@
                    flexGrow: 1,    // fill remaining of map space 
                    position: 'relative',
                    backgroundColor: '#fff',
                    ...(mode === MAP_MODE.SETTINGS_MODE && {
                        animation: 'settingsPulse 1.5s infinite',
                        '@keyframes settingsPulse': {
                            '0%': {
                                boxShadow: `0 0 3px 1px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.1)`)}`,
                            },
                            '50%': {
                                boxShadow: `0 0 8px 3px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.5)`)}`,
                            },
                            '100%': {
                                boxShadow: `0 0 3px 1px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.1)`)}`,
                            },
                        },
                    })
                }}
            >
                <Box
zy-acs-flow/src/map/http.js
@@ -14,9 +14,9 @@
    mapContainer = param;
}
export const fetchMapData = async (zoneId) => {
export const fetchMapData = (zoneId) => {
    Tool.clearMapData();
    await request.post('/map/data/fetch', {
    return request.post('/map/data/fetch', {
        zoneId: zoneId
    }, {
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
@@ -37,7 +37,7 @@
                        Object.assign(sprite.data, item.property);
                        // graph
                        setTimeout(() => {
                        // setTimeout(() => {
                            sprite.position.set(item.positionX, item.positionY);
                            sprite.scale.set(item.scaleX, item.scaleY);
                            sprite.rotation = Tool.rotationParseNum(item.rotation);
@@ -50,7 +50,7 @@
                                default:
                                    break
                            }
                        }, 50);
                        // }, 50);
                        mapContainer.addChild(sprite);
                    }