Skip to content

Commit

Permalink
修复时间区间组件清空时查询条件报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
erupts committed Aug 11, 2024
1 parent 41dc28d commit 7bf44e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/build/bi/service/handler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ export class HandlerService {
if (val) {
switch (dimension.type) {
case DimType.DATE_RANGE:
if (!val[1]){
break;
}
val[0] = this.datePipe.transform(val[0], "yyyy-MM-dd 00:00:00");
val[1] = this.datePipe.transform(val[1], "yyyy-MM-dd 23:59:59");
break;
case DimType.DATETIME_RANGE:
if (!val[1]){
break;
}
val[0] = this.datePipe.transform(val[0], "yyyy-MM-dd HH:mm:ss");
val[1] = this.datePipe.transform(val[1], "yyyy-MM-dd HH:mm:ss");
break;
Expand Down

0 comments on commit 7bf44e9

Please sign in to comment.