Просмотр исходного кода

[0917] 短期预报月报、年报时间结构统一

taosj 2 часов с этого момента
Родитель
Сommit
c0bd508fba

+ 1 - 1
forecast-backend-vue/src/views/ufo/electricity/datareport/shorTermForecastMonthlyReport.vue

@@ -96,7 +96,7 @@ const buildParams = () => ({
   type: query.type,
   entityId: query.stationId,
   startTime: dayjs(query.startTime).format('YYYY-MM') + '-01',
-  endTime: dayjs(query.endTime).endOf('month').format('YYYY-MM-DD HH:mm:ss')
+  endTime: dayjs(query.endTime).endOf('month').format('YYYY-MM-DD')
 })
 
 const handleQuery = async () => {

+ 2 - 2
forecast-backend-vue/src/views/ufo/electricity/datareport/shorTermForecastYearlyReport.vue

@@ -97,8 +97,8 @@ const loadStationOptions = async () => {
 const buildParams = () => ({
   type: query.type,
   entityId: query.stationId,
-  startTime: dayjs(query.startTime).startOf('year').format('YYYY-MM-DD HH:mm:ss'),
-  endTime: dayjs(query.endTime).endOf('year').format('YYYY-MM-DD HH:mm:ss')
+  startTime: dayjs(query.startTime).startOf('year').format('YYYY-MM-DD'),
+  endTime: dayjs(query.endTime).endOf('year').format('YYYY-MM-DD')
 })
 
 const handleQuery = async () => {