哥哥玩剑魂呢 3 éve
szülő
commit
b0cd9bc131
2 módosított fájl, 1 hozzáadás és 20 törlés
  1. 1 1
      src/utils/wx-auth-two.js
  2. 0 19
      src/views/dashboard/index.vue

+ 1 - 1
src/utils/wx-auth-two.js

@@ -127,7 +127,7 @@ async function wxConfigByCorp(body, pushindex, next) {
         timestamp: appSignature.timestamp, // 必填,生成签名的时间戳
         nonceStr: appSignature.nonceStr, // 必填,生成签名的随机串
         signature: appSignature.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法
-        jsApiList: [], //必填
+        jsApiList: ['selectExternalContact'], //必填
         success: function (res) { // 回调  //  wx.agentConfig成功回调后,WWOpenData 才会注入到 window 对象上面
           console.log('agentConfig成功')
           console.log('回调')

+ 0 - 19
src/views/dashboard/index.vue

@@ -896,7 +896,6 @@
           let histogramAward = []
           let histogramDeduct = []
           for(let i in datas.list){
-            console.log(datas.list[i].name)
             let arr = {}//转结构
             arr.type = "userName",
             arr.id = datas.list[i].name
@@ -911,9 +910,6 @@
           this.ManagerSAwardlList[4].val = datas.manager_count
           this.ManagerSAwardlList[5].val = datas.pass_count
           this.ManagerSAwardlList[6].val = datas.fail_count
-          console.log(items)
-          console.log(histogramAward)
-          console.log(histogramDeduct)
           // WWOpenData.prefetch({ histogramName }, (err, data) => {
           //   if (err) {
           //     console.log(err);
@@ -930,8 +926,6 @@
                 console.log(err);
               }
               var Name = data.items.map($0=>$0.data) // 这个就是转好的,直接丢到 echarts
-              console.log(Name)
-              console.log(data)
               if (WWOpenData.initCanvas) {
                 WWOpenData.initCanvas()
               }
@@ -1057,7 +1051,6 @@
         let params = {}
         let listslength = []
         if(this.employeeRout){
-          console.log(this.$store.getters.user_info.id)
           params.employee_id = this.$store.getters.user_info.id;
         }else{
           params.dept_id = this.exclusiveMonthBranch
@@ -1588,8 +1581,6 @@
         let pastdueTime = moment(create_time.toString().length==10?create_time*1000:create_time).format('YYYY-MM-DD')
         let atpresentDate = moment().format('YYYY-MM-DD')
         let date = moment(pastdueTime).diff(moment(atpresentDate),'days')
-        // console.log(pastdueTime)
-        // console.log(date)
         // date = 25
         if(date>=0 && date<=30){
           this.pastdueDate = '您的积分软件即将到期,有效期至'+pastdueTime+',请及时续费以免影响使用'
@@ -1635,12 +1626,7 @@
         this.currentTubiao = 'tubiaoEmployee'
       }
 			if (localStorage.getItem('dept_tree')) {
-        console.log(JSON.parse(localStorage.getItem('dept_tree')))
-        
-        console.log(JSON.parse(localStorage.getItem('dept_tree')).length)
         this.dept_tree = 	this.getTreeData(JSON.parse(localStorage.getItem('dept_tree')))
-        console.log(' this.dept_tree')
-        console.log( this.dept_tree)
           // this.dept_tree[0].name = `<WWOpenData type="departmentName" :openid="${this.dept_tree[0].name}"></WWOpenData>`
       }else{
         this.$store.dispatch('get_dept_tree').then((res) => {
@@ -1685,9 +1671,6 @@
           {name:'领任务',image:'/static/images/task_hall.png',push:'/get_task'},
         )
       }
-      // console.log('this.$refs.dept9999')
-      // console.log(this.$refs.dept9999.firstChild.innerHTML)
-      // console.log(this.$refs.dept9999.textContent)
       console.log(WWOpenData)
       if(JSON.parse(localStorage.getItem("Experience_data"))){
         this.experience_data = JSON.parse(localStorage.getItem("Experience_data")).if//是否体验账号
@@ -1769,8 +1752,6 @@
       })
       //  WWOpenData.bind(document.querySelector('ww-open-data'))
 
-      console.log('this.$refs.dept1')
-      console.log(this.$refs.dept1)
       // this.qrcode()//生成二维码,可能无用
     },
     beforeDestroy(){//销毁滚动条事件