Parcourir la source

布撤防查询包含下级

jiawuxian il y a 1 an
Parent
commit
30670394f3
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/views/menu/iot/protection/index.vue

+ 5 - 1
src/views/menu/iot/protection/index.vue

@@ -3,7 +3,7 @@
     <nav-bar></nav-bar>
     <van-row>
       <van-col span="24">
-        <org-tree v-model="search.orgId" @changeItem="changeTree"></org-tree>
+        <org-tree v-model="search.orgId" @changeItem="changeTree" @checked="orgCheckChanged" showChecked></org-tree>
       </van-col>
     </van-row>
     <!-- <van-search v-model="search.key" placeholder="请输入搜索关键词" maxlength="50" /> -->
@@ -45,6 +45,7 @@ export default {
       options: [],
       search: {
         orgId: this.orgId,
+        checkSub:false,
         status: null,
         hour: null,
         key: null,
@@ -141,6 +142,9 @@ export default {
       this.search.orgId = node.id
       this.selectedOrgName = node.shortName
     },
+    orgCheckChanged(v){
+      this.search.checkSub=v;
+    },
     onFinish({ selectedOptions }) {
       this.showOrg = false
     }