Explorar el Código

修复日期控件范围选择不补0导致数据查询为空

zhouchenglin hace 7 años
padre
commit
5b66de6ca2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main/resources/static/js/base/log/list.js

+ 2 - 2
src/main/resources/static/js/base/log/list.js

@@ -22,8 +22,8 @@ function initialPage() {
         done: function(value, date, endDate){
             vm.dateRangeSelect(0);
             vm.dateRange = value;
-            vm.startDate = date.year + '-' + date.month + '-' + date.date;
-            vm.endDate = endDate.year + '-' + endDate.month + '-' + endDate.date;
+            vm.startDate = formatDate(date.year + '-' + date.month + '-' + date.date, 'yyyy-MM-dd');
+            vm.endDate = formatDate(endDate.year + '-' + endDate.month + '-' + endDate.date, 'yyyy-MM-dd');
         }
     });
 }