From 34c6854359d25b66b014d61027d793b668d3c2bf Mon Sep 17 00:00:00 2001 From: huangchenhao <123673748@qq.com> Date: Fri, 24 Oct 2025 14:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mobile/src/views/EquipmentDetails.vue | 251 ++++++++++++++---- .../mobile/src/views/EquipmentManagement.vue | 42 ++- 2 files changed, 220 insertions(+), 73 deletions(-) diff --git a/packages/mobile/src/views/EquipmentDetails.vue b/packages/mobile/src/views/EquipmentDetails.vue index e72c72c..4d046a7 100644 --- a/packages/mobile/src/views/EquipmentDetails.vue +++ b/packages/mobile/src/views/EquipmentDetails.vue @@ -1,69 +1,202 @@ + + + + + + + + + + + + + + + + + + + + +const router = useRouter(); +const route = useRoute(); + +const equipmentInfo = ref({ + title: "", + label: "", + status: "", + statusClass: "", +}); +onMounted(() => { + equipmentInfo.value = JSON.parse(decodeURIComponent(route.params.data)); + console.log("equipmentInfo", equipmentInfo.value); +}); + +const onClickLeft = () => { + router.push("/EquipManage"); +}; + +const show报废Popup = ref(false); +const on报废PopupClose = () => { + show报废Popup.value = false; +}; +const showBrokenPopup = ref(false); +const onBrokenPopupOpen = () => { + showBrokenPopup.value = true; +}; +const onBrokenPopupClose = () => { + showBrokenPopup.value = false; +}; +const showDeletePopup = ref(false); +const onDeletePopupClose = () => { + showDeletePopup.value = false; +}; +const showRemarkPopup = ref(false); +const onRemarkPopupOpen = () => { + showRemarkPopup.value = true; +}; +const onRemarkPopupClose = () => { + showRemarkPopup.value = false; +}; + +.home { + padding-top: var(--van-nav-bar-height); /* 自动匹配导航栏高度 */ +} + +.content { + padding: 16px; +} + +.grid { + margin-top: 16px; +} + +.btn { + margin-top: 24px; +} + +.status-tag { + display: inline-block; + padding: 3px 8px; + border-radius: 4px; + color: white; + font-size: 12px; +} +.status-good { + background-color: #07c160; +} +.status-warning { + background-color: #ff976a; +} +.status-danger { + background-color: #ee0a24; +} + \ No newline at end of file diff --git a/packages/mobile/src/views/EquipmentManagement.vue b/packages/mobile/src/views/EquipmentManagement.vue index 7752397..81e03a4 100644 --- a/packages/mobile/src/views/EquipmentManagement.vue +++ b/packages/mobile/src/views/EquipmentManagement.vue @@ -15,26 +15,20 @@
- - - - - - @@ -251,6 +245,26 @@ import { showToast } from "vant"; const router = useRouter(); const searchValue = ref(""); // 搜索框输入值 +const equipmentList = ref([ + { + title: "高枝锯、绿篱机、油锯", + label: "设备类型: 绿化修剪设备", + status: "完好", + statusClass: "status-good", + }, + { + title: "撒布机三台", + label: "设备类型:除雪设备", + status: "损坏", + statusClass: "status-warning", + }, + { + title: "撒布机三台", + label: "设备类型:除雪设备", + status: "报废", + statusClass: "status-danger", + }, +]); const showPopup = ref(false); // 控制弹出层显示隐藏 const onClickLeft = () => {