Browse Source

2022.5.26 注释控制台打印

山水共长天一色 3 năm trước cách đây
mục cha
commit
ffe0d0868f

+ 10 - 10
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -440,7 +440,7 @@
                 }).catch(err=> {this.$toast.clear();});
             },
             sea() {
-                console.log(this.userName.length)
+                // console.log(this.userName.length)
                 if(this.userName.length > 0) {
                     // let text = this.userName
                     // let reg = new RegExp(text)
@@ -456,7 +456,7 @@
                     let arrList = Array.from(new Set(dataTree))
                     this.projectss = arrList
                 } else {
-                    console.log(456)
+                    // console.log(456)
                     this.projectss = this.proads
                 }
             },
@@ -722,7 +722,7 @@
                     this.form.domains[this.clickTimeIndex].label = value.label;
                     this.showPickerTime = false;
                 } else if (this.reportTimeType.type == 1) {
-                    console.log('this.reportTimeType.type=='+value,this.form.domains);
+                    // console.log('this.reportTimeType.type=='+value,this.form.domains);
                     this.form.domains[this.clickTimeIndex].workingTime = value;
                     this.form.domains[this.clickTimeIndex].label = value.toFixed(1)+'小时';
                     this.showPickerHours = false;
@@ -878,7 +878,7 @@
                                     }
                                 }
                                 let serverPicArray = [];
-                                console.log('picArray=='+list[i].picStr);
+                                // console.log('picArray=='+list[i].picStr);
                                 if (list[i].picStr != null && list[i].picStr != '@') {
                                     serverPicArray = JSON.parse(list[i].picStr.replace(/@/g,","));
                                 }
