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