Explorar el Código

布撤防页面优化

jiawuxian hace 2 años
padre
commit
09ca47196b
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/views/menu/protection/index.vue

+ 4 - 4
src/views/menu/protection/index.vue

@@ -134,12 +134,12 @@ export default {
       this.showOrg = true
     },
     //改变机构后将重新发起请求
-    changeTree({ selectedOptions }) {
+    changeTree(node) {
       // console.log(selectedOptions,'aaaaaa')
       // this.search.orgId = selectedOptions[selectedOptions.length-1].id;
-      let option = selectedOptions[selectedOptions.length - 1]
-      this.search.orgId = option.id
-      this.selectedOrgName = option.shortName
+      // let option = selectedOptions[selectedOptions.length - 1]
+      this.search.orgId = node.id
+      this.selectedOrgName = node.shortName
     },
     onFinish({ selectedOptions }) {
       this.showOrg = false