Explorar o código

布撤防页面优化

jiawuxian %!s(int64=2) %!d(string=hai) anos
pai
achega
09ca47196b
Modificáronse 1 ficheiros con 4 adicións e 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