From 551323d5d12df34c835e0113403689e9bd1c072e Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Mon, 14 Jul 2025 11:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=BE=E5=A4=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-antd/src/views/device/focus/index.vue | 89 ++++++-------- .../web-antd/src/views/device/meter/index.vue | 110 +++++++----------- 2 files changed, 81 insertions(+), 118 deletions(-) diff --git a/apps/web-antd/src/views/device/focus/index.vue b/apps/web-antd/src/views/device/focus/index.vue index 350a2fa..2ac699d 100644 --- a/apps/web-antd/src/views/device/focus/index.vue +++ b/apps/web-antd/src/views/device/focus/index.vue @@ -123,9 +123,9 @@ async function submit() { const formValues = await formApi.getValues(); const fetchParams: any = isEdit ? { - id: editRow.value.id, - ...formValues, - } + id: editRow.value.id, + ...formValues, + } : formValues; try { @@ -171,7 +171,7 @@ function onDel(row: any) { const toStatusData = (row: Record) => { // 或者使用编程式导航 router.push({ - path: '/iotdb/status', + path: '/iotdb/deviceData', query: { DeviceType: 10, DeviceId: row.focusId, @@ -202,59 +202,46 @@ const openAddModal = async () => { - + diff --git a/apps/web-antd/src/views/device/meter/index.vue b/apps/web-antd/src/views/device/meter/index.vue index 9a3e3c8..67cb1d1 100644 --- a/apps/web-antd/src/views/device/meter/index.vue +++ b/apps/web-antd/src/views/device/meter/index.vue @@ -127,14 +127,14 @@ async function submit() { const formValues = await formApi.getValues(); const fetchParams: any = isEdit ? { - id: editRow.value.id, - ...formValues, - password: formValues.password || '000000', - } + id: editRow.value.id, + ...formValues, + password: formValues.password || '000000', + } : { - ...formValues, - password: formValues.password || '000000', - }; + ...formValues, + password: formValues.password || '000000', + }; try { userModalApi.setState({ loading: true, confirmLoading: true }); @@ -178,7 +178,7 @@ function onDel(row: any) { const toStatusData = (row: Record) => { // 或者使用编程式导航 router.push({ - path: '/iotdb/point', + path: '/iotdb/deviceData', query: { DeviceType: row.meterType, DeviceId: row.meterId, @@ -212,24 +212,22 @@ const openAddModal = async () => { - +