Skip to content

Commit

Permalink
Merge pull request #500 from BennieMeng/feature/kuber-node
Browse files Browse the repository at this point in the history
frontend: fix reportform/deploy time warning
  • Loading branch information
BennieMeng authored Nov 1, 2019
2 parents c8df62e + 96d7766 commit b63e32c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
<div class="clr-row flex-items-xs-between flex-items-xs-top" style="padding-left: 15px; padding-right: 15px;">
<h2 class="header-title">上线次数统计</h2>
</div>
<div class="clr-row flex-items-xs-between" style="height:32px;margin-left: 5px">
<div class="option-left">
{{'TITLE.START_TIME' | translate}}:<input type="date" id="startTime" name="startTime" [(ngModel)]="startTime" clrDate>
{{'TITLE.FINISH_TIME' | translate}}:<input type="date" id="endTime" name="endTime" [(ngModel)]="endTime" clrDate>
<button class="btn" (click)="search()">查询</button>
</div>
<div class="clr-row flex-items-xs-between" style="margin-left: 5px">
<label for="startTime" class="time-label">{{'TITLE.START_TIME' | translate}}:</label><input type="date" id="startTime" name="startTime" [(ngModel)]="startTime" clrDate>
<label for="endTime" class="time-label">{{'TITLE.FINISH_TIME' | translate}}:</label><input type="date" id="endTime" name="endTime" [(ngModel)]="endTime" clrDate>
<button class="btn" (click)="search()">查询</button>
</div>
<clr-datagrid (clrDgRefresh)="refresh($event)">
<clr-dg-column class="col-id">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.time-label {
display: flex;
align-items: flex-end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as moment from 'moment';

@Component({
selector: 'wayne-deploy',
styleUrls: ['./deploy.component.scss'],
templateUrl: './deploy.component.html'
})
export class DeployComponent implements OnInit {
Expand All @@ -32,7 +33,8 @@ export class DeployComponent implements OnInit {

refresh(state?: ClrDatagridStateInterface) {
this.publishService.getDeployStatistics(
moment(this.startTime).format('YYYY-MM-DDTHH:mm:SS') + 'Z', moment(this.endTime).format('YYYY-MM-DDTHH:mm:SS') + 'Z').
moment(this.startTime, 'MM/DD/YYYY', true).format('YYYY-MM-DDTHH:mm:SS') + 'Z',
moment(this.endTime, 'MM/DD/YYYY', true).format('YYYY-MM-DDTHH:mm:SS') + 'Z').
subscribe(
resp => {
this.datas = resp.data;
Expand Down

0 comments on commit b63e32c

Please sign in to comment.