index.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/layout/Header.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/styles/global.less | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/model/children/landerModel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/model/children/roverModel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
index.html
@@ -4,7 +4,8 @@ <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite</title> <title>基于状态驱动的机构测试系统 </title> </head> <body> <div id="app"></div> src/layout/Header.vue
@@ -15,19 +15,31 @@ <el-menu-item index="/simulation-config">可视化仿真</el-menu-item> <el-menu-item index="/system/user">系统管理</el-menu-item> </el-menu> <div class="header-right"> <div class="user-info" @click="handleUserClick"> <el-avatar src="path/to/avatar.png"></el-avatar> <span>用户名</span> </div> </div> </div> </template> <script setup lang="ts"> import { ref, defineEmits } from "vue"; import { useRouter } from "vue-router"; const activeIndex = ref("/"); const emit = defineEmits(["selectMenu"]); const router = useRouter(); const handleSelect = (key: string) => { activeIndex.value = key; emit("selectMenu", key); }; const handleUserClick = () => { router.push("/user/profile"); }; </script> <style lang="less" scoped> src/styles/global.less
@@ -111,6 +111,7 @@ background-color: #fff; color: #333; line-height: 60px; border-bottom: 1px solid #ebeef5; } .el-aside { src/views/model/children/landerModel.vue
@@ -104,8 +104,6 @@ name: "Tom", address: "No. 189, Grove St, Los Angeles", }, ]; const handleCurrentChange = (val: number) => { @@ -121,7 +119,7 @@ .landerBox { width: 100%; height: 100%; .landerTopBox { display: flex; justify-content: space-between; @@ -131,8 +129,10 @@ box-sizing: border-box; } .landerContentBox { width: 100%; max-height: calc(100% - 120px); padding: 0 10px; box-sizing: border-box; .landerTable { height: 750px; } @@ -143,7 +143,6 @@ justify-content: flex-end; padding: 0 20px; background-color: #fff; } } </style> src/views/model/children/roverModel.vue
@@ -215,6 +215,8 @@ } .roverContentBox { max-height: calc(100% - 120px); padding: 0 10px; box-sizing: border-box; .roverTable { height: 750px;