ggooalice 2 سال پیش
والد
کامیت
c7e20b9e7e
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

+ 8 - 4
fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

@@ -1023,9 +1023,11 @@ export default {
       this.http.post('/company/getSyncInfo',{
       },res => {
         if(res.code == 'ok'){
-          this.recordMsg = res.data
-          if(this.recordMsg.result == 0){
-            this.recordMsgDialog = true
+          if(res.data){
+            this.recordMsg = res.data
+            if(this.recordMsg.result == 0){
+              this.recordMsgDialog = true
+            }
           }
         }else{
           this.$message({
@@ -3302,7 +3304,9 @@ export default {
     this.acquireRole();
     this.getProfessional();
     this.getStaffCountMax();
-    this.getRecordMsg()
+    if(this.user.dingdingUserid != null || this.user.corpwxUserid != null){
+      this.getRecordMsg()
+    }
     // 获取企业微信的参数
     // if(this.user.companyId == '1081' || this.user.companyId == '7') {
     //   this.agentConfig()