coys преди 2 години
родител
ревизия
d0b2e11bf9
променени са 3 файла, в които са добавени 7 реда и са изтрити 15 реда
  1. 1 0
      src/components/orgTree/index.vue
  2. 3 7
      src/views/menu/monitoringCall/index.vue
  3. 3 8
      src/views/menu/training/index.vue

+ 1 - 0
src/components/orgTree/index.vue

@@ -61,6 +61,7 @@ export default {
     },
     onSelect(value) {
       this.$emit('change', value.id)
+      this.$emit('change', value)
     }
   },
   model: {

+ 3 - 7
src/views/menu/monitoringCall/index.vue

@@ -3,7 +3,7 @@
     <NavBar :go="{type:'push',path:'/menu'}" />
     <van-row>
       <van-col span="24">
-        <org-tree v-model="cascaderValue" @change="getDataList" @getTree="getTreeHandler"></org-tree>
+        <org-tree v-model="cascaderValue" @change="getDataList" ></org-tree>
       </van-col>
     </van-row>
     <van-row>
@@ -158,7 +158,7 @@ export default {
     this.init()
   },
   mounted() {
-
+    this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
     
    
   },
@@ -168,11 +168,7 @@ export default {
    
   },
   methods: {
-    //
-    getTreeHandler(){
-      this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
-
-    },
+   
     //单元格点击事件
     linkHandler(status,id,item){
       

+ 3 - 8
src/views/menu/training/index.vue

@@ -5,7 +5,7 @@
 
       <van-row>
         <van-col span="24">
-          <org-tree v-model="cascaderValue" :name="'sss'" @getTree="getTreeHandler" @changeItem="getDataList"></org-tree>
+          <org-tree v-model="cascaderValue" :name="'sss'"  @changeItem="getDataList"></org-tree>
         </van-col>
       </van-row>
       <van-row>
@@ -238,15 +238,10 @@ export default {
   },
   mounted() {
     this.init()
-    // setTimeout(() => {
-    //   this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
-    // }, 500)
+    this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
   },
   methods: {
-    getTreeHandler(){
-      this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
-
-    },
+   
     //机构搜索
     getDataList(val) {
       this.cascaderValue = val.id