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 () => { - +