@@ -958,7 +958,7 @@
                         this.$toast.fail('获取失败:'+res.msg);
                     }
                     if(localStorage.getItem("formVal")) {
-                        console.log('触发了')
+                        // console.log('触发了')
                         var obj = localStorage.getItem("formVal")
                         this.form = JSON.parse(obj)
                         localStorage.removeItem('formVal')
@@ -1015,7 +1015,7 @@
                 if (!this.canEdit) return;
                 // this.clickIndex = i;
                 // this.showPickerProject = true;
-                console.log(i, item, this.form)
+                // console.log(i, item, this.form)
                 this.proIdx = i
                 this.showPickerUserddp = true
                 // this.$router.push({
@@ -1037,7 +1037,7 @@
             //选择任务
             clickPickerTask(i) {
                 if (!this.canEdit) return;
-                console.log(i);
+                // console.log(i);
                 this.clickIndex = i;
                 // var proId = this.form.domains[this.clickIndex].projectId
                 // this.getTaskList(proId)
@@ -1114,12 +1114,12 @@
 
 
             getProjectProfessions(domain, index) {
-                console.log(domain, '数据')
+                // console.log(domain, '数据')
                 this.$axios.post("/project-profession/getMyProfession", {projectId: domain.projectId})
                         .then(res => {
                             if(res.code == "ok") {
                                 this.form.domains[this.clickIndex].professionProgress = res.data;
-                                console.log(this.form.domains)
+                                // console.log(this.form.domains)
                                 this.$forceUpdate();
                             } else {
                                 this.$toast.fail('获取失败');
@@ -1539,7 +1539,7 @@
         },
         
         mounted() {
-            console.log(localStorage.getItem("formVal"))
+            // console.log(localStorage.getItem("formVal"))
             var ua = navigator.userAgent.toLowerCase();
             this.isIOSystem = this.isIOS();
             if (ua.indexOf("wxwork") > 0) {

+ 10 - 10
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/weekEdit.vue

@@ -526,7 +526,7 @@
                 }).catch(err=> {this.$toast.clear();});
             },
             sea() {
-                console.log(this.userName.length)
+                // console.log(this.userName.length)
                 if(this.userName.length > 0) {
                     // console.log(123)
                     // let text = this.userName
@@ -544,7 +544,7 @@
                     let arrList = Array.from(new Set(dataTree))
                     this.projectss = arrList
                 } else {
-                    console.log(456)
+                    // console.log(456)
                     this.projectss = this.proads
                 }
             },
@@ -809,7 +809,7 @@
                     this.currentForm.domains[this.clickTimeIndex].label = value.label;
                     this.showPickerTime = false;
                 } else if (this.reportTimeType.type == 1) {
-                    console.log('this.reportTimeType.type=='+value);
+                    // console.log('this.reportTimeType.type=='+value);
                     this.currentForm.domains[this.clickTimeIndex].workingTime = value;
                     this.currentForm.domains[this.clickTimeIndex].label = value.toFixed(1)+'小时';
                     this.showPickerHours = false;
@@ -965,7 +965,7 @@
                                     }
                                 }
                                 let serverPicArray = [];
-                                console.log('picArray=='+list[i].picStr);
+                                // console.log('picArray=='+list[i].picStr);
                                 if (list[i].picStr != null && list[i].picStr != '@') {
                                     serverPicArray = JSON.parse(list[i].picStr.replace(/@/g,","));
                                 }
@@ -1102,7 +1102,7 @@
                 // if (!this.canEdit) return;
                 // this.clickIndex = i;
                 // this.showPickerProject = true;
-                console.log(i, item, this.currentForm)
+                // console.log(i, item, this.currentForm)
                 this.proIdx = i
                 this.showPickerUserddp = true
                 // this.$router.push({
@@ -1124,7 +1124,7 @@
             //选择任务
             clickPickerTask(i) {
                 // if (!this.canEdit) return;
-                console.log(i);
+                // console.log(i);
                 this.clickIndex = i;
                 // var proId = this.form.domains[this.clickIndex].projectId
                 // this.getTaskList(proId)
@@ -1201,12 +1201,12 @@
 
 
             getProjectProfessions(domain, index) {
-                console.log(domain, '数据')
+                // console.log(domain, '数据')
                 this.$axios.post("/project-profession/getMyProfession", {projectId: domain.projectId})
                         .then(res => {
                             if(res.code == "ok") {
                                 this.currentForm.domains[this.clickIndex].professionProgress = res.data;
-                                console.log(this.currentForm.domains)
+                                // console.log(this.currentForm.domains)
                                 this.$forceUpdate();
                             } else {
                                 this.$toast.fail('获取失败');
@@ -1322,7 +1322,7 @@
                                 worktimeList:{},
                                 degreeId: ''
                             }],
-                console.log(this.currentForm);
+                // console.log(this.currentForm);
             },
 
             // 提交日报
@@ -1639,7 +1639,7 @@
         mounted() {
             this.getDateRange()
             // if(user.companyId == '817')
-            console.log('userId',this.user.companyId);
+            // console.log('userId',this.user.companyId);
             // console.log(localStorage.getItem("formVal"))
             var ua = navigator.userAgent.toLowerCase();
             this.isIOSystem = this.isIOS();

+ 6 - 6
fhKeeper/formulahousekeeper/timesheet_h5/src/views/index/index.vue

@@ -127,7 +127,7 @@
             getAccountInfo() {
                 this.$axios.get('/user/loginByUserId', {params:{userId: this.user.id}})
                             .then(res => {
-                                console.log(res);
+                                // console.log(res);
                                 if (res.code == 'error') {
                                     localStorage.errorMsg = res.msg;
                                     //账号信息有问题,不能使用。
@@ -161,7 +161,7 @@
 
                         // var urlLeft = url.substring(0, jingPosit);//url左侧部分
                         var urlRight = url.substring(jingPosit, url.length); //url右侧部分
-                        console.log('urlRight=' + urlRight);
+                        // console.log('urlRight=' + urlRight);
                         // window.location = urlLeft + "#/home" + urlRight;//拼接跳转
                         //获取code
                         var code = urlRight.substring('?code='.length,urlRight.indexOf('#/index'));
@@ -170,11 +170,11 @@
                         }
 
                         //调用后台接口,注册用户
-                        console.log('获取到code=='+code);
+                        // console.log('获取到code=='+code);
 
                         this.$axios.get(requestUrl, {params:{code:code, userId: this.user.id}})
                             .then(res => {
-                                console.log(res);
+                                // console.log(res);
                                 if (res == null) {
                                     this.$toast.fail('绑定失败');
                                 } else if(res.errcode != null) {
@@ -185,7 +185,7 @@
                                     if (res.data != null && ((this.isWX && res.data.wxOpenid != undefined)
                                                 || (this.isCorpWX && res.data.corpwxUserid != undefined))) {
                                         localStorage.userInfo = JSON.stringify(res.data);
-                                        console.log('绑定成功');
+                                        // console.log('绑定成功');
                                         this.user = res.data;
                                         window.location.href = '/#/my/center';
                                     }
@@ -204,7 +204,7 @@
                     if(res.code == "ok") {
                         var list = res.data;
                         this.unreadNum = list.filter(l=>l.checked==0).length;
-                        console.log(this.unreadNum);
+                        // console.log(this.unreadNum);
                         
                     } 
                 }).catch(err=> {this.$toast.clear();});