Преглед на файлове

2022.9.2 移动端请求处理

ggooalice преди 2 години
родител
ревизия
3878a429c4

+ 6 - 4
fhKeeper/formulahousekeeper/timesheet_h5/src/views/count/count.vue

@@ -202,13 +202,15 @@ export default {
                 parameter.manageDeptId = this.user.manageDeptId; 
             }
             this.listLoading = true
-            this.submitList = []
-            this.unSubmitList = []
-            this.unFillList = []
-            this.unFillLeaveList = []
+            
             this.$axios.post('/report/getMembList', parameter)
             .then(res => {
+                // console.log('resok',parameter.date == this.nowLookDate);
                 if(res.code == 'ok'){
+                    this.submitList = []
+            this.unSubmitList = []
+            this.unFillList = []
+            this.unFillLeaveList = []
                     this.extractUser(res.data)
                     this.drawChart()
                     this.listLoading = false

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

@@ -1009,7 +1009,7 @@
                                     this.$set(this.form.domains[0],'overtimeHours',t.allday.toFixed(0))
                                 }
                             }
-                            if(this.report.timeBasecostList.length != 0 && this.user.company.packageProject==1){
+                            if(this.report.timeBasecostList.length != 0 && this.user.company.packageProject == 1){
                                 this.form.domains[0].basecostId = this.report.timeBasecostList[0].id;
                                 this.form.domains[0].basecostName = this.report.timeBasecostList[0].name;
                             }