coys 2 years ago
parent
commit
24505d0097
2 changed files with 9 additions and 3 deletions
  1. 2 1
      src/components/orgTree/index.vue
  2. 7 2
      src/views/menu/monitoringCall/index.vue

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

@@ -41,6 +41,7 @@ export default {
     value: {
       handler(val) {
         this.orgId = val
+       
       }
     }
   },
@@ -62,7 +63,7 @@ export default {
         this.$nextTick(() => {
           this.treeData = res.data
         })
-        console.log(res, '3333')
+      
       })
     },
     onSelect(value) {

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

@@ -2,6 +2,7 @@
   <div>
     <NavBar />
     <van-row>
+      
       <van-col span="24">
         <org-tree v-model="cascaderValue" @change="getDataList"></org-tree>
         <!-- <van-field
@@ -133,7 +134,7 @@ export default {
       value1: JSON.parse(sessionStorage.getItem('SET_USER_ORGNAME')) || '', //输入框model
       currentDate: newDateMonth(),
       presentDate: '', //当前时间
-      cascaderValue: JSON.parse(sessionStorage.getItem('SET_USER_ORGID')) || '',
+      cascaderValue: '',
       columns: ['全部'],
       statusList: [], //调阅状态字典数组
       show: false,
@@ -180,6 +181,7 @@ export default {
   },
   created() {
     this.init()
+   
     this.presentDate = this.presentDateCpd
   },
   computed: {
@@ -187,7 +189,10 @@ export default {
       return new Date(+newDateMonth().split('-')[0], +newDateMonth().split('-')[1] - 1)
     }
   },
-  mounted() {},
+  mounted() {
+    this.cascaderValue=(JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID'))+'')
+    console.log(this.cascaderValue);
+  },
   methods: {
     //机构变化
     getDataList(v) {