ソースを参照

'周报表报表期在IE中的bug'

GaoYuPeng 3 年 前
コミット
d0cd892e9b

+ 2 - 2
src/main/resources/static/app/business/reportWeekly/controller/reportWeeklyCtrl.js

@@ -105,13 +105,13 @@ angular.module('app.business')
105 105
                 //alert("点击上报后不可再取消,确认上报");
106 106
                 reportWeeklyService.loadDataById(id).then(function(data){
107 107
                     //在json对象里增加一个属性
108
-                    // console.log(data,'查看数据')
108
+                    console.log(data,'查看上报返回数据')
109 109
                     var reportWeeklys = angular.fromJson(angular.toJson(data));
110 110
                     reportWeeklys.orgName= $rootScope.orgInfo.orgName;
111 111
                     reportWeeklys.companyOrgCode= $rootScope.orgInfo.companyOrgCode;//组织机构代码
112 112
 
113 113
                     reportWeeklyService.reportWeekly(reportWeeklys).then(function(data){
114
-                        // console.log(data+"----上报结果");
114
+                        console.log(data +"----上报结果");
115 115
                         if(data.status=="success"){
116 116
                             //alert("点击上报后不可再取消,确认上报");
117 117
                             reportWeeklyService.updateStatus(id).then(function(data){

+ 1 - 1
src/main/resources/static/app/business/reportWeekly/views/reportWeekly-edit.html

@@ -60,7 +60,7 @@
60 60
                                                                                 let startDateStr = startDate.getFullYear() + '-' + (startDate.getMonth() + 1) + '-' + startDate.getDate()
61 61
                                                                                 let endDateStr = endDate.getFullYear() + '-' + (endDate.getMonth() + 1) + '-' + endDate.getDate()
62 62
                                                                                 console.log(startDateStr,endDateStr)
63
-                                                                                return { startDate, endDate ,startDateStr,endDateStr}
63
+                                                                                return { startDate:startDate, endDate:endDate ,startDateStr:startDateStr,endDateStr:endDateStr}
64 64
                                                                             }
65 65
                                                                             var a = $dp.cal.getDateStr()
66 66
                                                                             var date= new Date(Date.parse(a.replace(/-/g,'/' )) )