操作日志、消息警示提醒

This commit is contained in:
liweijin
2018-12-14 17:57:01 +08:00
parent 05cb9674e7
commit 29a07c4950
7 changed files with 141 additions and 53 deletions
@@ -7,11 +7,19 @@
<nz-form-item >
<nz-form-label class="left">关键词</nz-form-label>
<nz-form-control nzSpan="17">
<input nz-input [(ngModel)]='search.keyword' placeholder="请输入角色名称">
<input nz-input [(ngModel)]='search.keyword' placeholder="请输入关键词">
</nz-form-control>
</nz-form-item>
</div>
<div nz-col nzSpan="8">
<div nz-col nzSpan="9">
<nz-form-item >
<nz-form-label class="left">时间</nz-form-label>
<nz-form-control nzSpan="20">
<nz-range-picker [(ngModel)]="dateRange" (ngModelChange)="onChange($event)" nzShowTime></nz-range-picker>
</nz-form-control>
</nz-form-item>
</div>
<div nz-col nzSpan="6">
<nz-form-item >
<nz-form-control nzSpan="24">
<button class="mr10" nz-button nzType="primary" (click)="queryTable()"><i nz-icon type="search"></i>查询</button>
@@ -19,9 +27,7 @@
</nz-form-control>
</nz-form-item>
</div>
</div>
<div class="table-operation-box">
<button (click)="addModify(1)" nz-button nzType="primary"><i nz-icon type="plus" theme="outline"></i>新增</button>
</div>
</div>
<app-request-status *ngIf='statusParamsTable.status!=4' [statusParams]='statusParamsTable'></app-request-status>
@@ -29,24 +35,20 @@
<nz-table [nzShowPagination]='false' #dataSet [nzData]="tableData">
<thead>
<tr>
<th>时间</th>
<th></th>
<th>账号</th>
<th>日志类别</th>
<th>操作类别</th>
<th>描述</th>
<th>登录ip</th>
<th>序号</th>
<th>用户</th>
<th>模块</th>
<th>操作内容</th>
<th>操作时间</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of dataSet.data">
<td>{{item.log_datetime| date:'yyyy-MM-dd HH:mm:ss'}}</td>
<td>{{item.real_name}}</td>
<tr *ngFor="let item of dataSet.data;let i=index">
<td>{{i+1}}</td>
<td>{{item.user_name}}</td>
<td>{{logType[item.log_type]}}</td>
<td>{{item.opt_type}}</td>
<td>{{item.model_name}}</td>
<td>{{item.summary}}</td>
<td>{{item.login_ip}}</td>
<td>{{item.log_datetime| date:'yyyy-MM-dd HH:mm:ss'}}</td>
</tr>
</tbody>
</nz-table>