parent
51fdf932c1
commit
33db182dfb
@ -1,41 +0,0 @@
|
||||
package au.com.royalpay.payment.manage.risk.bean;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
public class QueryRIskRecord {
|
||||
|
||||
private String status;
|
||||
private String client_moniker;
|
||||
private String record_id;
|
||||
|
||||
public JSONObject toParams(){
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("status",this.status);
|
||||
params.put("client_moniker",this.client_moniker);
|
||||
params.put("record_id",this.record_id);
|
||||
return params;
|
||||
}
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRecord_id() {
|
||||
return record_id;
|
||||
}
|
||||
|
||||
public void setRecord_id(String record_id) {
|
||||
this.record_id = record_id;
|
||||
}
|
||||
|
||||
public String getClient_moniker() {
|
||||
return client_moniker;
|
||||
}
|
||||
|
||||
public void setClient_moniker(String client_moniker) {
|
||||
this.client_moniker = client_moniker;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package au.com.royalpay.payment.manage.risk.bean;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
import java.text.ParseException;
|
||||
|
||||
public class QueryRiskOrder {
|
||||
|
||||
private String record_id;
|
||||
private String c_end_time;
|
||||
private int client_id;
|
||||
private int limit = 20;
|
||||
private int page;
|
||||
|
||||
public JSONObject toParams() {
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("record_id", this.record_id);
|
||||
params.put("client_id", this.client_id);
|
||||
try {
|
||||
if (c_end_time != null) {
|
||||
params.put("c_end_time", DateUtils.parseDate(this.c_end_time, new String[] { "yyyy-MM-dd HH:mm:ss" }));
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
public String getRecord_id() {
|
||||
return record_id;
|
||||
}
|
||||
|
||||
public void setRecord_id(String record_id) {
|
||||
this.record_id = record_id;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public String getC_end_time() {
|
||||
return c_end_time;
|
||||
}
|
||||
|
||||
public void setC_end_time(String c_end_time) {
|
||||
this.c_end_time = c_end_time;
|
||||
}
|
||||
|
||||
public int getClient_id() {
|
||||
return client_id;
|
||||
}
|
||||
|
||||
public void setClient_id(int client_id) {
|
||||
this.client_id = client_id;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package au.com.royalpay.payment.manage.risk.bean;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
import java.text.ParseException;
|
||||
|
||||
public class QueryRiskRecord {
|
||||
|
||||
private String status;
|
||||
private String client_moniker;
|
||||
private String record_id;
|
||||
private String c_end_time;
|
||||
private int client_id;
|
||||
|
||||
private int limit = 20;
|
||||
private int page;
|
||||
|
||||
public JSONObject toParams() {
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("status", this.status);
|
||||
params.put("client_moniker", this.client_moniker);
|
||||
params.put("record_id", this.record_id);
|
||||
params.put("client_id", this.client_id);
|
||||
try {
|
||||
if (c_end_time != null) {
|
||||
params.put("c_end_time", DateUtils.parseDate(this.c_end_time, new String[] { "yyyy-MM-dd HH:mm:ss" }));
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
}
|
||||
return params;
|
||||
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getRecord_id() {
|
||||
return record_id;
|
||||
}
|
||||
|
||||
public void setRecord_id(String record_id) {
|
||||
this.record_id = record_id;
|
||||
}
|
||||
|
||||
public String getClient_moniker() {
|
||||
return client_moniker;
|
||||
}
|
||||
|
||||
public void setClient_moniker(String client_moniker) {
|
||||
this.client_moniker = client_moniker;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public String getC_end_time() {
|
||||
return c_end_time;
|
||||
}
|
||||
|
||||
public void setC_end_time(String c_end_time) {
|
||||
this.c_end_time = c_end_time;
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="au.com.royalpay.payment.manage.mappers.risk.RiskTransactionLogMapper">
|
||||
<select id="query" resultType="com.alibaba.fastjson.JSONObject">
|
||||
SELECT *
|
||||
FROM risk_transaction_log
|
||||
<where>
|
||||
<if test="record_id!=null">
|
||||
and record_id = #{record_id}
|
||||
</if>
|
||||
<if test="client_id !=0">
|
||||
and client_id = #{client_id}
|
||||
</if>
|
||||
<if test="c_end_time != null">
|
||||
and create_time < #{c_end_time}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
@ -1,84 +1,159 @@
|
||||
define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], function (angular) {
|
||||
'use strict';
|
||||
|
||||
var riskType = [
|
||||
{code: 1, label: 'test1'},
|
||||
{code: 2, label: 'test2'},
|
||||
];
|
||||
|
||||
var app = angular.module('RiskManagement', ['ui.bootstrap', 'ui.router', 'frapontillo.bootstrap-switch', 'ngFileUpload']);
|
||||
app.config(['$stateProvider', function ($stateProvider) {
|
||||
$stateProvider.state('analysis_monitoring.risk_manager', {
|
||||
url: '/risk/manage',
|
||||
templateUrl: '/static/risk/templates/risk.html',
|
||||
controller: 'RiskManageCtrl',
|
||||
}).state('analysis_monitoring.risk_detail', {
|
||||
url: '/detail',
|
||||
templateUrl: '/static/risk/templates/risk_detail.html',
|
||||
controller: 'RiskDetailCtrl',
|
||||
params : {
|
||||
param:null
|
||||
}).state('analysis_monitoring.risk_orders', {
|
||||
url: '/risk/{record_id}/orders',
|
||||
templateUrl: '/static/risk/templates/risk_orders.html',
|
||||
controller: 'RiskOrderCtrl',
|
||||
resolve:{
|
||||
record:['$http','$stateParams', function ($http,$stateParams) {
|
||||
return $http.get('/sys/risk/records/'+$stateParams.record_id).then(function (res) {
|
||||
return res.data;
|
||||
});
|
||||
}]
|
||||
}
|
||||
}).state('vipcustomers.detail', {
|
||||
url: '/{vip_code}/detail',
|
||||
templateUrl: '/static/payment/vipcustomer/templates/vipcustomer_detail.html',
|
||||
controller: 'vipCustomerDetailCtrl',
|
||||
}).state('vipcustomers.edit', {
|
||||
url: '/{vip_code}/edit',
|
||||
templateUrl: '/static/payment/vipcustomer/templates/vipcustomer_edit.html',
|
||||
controller: 'vipCustomerEditCtrl',
|
||||
resolve: {
|
||||
vipcustomer: ['$http', '$stateParams', function ($http, $stateParams) {
|
||||
return $http.get('/partner/vip/' + $stateParams.vip_code);
|
||||
}).state('analysis_monitoring.risk_history', {
|
||||
url: '/risk/{record_id}/history',
|
||||
templateUrl: '/static/risk/templates/risk_history.html',
|
||||
controller: 'RecordHistoryCtrl',
|
||||
resolve:{
|
||||
record:['$http','$stateParams', function ($http,$stateParams) {
|
||||
return $http.get('/sys/risk/records/'+$stateParams.record_id).then(function (res) {
|
||||
return res.data;
|
||||
});
|
||||
}]
|
||||
}
|
||||
})
|
||||
});
|
||||
}]);
|
||||
app.controller('RiskManageCtrl', ['$scope', '$http','$state', function ($scope, $http,$state){
|
||||
app.controller('RiskManageCtrl', ['$scope', '$http', function ($scope, $http){
|
||||
$scope.params = {};
|
||||
$scope.loadRecords = function () {
|
||||
$scope.pagination = {};
|
||||
$scope.loadRecords = function (page) {
|
||||
var params = angular.copy($scope.params);
|
||||
params.page = page || $scope.pagination.page || 1;
|
||||
$http.get('/sys/risk/records', {params: params}).then(function (resp) {
|
||||
$scope.records = resp.data;
|
||||
$scope.records = resp.data.data;
|
||||
$scope.pagination = resp.data.pagination;
|
||||
});
|
||||
};
|
||||
$scope.loadRecords(1);
|
||||
$scope.edit = function () {
|
||||
$uibModal.open({
|
||||
templateUrl: '/static/payment/partner/templates/partner_new_rate.html',
|
||||
controller: 'RiskRecordEditCtrl',
|
||||
resolve: {
|
||||
rate: function () {
|
||||
return {rate_name: name, clean_days: 3};
|
||||
},
|
||||
sys_common_rate: function () {
|
||||
return $http.get('/sys/partners/sys_rates');
|
||||
},
|
||||
clientMoniker: function () {
|
||||
return $scope.partner.client_moniker;
|
||||
}
|
||||
}
|
||||
}).result.then(function () {
|
||||
$scope.getRates();
|
||||
});
|
||||
};
|
||||
$scope.jumpDetail = function (record_id,client_moniker) {
|
||||
var param = {};
|
||||
param.client_moniker = client_moniker;
|
||||
param.record_id = record_id;
|
||||
$state.go('analysis_monitoring.risk_detail',{param:param});
|
||||
}
|
||||
}]);
|
||||
app.controller('RiskDetailCtrl', ['$scope', '$http', '$stateParams','$uibModal', function ($scope, $http,$stateParams,$uibModal) {
|
||||
$scope.client_moniker = $stateParams.param.client_moniker;
|
||||
$scope.params = {};
|
||||
$scope.loadOrders = function () {
|
||||
|
||||
$http.get('/sys/risk/orders/' + $stateParams.param.record_id).then(function (resp) {
|
||||
$scope.orders = resp.data;
|
||||
app.controller('RiskOrderCtrl', ['$scope', '$http', 'record', function ($scope, $http,record) {
|
||||
$scope.params = {record_id: record.id};
|
||||
$scope.historyParams = {client_id:record.client_id};
|
||||
$scope.pagination = {};
|
||||
$scope.historyPagination = {};
|
||||
$scope.record = record;
|
||||
$scope.loadOrders = function (page) {
|
||||
var params = angular.copy($scope.params);
|
||||
params.page = page || $scope.pagination.page || 1;
|
||||
$http.get('/sys/risk/orders',{params: params}).then(function (resp) {
|
||||
$scope.orders = resp.data.data;
|
||||
$scope.pagination = resp.data.pagination;
|
||||
$scope.historyParams.c_end_time = $scope.orders.pop().create_time;
|
||||
$scope.loadHistoryOrders(1);
|
||||
});
|
||||
};
|
||||
$scope.loadOrders(1);
|
||||
|
||||
|
||||
$scope.loadHistoryOrders = function (page) {
|
||||
var historyParams = angular.copy($scope.historyParams);
|
||||
historyParams.page = page || $scope.historyPagination.page || 1;
|
||||
$http.get('/sys/risk/orders',{params: historyParams}).then(function (resp) {
|
||||
$scope.historyOrders = resp.data.data;
|
||||
$scope.historyPagination = resp.data.pagination;
|
||||
});
|
||||
};
|
||||
}]);
|
||||
|
||||
app.controller('RecordHistoryCtrl', ['$scope', '$http','$uibModal', 'commonDialog','record', function ($scope, $http,$uibModal,commonDialog,record) {
|
||||
$scope.record = record;
|
||||
$scope.pagination = {};
|
||||
$scope.params = {client_id:record.client_id,c_end_time:record.create_time};
|
||||
$scope.listHistory = function (page) {
|
||||
var params = angular.copy($scope.params);
|
||||
params.page = page || $scope.pagination.page || 1;
|
||||
$http.get('/sys/risk/records',{params:params}).then(function (res) {
|
||||
$scope.histories = res.data.data;
|
||||
$scope.pagination = res.data.pagination;
|
||||
})
|
||||
};
|
||||
$scope.listHistory(1);
|
||||
$scope.edit = function () {
|
||||
$uibModal.open({
|
||||
templateUrl: '/static/risk/templates/risk_edit.html',
|
||||
controller: 'RiskRecordHandleCtrl',
|
||||
resolve:{record_id:function () {
|
||||
return record.id;
|
||||
}}
|
||||
}).result.then(function () {
|
||||
commonDialog.alert({
|
||||
title: 'Success',
|
||||
type: 'success'
|
||||
});
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
$scope.noop = function () {
|
||||
commonDialog.confirm({
|
||||
title: 'Confirm',
|
||||
content: '确定放弃这次预警'
|
||||
}).then(function () {
|
||||
$http.put('/sys/risk/records/'+ record.id+'/noop', $scope.params).then(function () {
|
||||
}).then(function (resp) {
|
||||
commonDialog.alert({
|
||||
title: 'Error',
|
||||
content: resp.data.message,
|
||||
type: 'Error'
|
||||
});
|
||||
})
|
||||
})
|
||||
}
|
||||
}]);
|
||||
|
||||
app.controller('RiskRecordEditCtrl', ['$scope', '$http', function ($scope, $http) {
|
||||
app.controller('RiskRecordHandleCtrl', ['$scope', '$http','record_id','commonDialog', function ($scope, $http,record_id,commonDialog) {
|
||||
$scope.params= {};
|
||||
$scope.handle = function () {
|
||||
$http.put('/sys/risk/records/'+ record_id+'/deal', $scope.params).then(function () {
|
||||
$scope.$close();
|
||||
}).then(function (resp) {
|
||||
commonDialog.alert({
|
||||
title: 'Error',
|
||||
content: resp.data.message,
|
||||
type: 'Error'
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
}]);
|
||||
|
||||
app.filter('risk_type', function (typeString) {
|
||||
var sArr = typeString.split(",");
|
||||
var result = "";
|
||||
angular.forEach(sArr, function (s) {
|
||||
angular.forEach(riskType,function (type) {
|
||||
if (type==s){
|
||||
result+=type;
|
||||
result+=",";
|
||||
}
|
||||
})
|
||||
});
|
||||
result = result.substr(0,result.length-2);
|
||||
return result;
|
||||
});
|
||||
return app;
|
||||
});
|
@ -1,170 +0,0 @@
|
||||
<div class="modal-header">
|
||||
<h4>New Client Rate</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<form class="form-horizontal" novalidate name="rate_form">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4">Clean Days</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<select class="form-control" ng-model="rate.clean_days" id="citySelect" ng-change="changeDays()">
|
||||
<option value="1">T+1</option>
|
||||
<option value="2">T+2</option>
|
||||
<option value="3">T+3</option>
|
||||
</select>
|
||||
<div>{{rateConfig}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.wechat_rate_value.$invalid && rate_form.wechat_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="wechat_rate_value_input">Wechat Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="wechat_rate_value" stringToNumber2 class="form-control" ng-model="rate.wechat_rate_value"
|
||||
min="0.6" max="2.2" step="0.1" id="wechat_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.wechat_rate_value.$error" ng-if="rate_form.wechat_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 2.2%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.alipay_rate_value.$invalid && rate_form.alipay_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="alipay_rate_value_input">Alipay Rate Value(Retail)</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="alipay_rate_value" stringToNumber2 class="form-control" ng-model="rate.alipay_rate_value"
|
||||
min="0.6" max="2.2" step="0.1" id="alipay_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.alipay_rate_value.$error" ng-if="rate_form.alipay_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 2.2%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.alipayonline_rate_value.$invalid && rate_form.alipayonline_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="alipayonline_rate_value_input">Alipay Rate Value(Online)</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="alipayonline_rate_value" stringToNumber2 class="form-control" ng-model="rate.alipayonline_rate_value"
|
||||
min="0.6" max="2.2" step="0.1" id="alipayonline_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.alipayonline_rate_value.$error" ng-if="rate_form.alipayonline_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 2.2%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.bestpay_rate_value.$invalid && rate_form.bestpay_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="bestpay_rate_value_input">Bestpay Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="bestpay_rate_value" stringToNumber2 class="form-control" ng-model="rate.bestpay_rate_value"
|
||||
min="0.6" max="2.2" step="0.1" id="bestpay_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.bestpay_rate_value.$error" ng-if="rate_form.bestpay_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 2.2%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.jd_rate_value.$invalid && rate_form.jd_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="jd_rate_value_input">JD Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="jd_rate_value" stringToNumber2 class="form-control" ng-model="rate.jd_rate_value"
|
||||
min="0.6" max="2.2" step="0.1" id="jd_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.bestpay_rate_value.$error" ng-if="rate_form.jd_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 2.2%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="active_time_input">Active Date</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.active_time" id="active_time_input"
|
||||
uib-datepicker-popup size="10" placeholder="Active Date"
|
||||
is-open="activeDate.open" ng-click="activeDate.open=true"
|
||||
datepicker-options="{maxDate:rate.expiry_time}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="expire_time_input">Expire Date</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.expiry_time" id="expire_time_input"
|
||||
uib-datepicker-popup size="10" placeholder="Expire Date"
|
||||
is-open="expireDate.open" ng-click="expireDate.open=true"
|
||||
datepicker-options="{minDate:rate.active_time}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="remark_text">Remark</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.remark" id="remark_text" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-success" type="button" ng-click="saveRate(rate_form)" ng-disabled="ctrl.sending">Submit</button>
|
||||
<button class="btn btn-danger" type="button" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
@ -1,35 +0,0 @@
|
||||
<div ui-view>
|
||||
<section class="content-header">
|
||||
<h1>Risk Manager</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><i class="fa fa-gift"></i> Risk</li>
|
||||
<li class="fa fa-gift">Risk Manager</li>
|
||||
<li class="active">Risk records</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Records Orders(Partner Code:{{client_moniker}})</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order Id</th>
|
||||
<th>Amount</th>
|
||||
<th>Channel</th>
|
||||
<th>Risk Types</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="order in orders">
|
||||
<td>{{order.order_id}}</td>
|
||||
<td>{{order.amount}}</td>
|
||||
<td>{{order.channel}}</td>
|
||||
<td>{{order.risk_types}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
@ -0,0 +1,31 @@
|
||||
<section class="content-header">
|
||||
<h1>Phone Top Up</h1>
|
||||
</section>
|
||||
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box-solid">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header">
|
||||
<form role="form" style="margin:0px auto;width: 50%">
|
||||
<div class="form-group">
|
||||
<label>Limit Amount</label>
|
||||
<input ng-model="params.limitAmount" name="code" class="form-control" type="text"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<input type="checkbox" ng-model="params.disableMerchat" class="ng-pristine ng-untouched ng-valid">
|
||||
Disable Merchant
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-block" ng-click="handle()">commit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,115 @@
|
||||
<div ui-view>
|
||||
<section class="content-header">
|
||||
<h1>Risk Manager</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><i class="fa fa-gift"></i> Risk</li>
|
||||
<li class="fa fa-gift">Risk Manager</li>
|
||||
<li class="active">Risk records</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ui-sref-active-eq="active">
|
||||
<a ui-sref="analysis_monitoring.risk_orders({'record_id':record.id})">Record Orders</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="analysis_monitoring.risk_history({'record_id':record.id})">Record history</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Record History</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client Moniker</th>
|
||||
<th>Create Time</th>
|
||||
<th>Waring Time</th>
|
||||
<th>Risk Types</th>
|
||||
<th>Status</th>
|
||||
<th>Risk Counts</th>
|
||||
<th>Operation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{record.client_moniker}}</td>
|
||||
<td>{{record.create_time}}</td>
|
||||
<td>{{record.expiry_time}}</td>
|
||||
<td>{{record.status}}</td>
|
||||
<td>{{record.risk_types|risk_type}}</td>
|
||||
<td>{{record.risk_counts}}</td>
|
||||
<td>
|
||||
<a class="text-primary" role="button" title="Detail" ng-if="record.status==0" ng-click="edit()">
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
<a class="text-primary" role="button" title="Detail" ng-if="record.status==0" ng-click="noop()">
|
||||
<i class="fa fa-arrows"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<uib-pagination ng-if="histories.length"
|
||||
class="pagination"
|
||||
total-items="pagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="pagination.page"
|
||||
items-per-page="pagination.limit"
|
||||
max-size="10"
|
||||
ng-change="listHistory()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Latest Record</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client Moniker</th>
|
||||
<th>Create Time</th>
|
||||
<th>Waring Time</th>
|
||||
<th>Risk Types</th>
|
||||
<th>Status</th>
|
||||
<th>Risk Counts</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="record in histories">
|
||||
<td>{{record.client_moniker}}</td>
|
||||
<td>{{record.create_time}}</td>
|
||||
<td>{{record.expiry_time}}</td>
|
||||
<td>{{record.status}}</td>
|
||||
<td>{{record.risk_types|risk_type}}</td>
|
||||
<td>{{record.risk_counts}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<uib-pagination ng-if="histories.length"
|
||||
class="pagination"
|
||||
total-items="pagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="pagination.page"
|
||||
items-per-page="pagination.limit"
|
||||
max-size="10"
|
||||
ng-change="listHistory()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
@ -0,0 +1,96 @@
|
||||
<div ui-view>
|
||||
<section class="content-header">
|
||||
<h1>Risk Manager</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><i class="fa fa-gift"></i> Risk</li>
|
||||
<li class="fa fa-gift">Risk Manager</li>
|
||||
<li class="active">Risk records</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ui-sref-active-eq="active">
|
||||
<a ui-sref="analysis_monitoring.risk_orders({'record_id':record.id})">Record Orders</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="analysis_monitoring.risk_history({'record_id':record.id})">Record history</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Reference Orders</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order Id</th>
|
||||
<th>Amount</th>
|
||||
<th>Channel</th>
|
||||
<th>Risk Types</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="order in orders">
|
||||
<td>{{order.order_id}}</td>
|
||||
<td>{{order.amount}}</td>
|
||||
<td>{{order.channel}}</td>
|
||||
<td>{{order.risk_types|risk_type}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<uib-pagination ng-if="orders.length"
|
||||
class="pagination"
|
||||
total-items="pagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="pagination.page"
|
||||
items-per-page="pagination.limit"
|
||||
max-size="10"
|
||||
ng-change="loadOrders()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Waring Orders History</div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Order Id</th>
|
||||
<th>Amount</th>
|
||||
<th>Channel</th>
|
||||
<th>Risk Types</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="order in historyOrders">
|
||||
<td>{{order.order_id}}</td>
|
||||
<td>{{order.amount}}</td>
|
||||
<td>{{order.channel}}</td>
|
||||
<td>{{order.risk_types|risk_type}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<uib-pagination ng-if="historyOrders.length"
|
||||
class="pagination"
|
||||
total-items="historyPagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="historyPagination.page"
|
||||
items-per-page="historyPagination.limit"
|
||||
max-size="10"
|
||||
ng-change="loadHistorysOrders()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
Loading…
Reference in new issue