Sfoglia il codice sorgente

修复生产数据导出时默认日期值丢失的BUG

liling 3 mesi fa
parent
commit
52d23d3284
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/pages/imp/imp01.vue

+ 2 - 2
src/pages/imp/imp01.vue

@@ -104,8 +104,8 @@
                     day=day.setDate(day.getDate()-1);
                 }
                 var day1 = new Date().setDate(new Date(day).getDate()-7);
-                startDate.value = new Date(day1);
-                endDate.value  =new Date(day);
+                startDate.value = new Date(day1).Format('yyyy-MM-dd');
+                endDate.value  =new Date(day).Format('yyyy-MM-dd');
             })
 
             return{