Преглед изворни кода

[Mod 0000] 添加测点树的禁用标识

Discription

如题

Associated Tasks

暂无

Assignee

@houzekong
houzekong пре 1 година
родитељ
комит
8046c419a7

+ 2 - 0
src/views/vent/monitor/site/components/siteTree.vue

@@ -21,6 +21,7 @@
     {
       title: '暂无数据',
       key: '0',
+      disabled: true,
       children: [],
     },
   ]);
@@ -31,6 +32,7 @@
     const res: TreeNode = {
       title: node.label,
       key: node.id,
+      disabled: !!node.display,
       children: [],
       raw: node,
     };

+ 1 - 0
src/views/vent/monitor/site/types/siteTree.ts

@@ -2,5 +2,6 @@ export interface TreeNode {
   title: string;
   key: string;
   children: TreeNode[];
+  disabled: boolean;
   [k: string]: unknown;
 }