@@ -48,7 +74,9 @@
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue
new file mode 100644
index 00000000..e28e2733
--- /dev/null
+++ b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue
@@ -0,0 +1,212 @@
+
+
+
+
+ 采集器的点位名称与属性名称一致时将自动映射绑定;有多个采集器点位名称与属性名称一致时以第1个采集器的点位数据进行绑定
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/ChildDevice/EdgeMap/index.vue b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/index.vue
new file mode 100644
index 00000000..6d3434ac
--- /dev/null
+++ b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/index.vue
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+
+ 批量映射
+ 保存
+
+
+
+
+
+
+ 采集器
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/ChildDevice/SaveChild/index.vue b/src/views/device/Instance/Detail/ChildDevice/SaveChild/index.vue
new file mode 100644
index 00000000..acabb451
--- /dev/null
+++ b/src/views/device/Instance/Detail/ChildDevice/SaveChild/index.vue
@@ -0,0 +1,106 @@
+
+
+
+
+ 返回
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ i.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/ChildDevice/index.vue b/src/views/device/Instance/Detail/ChildDevice/index.vue
index 214a9491..14c50cdc 100644
--- a/src/views/device/Instance/Detail/ChildDevice/index.vue
+++ b/src/views/device/Instance/Detail/ChildDevice/index.vue
@@ -1,91 +1,113 @@
-
-
-
-
- 新增并绑定
-
- 绑定
-
-
- 批量解绑
-
-
-
-
- {{
- slotProps.registryTime
- ? moment(slotProps.registryTime).format(
- 'YYYY-MM-DD HH:mm:ss',
- )
- : ''
- }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 新增并绑定
-
+ 绑定
+ 批量解除
+
+
+
+ {{
+ slotProps.registryTime
+ ? moment(slotProps.registryTime).format(
+ 'YYYY-MM-DD HH:mm:ss',
+ )
+ : ''
+ }}
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+ style="padding: 0px"
+ :hasPermission="'device/Instance:' + i.key"
+ >
+
+
+
+
+
+
+
+
@@ -97,11 +119,17 @@ import { useInstanceStore } from '@/store/instance';
import { storeToRefs } from 'pinia';
import { message } from 'ant-design-vue';
import BindChildDevice from './BindChildDevice/index.vue';
+import { usePermissionStore } from '@/store/permission';
+import SaveChild from './SaveChild/index.vue';
const instanceStore = useInstanceStore();
const { detail } = storeToRefs(instanceStore);
const router = useRouter();
-
+const childVisible = ref(false);
+const permissionStore = usePermissionStore();
+// watchEffect(() => {
+// console.log(detail.value);
+// });
const statusMap = new Map();
statusMap.set('online', 'success');
statusMap.set('offline', 'error');
@@ -111,6 +139,7 @@ const childDeviceRef = ref