diff --git a/src/views/iot/device/device/index.vue b/src/views/iot/device/device/index.vue
index 4c7a39634..9e9721229 100644
--- a/src/views/iot/device/device/index.vue
+++ b/src/views/iot/device/device/index.vue
@@ -199,9 +199,9 @@
所属产品
-
+
{{ products.find((p) => p.id === item.productId)?.name }}
-
+
设备类型
@@ -289,7 +289,9 @@
- {{ products.find((p) => p.id === scope.row.productId)?.name || '-' }}
+
+ {{ products.find((p) => p.id === scope.row.productId)?.name || '-' }}
+
@@ -442,6 +444,11 @@ const openDetail = (id: number) => {
push({ name: 'IoTDeviceDetail', params: { id } })
}
+/** 跳转到产品详情页面 */
+const openProductDetail = (productId: number) => {
+ push({ name: 'IoTProductDetail', params: { id: productId } })
+}
+
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {