Explorar el Código

人工预报-写死日期

cl hace 1 año
padre
commit
b2456390b7
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/prediction/artificial/flood.vue

+ 2 - 1
src/views/prediction/artificial/flood.vue

@@ -895,7 +895,8 @@ async function treeSelect(selectedKeys, e) {
   dataSource.value = [];
   let sTime = moment().subtract(1, "day").format("YYYY-MM-DD HH:mm:ss")
   let eTime = moment().subtract(0, "day").format("YYYY-MM-DD HH:mm:ss")
-  let sTimeInit = sTime.split(':')[0] + ':00:00';
+  // let sTimeInit = sTime.split(':')[0] + ':00:00';
+  let sTimeInit = new Date().getFullYear() + '-05-01 08:00:00';
   let eTimeInit = eTime.split(':')[0] + ':00:00';
   // 销毁echarts
   if (chart) {