소스 검색

布撤防页面优化

jiawuxian 2 년 전
부모
커밋
09ca47196b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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