From c19920d096e0d53b08653a1b6427341e64004fa3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 08 十月 2024 10:28:44 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/MapPage.jsx | 97 ++++++++++++++++++++++++++++++------------------ 1 files changed, 61 insertions(+), 36 deletions(-) diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index 0b33b74..b303556 100644 --- a/zy-acs-flow/src/map/MapPage.jsx +++ b/zy-acs-flow/src/map/MapPage.jsx @@ -1,7 +1,5 @@ import React from 'react'; import { - AppBar, - Toolbar, TextField, Select, MenuItem, @@ -35,43 +33,70 @@ ]; return ( - <div> + <Box + sx={{ + height: '100%', + display: 'flex', + flexDirection: 'column', + }} + > {/* 鑿滃崟鏍� */} - <AppBar position="static"> - <Toolbar> - {/* 宸︿晶鎼滅储妗� */} - <TextField - variant="outlined" - size="small" - placeholder="鎼滅储..." - style={{ marginRight: 'auto' }} - /> - {/* 妯″紡閫夋嫨涓嬫媺妗� */} - <Select - value={mode} - onChange={handleModeChange} - variant="outlined" - size="small" - style={{ marginRight: 16 }} - > - <MenuItem value="monitoring">鐩戞帶妯″紡</MenuItem> - <MenuItem value="edit">缂栬緫妯″紡</MenuItem> - <MenuItem value="configuration">閰嶇疆妯″紡</MenuItem> - </Select> - {/* 鍔熻兘鎸夐挳 */} - <Button variant="contained" color="primary" style={{ marginRight: 8 }}> - 鍋滄RCS杩愯浆 - </Button> - <Button variant="contained" color="secondary"> - 妯℃嫙AGV杩愯 - </Button> - </Toolbar> - </AppBar> + <Box + sx={{ + display: 'flex', + alignItems: 'center', + backgroundColor: 'rgb(47, 104, 172)', // 浣跨敤涓婚棰滆壊 + color: '#fff', + padding: '8px 16px', + }} + > + {/* 宸︿晶鎼滅储妗� */} + <TextField + variant="outlined" + size="small" + placeholder="鎼滅储..." + sx={{ + width: '200px', + backgroundColor: '#fff', + borderRadius: 1, + }} + /> + {/* 鍗犱綅绗︼紝鎺ㄥ姩鍙充晶鍐呭 */} + <Box sx={{ flexGrow: 1 }} /> + {/* 妯″紡閫夋嫨涓嬫媺妗� */} + <Select + value={mode} + onChange={handleModeChange} + variant="outlined" + size="small" + sx={{ + mr: 2, + backgroundColor: '#fff', + borderRadius: 1, + }} + > + <MenuItem value="monitoring">鐩戞帶妯″紡</MenuItem> + <MenuItem value="edit">缂栬緫妯″紡</MenuItem> + <MenuItem value="configuration">閰嶇疆妯″紡</MenuItem> + </Select> + {/* 鍔熻兘鎸夐挳 */} + <Button + variant="contained" + color="primary" + sx={{ mr: 1 }} + > + 鍋滄RCS杩愯浆 + </Button> + <Button variant="contained" color="secondary"> + 妯℃嫙AGV杩愯 + </Button> + </Box> {/* 鍦板浘鍖哄煙 */} <Box sx={{ - height: 'calc(100vh - 64px)', // 鍑忓幓AppBar鐨勯珮搴� + flexGrow: 1, position: 'relative', + backgroundColor: '#e0e0e0', // 鏇寸編瑙傜殑鑳屾櫙鑹� }} > {/* 鍦板浘鍗犱綅绗� */} @@ -79,7 +104,7 @@ sx={{ width: '100%', height: '100%', - backgroundColor: '#f0f0f0', + backgroundColor: '#f5f5f5', }} /> {/* Speed Dial缁勪欢 */} @@ -97,7 +122,7 @@ ))} </SpeedDial> </Box> - </div> + </Box> ); } -- Gitblit v1.9.1