From 8c51565237cab2278aa2f3eee90033516b624e48 Mon Sep 17 00:00:00 2001 From: huangchenhao <123673748@qq.com> Date: Thu, 16 Oct 2025 16:44:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=B5=84=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mobile/src/router/index.js | 5 + .../mobile/src/views/EquipmentManagement.vue | 27 +++- packages/mobile/src/views/Home.vue | 2 +- .../mobile/src/views/MaterialManagement.vue | 127 ++++++++++++++++++ 4 files changed, 158 insertions(+), 3 deletions(-) create mode 100644 packages/mobile/src/views/MaterialManagement.vue diff --git a/packages/mobile/src/router/index.js b/packages/mobile/src/router/index.js index 57056bf..bf7104a 100644 --- a/packages/mobile/src/router/index.js +++ b/packages/mobile/src/router/index.js @@ -15,6 +15,11 @@ const routes = [ path: '/equipManage', name: 'EquipManage', component: () => import('../views/EquipmentManagement.vue') + }, + { + path: '/materialManage', + name: 'MaterialManage', + component: () => import('../views/MaterialManagement.vue') } ] diff --git a/packages/mobile/src/views/EquipmentManagement.vue b/packages/mobile/src/views/EquipmentManagement.vue index 02d0e45..f8651e6 100644 --- a/packages/mobile/src/views/EquipmentManagement.vue +++ b/packages/mobile/src/views/EquipmentManagement.vue @@ -4,7 +4,7 @@ @@ -44,6 +44,20 @@ > 添加设备 + + + + + @@ -53,11 +67,20 @@ import { useRouter } from "vue-router"; import { showToast } from "vant"; const router = useRouter(); -const active = ref(0); +const searchValue = ref(""); // 搜索框输入值 +const showPopup = ref(false); // 控制弹出层显示隐藏 const onClickLeft = () => { router.push("/"); }; + +const handleAddDevice = () => { + showPopup.value = true; +}; + +const onPopupClose = () => { + showPopup.value = false; +}; + \ No newline at end of file