Преглед изворни кода

feat:修改获取的日期

AmandaG пре 1 година
родитељ
комит
efe03cba9c
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/views/Dashboard/src/DashboardView.vue

+ 4 - 4
src/views/Dashboard/src/DashboardView.vue

@@ -132,8 +132,8 @@ const GetETDEcharts = () => {
   }
   $api
     .GetETDEcharts({
-      b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
-      e_date: tenmonth + '/' + tenyear
+      e_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
+      b_date: tenmonth + '/' + tenyear
     })
     .then((res: any) => {
       if (res.code === 200) {
@@ -249,8 +249,8 @@ const GetContainerCountEcharts = (val: any) => {
   containerType.value = []
   $api
     .GetContainerCountEcharts({
-      b_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
-      e_date: tenmonth + '/' + tenyear,
+      e_date: currentDate.getMonth() + 1 + '/' + currentDate.getFullYear(),
+      b_date: tenmonth + '/' + tenyear,
       ...val
     })
     .then((res: any) => {