parent
c583d3054c
commit
d639c584fb
@ -0,0 +1,29 @@
|
||||
package au.com.royalpay.payment.manage.logview.web;
|
||||
|
||||
import au.com.royalpay.payment.manage.logview.beans.WechatMsgQueryBean;
|
||||
import au.com.royalpay.payment.manage.logview.core.WechatMsgRepository;
|
||||
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
||||
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* Created by Tayl0r on 2017/5/3.
|
||||
*/
|
||||
@RestController
|
||||
@ManagerMapping(value = "/sys_logs/config/operation", method = RequestMethod.GET, role = ManagerRole.ADMIN)
|
||||
public class ConfigOperationController {
|
||||
@Resource
|
||||
private WechatMsgRepository wechatMsgRepository;
|
||||
|
||||
@RequestMapping
|
||||
public JSONObject listWechatMsgs(WechatMsgQueryBean wechatMsgQueryBean){
|
||||
return wechatMsgRepository.listWechatMsgs(wechatMsgQueryBean);
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="form-inline">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="moniker-input">Client Moniker</label>
|
||||
<input class="form-control" size="5" id="moniker-input" ng-model="params.client_moniker" ng-enter="listClientLoginLogs(1)">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="username-input">Username</label>
|
||||
<input class="form-control" ng-model="params.username" id="username-input">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="date-from-input">From</label>
|
||||
<input class="form-control" id="date-from-input" ng-model="params.begin"
|
||||
uib-datepicker-popup size="10" placeholder="From"
|
||||
is-open="dateBegin.open" ng-click="dateBegin.open=true"
|
||||
datepicker-options="{maxDate:params.end||today}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="date-to-input">To</label>
|
||||
<input class="form-control" id="date-to-input" ng-model="params.end"
|
||||
uib-datepicker-popup size="10" placeholder="To"
|
||||
is-open="dateEnd.open" ng-click="dateEnd.open=true"
|
||||
datepicker-options="{minDate:params.begin,maxDate:today}">
|
||||
</div>
|
||||
<button class="btn btn-success" type="button" ng-click="listClientLoginLogs(1)">
|
||||
<i class="fa fa-search"></i> Search
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Client</th>
|
||||
<th>User</th>
|
||||
<th>IP</th>
|
||||
<th>Method</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="log in logs">
|
||||
<td ng-bind="log.login_time"></td>
|
||||
<td ng-bind="log.short_name+'('+log.client_moniker+')'"></td>
|
||||
<td ng-bind="log.display_name"></td>
|
||||
<td ng-bind="log.ip"></td>
|
||||
<td ng-bind="log.method"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer" ng-if="pagination.totalPages>1">
|
||||
<uib-pagination class="pagination"
|
||||
total-items="pagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="pagination.page"
|
||||
items-per-page="pagination.limit"
|
||||
max-size="10"
|
||||
ng-change="listClientLoginLogs()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">Total Records:{{pagination.totalCount}};Total Pages:{{pagination.totalPages}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue