Przeglądaj źródła

更改日期返回格式4

Reiskuchen 5 lat temu
rodzic
commit
c4121bfc50

+ 0 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/TimeCalculationServiceImpl.java

@@ -144,7 +144,6 @@ public class TimeCalculationServiceImpl extends ServiceImpl<TimeCalculationMappe
                         map.put("endTime", timeCalculation.getEndTime().format(DateTimeFormatter.ofPattern("HH:mm")));
                         map.put("duration", timeCalculation.getDuration());
                         list.add(map);
-                        dataList.remove(timeCalculation);/*这个remove不知道会不会出问题*/
                     }
                 }
                 dataMap.put("time", list);

+ 4 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/system/index.vue

@@ -215,7 +215,7 @@ export default {
       this.http.post(
         this.port.test.test1,
         {
-          startDate: "2020-01-13",
+          startDate: "2020-01-01",
           endDate: "2020-01-15"
         },
         res => {
@@ -246,7 +246,9 @@ export default {
       that.tableHeight = window.innerHeight - 195;
     };
   },
-  mounted() {}
+  mounted() {
+    this.getTest();
+  }
 };
 </script>