From 295eb3cc87aaa5176d64a4ef985cdad0bfefae9a Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 31 Mar 2025 08:35:00 +0800
Subject: [PATCH] 增加单个机巢页面
---
src/views/Home/components/HomeLeft/OverviewNext.vue | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/views/Home/components/HomeLeft/OverviewNext.vue b/src/views/Home/components/HomeLeft/OverviewNext.vue
index 583864a..476a472 100644
--- a/src/views/Home/components/HomeLeft/OverviewNext.vue
+++ b/src/views/Home/components/HomeLeft/OverviewNext.vue
@@ -38,12 +38,11 @@
</div>
</template>
<script setup>
-import { pxToRem } from '@/utils/rem';
import { Search } from '@element-plus/icons-vue';
import CommonTitle from '@/components/CommonTitle.vue';
import { getDeviceInfoNum } from '@/api/home/machineNest.js'
-import router from '@/router/';
-
+import { useStore } from 'vuex';
+const searchText = ref('')
const list = ref([
{ name: '执行中', value: 89, color: '#FFA768' },
{ name: '在线', value: 100, color: '#8EFFAC' },
@@ -64,13 +63,12 @@
console.log(res);
});
}
+const store = useStore();
+
// 单个机巢详情
const signMachineNestClick = () => {
- router.push({
- path: '/signMachineNest',
- query: {
- id: '123' // 这里可以传递你需要的参数
- }
+ store.commit('setSingleUavHome', {
+ id: '123'
});
}
@@ -97,6 +95,7 @@
);
border-radius: 0px 0px 0px 0px;
opacity: 0.85;
+ margin-bottom: 10px;
.next-num {
width: 358px;
height: 92px;
--
Gitblit v1.9.3