Merge branch 'develop'

# Conflicts:
#	pom.xml
master
duLingLing 7 years ago
commit b4c0724b3d

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.2.1</version> <version>1.2.3</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -198,7 +198,7 @@ public class BDAnalysisServiceImpl implements BDAnalysisService {
List<JSONObject> bdSaleList = bdAnalysisMapper.getOneDayBDSaleList(params); List<JSONObject> bdSaleList = bdAnalysisMapper.getOneDayBDSaleList(params);
if (bdSaleList.size() != 0) { if (bdSaleList.size() != 0) {
for (JSONObject item : bdSaleList) { for (JSONObject item : bdSaleList) {
JSONObject existBDSalesReport = bdSalesReportMapper.findByBDIdAndLogDate(item.getString("bd_id"),beginTime,0); JSONObject existBDSalesReport = bdSalesReportMapper.findByBDIdAndLogDate(item.getString("org_id"),item.getString("bd_id"),beginTime,0);
if(existBDSalesReport==null){ if(existBDSalesReport==null){
JSONObject object = new JSONObject(item); JSONObject object = new JSONObject(item);
object.put("log_id", UUID.randomUUID().toString()); object.put("log_id", UUID.randomUUID().toString());
@ -216,7 +216,7 @@ public class BDAnalysisServiceImpl implements BDAnalysisService {
List<JSONObject> orgSaleList= transactionAnalysisMapper.getOneDayOrgMerchantSaleList(params); List<JSONObject> orgSaleList= transactionAnalysisMapper.getOneDayOrgMerchantSaleList(params);
if (orgSaleList.size() != 0) { if (orgSaleList.size() != 0) {
for (JSONObject item : orgSaleList) { for (JSONObject item : orgSaleList) {
JSONObject existOrgSalesReport = bdSalesReportMapper.findByBDIdAndLogDate(item.getString("bd_id"),beginTime,1); JSONObject existOrgSalesReport = bdSalesReportMapper.findByBDIdAndLogDate(item.getString("org_id"),item.getString("bd_id"),beginTime,1);
if(existOrgSalesReport==null){ if(existOrgSalesReport==null){
JSONObject object = new JSONObject(item); JSONObject object = new JSONObject(item);
object.put("log_id", UUID.randomUUID().toString()); object.put("log_id", UUID.randomUUID().toString());

@ -22,7 +22,7 @@ public interface StatisticsBDSalesReportMapper {
List<JSONObject> getPartnerAmountList(JSONObject params); List<JSONObject> getPartnerAmountList(JSONObject params);
JSONObject findByBDIdAndLogDate(@Param("bd_id") String bd_id, @Param("log_date")Date beginTime,@Param("isOrg") int isOrg); JSONObject findByBDIdAndLogDate(@Param("org_id") String org_id,@Param("bd_id") String bd_id, @Param("log_date")Date beginTime,@Param("isOrg") int isOrg);
@AutoSql(type = SqlType.UPDATE) @AutoSql(type = SqlType.UPDATE)
void update(JSONObject existBDSalesReport); void update(JSONObject existBDSalesReport);

@ -792,6 +792,7 @@ public class RiskBusinessServiceImpl implements RiskBusinessService, ManagerTodo
ctx.setVariable("order_type", event.getIntValue("order_type")); ctx.setVariable("order_type", event.getIntValue("order_type"));
ctx.setVariable("bdNamesStr", bdNamesStr); ctx.setVariable("bdNamesStr", bdNamesStr);
ctx.setVariable("reply_date", reply_date); ctx.setVariable("reply_date", reply_date);
ctx.setVariable("is_resend",new Date().compareTo(event.getDate("reply_email_date")) < 0);
ctx.setVariable("reply_date_english", reply_date_english); ctx.setVariable("reply_date_english", reply_date_english);
ctx.setVariable("client", client); ctx.setVariable("client", client);
ctx.setVariable("uploadUrl", uploadUrl); ctx.setVariable("uploadUrl", uploadUrl);

@ -1044,10 +1044,10 @@
AND org.org_id = #{org_id} AND org.org_id = #{org_id}
</if> </if>
<if test="begin != null"> <if test="begin != null">
AND trans.create_time &gt;= #{begin} AND trans.transaction_time &gt;= #{begin}
</if> </if>
<if test="end != null"> <if test="end != null">
AND trans.create_time &lt; #{end} AND trans.transaction_time &lt; #{end}
</if> </if>

@ -79,7 +79,10 @@
create_time, create_time,
clearing_amount clearing_amount
FROM statistics_bd_sales FROM statistics_bd_sales
WHERE bd_id = #{bd_id} AND log_date = #{log_date} AND isOrg = #{isOrg} WHERE org_id = #{org_id}
AND log_date = #{log_date}
AND isOrg = #{isOrg}
<if test="bd_id != null"> AND bd_id = #{bd_id}</if>
</select> </select>
</mapper> </mapper>

@ -1,7 +1,13 @@
<html xmlns:th="http://www.thymeleaf.org" lang="zh"> <html xmlns:th="http://www.thymeleaf.org" lang="zh">
<b>Dear RoyalPay Merchant/BD :</b> <b>Dear RoyalPay Merchant/BD :</b>
<p>您好,您的风控材料—<span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>】提交期限即将于<span style="background: #FCE824" th:text="${reply_date}"></span>到期,请及时提交风控材料。未能按时提交完整证明材料,支付渠道将被关停,请您务必配合调查。感谢。</p> <p>您好,您的风控材料—<span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>
<p>Your deadline for submission of risk materials for <span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>】 is about to expire by <span th:text="${reply_date_english}" style="background: #FCE824"></span>, please submit the risk materials in time.If you can not provide qualified materials on time, the payment channels would be suspended or restricted with amount limit. Please be sure to assist the investigation. Thanks.</p> <span th:text="${!client.is_resend}">已逾期</span>
<span th:text="${client.is_resend}">提交期限即将于<span style="background: #FCE824" th:text="${reply_date}"></span>到期</span>
,请及时提交风控材料。未能按时提交完整证明材料,支付渠道将被关停,请您务必配合调查。感谢。</p>
<p>Your deadline for submission of risk materials for <span th:text="${client.company_name}"></span><span th:text="${client.client_moniker}"></span>
<span th:text="${!client.is_resend}">has expired</span>
<span th:text="${client.is_resend}">is about to expire by <span th:text="${reply_date_english}" style="background: #FCE824"></span></span>
, please submit the risk materials in time.If you can not provide qualified materials on time, the payment channels would be suspended or restricted with amount limit. Please be sure to assist the investigation. Thanks.</p>
<h4>Best Regards</h4> <h4>Best Regards</h4>
<p> <p>
<img style="width: 120px;height: 120px" <img style="width: 120px;height: 120px"
@ -9,7 +15,7 @@
Contact Us<br> Contact Us<br>
Email:<br> Email:<br>
<a href="mailto:info@royalpay.com.au">info@royalpay.com.au</a> <br> <a href="mailto:info@royalpay.com.au">info@royalpay.com.au</a> <br>
Tel:<br> Tel:<br>与调查交易金额对应的购物小票/发票存根照片 要求:照片应清晰
1300 10 77 50<br> 1300 10 77 50<br>
<br> <br>
Service WeChat Account:<br> Service WeChat Account:<br>

@ -121,12 +121,12 @@ margin-bottom: 10%;"/>
ng-class="currentUser.org?(currentUser.org.banner_class||'fxplus'):'royalpay'"> ng-class="currentUser.org?(currentUser.org.banner_class||'fxplus'):'royalpay'">
<header class="main-header"> <header class="main-header">
<!--Logo--> <!--Logo-->
<a href="#" class="logo logo-yedian shine" ng-if="!currentUser.org"> <a href="#" class="logo logo-yedian shine" ng-if="!currentUser.org">
<!--mini logo for sidebar mini 50x50 pixels --> <!--mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><img src="static/images/r_white_logo.svg" <span class="logo-mini"><img src="static/images/r_white_logo.svg"
style="max-height: 35px;margin-left: 15%;"></span> style="max-height: 35px;margin-left: 15%;"></span>
<!--logo for regular state and mobile devices --> <!--logo for regular state and mobile devices -->
<span class="logo-lg"><img src="static/images/rp_white_logo.svg" <span class="logo-lg"><img src="static/images/rp_white_logo.svg"
style="max-height: 35px;"> style="max-height: 35px;">
<!--<b>RoyalPay</b>--> <!--<b>RoyalPay</b>-->
@ -141,7 +141,7 @@ margin-bottom: 10%;"/>
style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"><b style="max-height: 35px;margin-bottom: 8px;margin-right: 5px;"><b
ng-bind="currentUser.org.name"></b></span> ng-bind="currentUser.org.name"></b></span>
</a> </a>
<!--Header Navbar: style can be found in header.less --> <!--Header Navbar: style can be found in header.less -->
<!--顶部导航栏--> <!--顶部导航栏-->
<nav class="navbar navbar-static-top navbar-static-top-yedian" role="navigation"> <nav class="navbar navbar-static-top navbar-static-top-yedian" role="navigation">
@ -180,32 +180,32 @@ margin-bottom: 10%;"/>
<span class="label label-warning" ng-if="notifyCounts">{{notifyCounts}}</span> <span class="label label-warning" ng-if="notifyCounts">{{notifyCounts}}</span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<!-- <!--
<li class="header">System notifications,please resolve it!</li> <li class="header">System notifications,please resolve it!</li>
--> -->
<li> <li>
<!--inner menu: contains the actual data--> <!--inner menu: contains the actual data-->
<div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; max-height: 200px;"><ul class="menu" style="overflow: hidden; width: 100%;"> <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; max-height: 200px;"><ul class="menu" style="overflow: hidden; width: 100%;">
<li> <li>
<a ng-if="partner_application_new" ui-sref="partner_apply"> <a ng-if="partner_application_new" ui-sref="partner_apply">
<i class="fa fa-commenting"></i> <i class="fa fa-commenting"></i>
新的自主申请商户<span style="font-size:smaller;float:right;right: 0"></span> 新的自主申请商户<span style="font-size:smaller;float:right;right: 0"></span>
</a> </a>
</li> </li>
<li> <li>
<a ng-if="refundReviews && ('10000000000'|withRole)" ui-sref="refundReview"> <a ng-if="refundReviews && ('10000000000'|withRole)" ui-sref="refundReview">
<i class="fa fa-commenting"></i> <i class="fa fa-commenting"></i>
新的退款申请<span style="font-size:smaller;float:right;right: 0"></span> 新的退款申请<span style="font-size:smaller;float:right;right: 0"></span>
</a> </a>
</li> </li>
</ul><div class="slimScrollBar" style="background: rgb(0, 0, 0); width: 3px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 195.122px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div></div> </ul><div class="slimScrollBar" style="background: rgb(0, 0, 0); width: 3px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 195.122px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div></div>
</li> </li>
</ul> </ul>
</li> </li>
<!-- <!--
User Account: style can be found in dropdown.less User Account: style can be found in dropdown.less
--> -->
<li class="dropdown user user-menu" uib-dropdown> <li class="dropdown user user-menu" uib-dropdown>
<a href class="dropdown-toggle" uib-dropdown-toggle> <a href class="dropdown-toggle" uib-dropdown-toggle>
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" <img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}"
@ -214,7 +214,7 @@ margin-bottom: 10%;"/>
<span class="hidden-xs" ng-bind="currentUser.display_name"></span> <span class="hidden-xs" ng-bind="currentUser.display_name"></span>
</a> </a>
<ul class="dropdown-menu user-dropdown-menu" ng-cloak> <ul class="dropdown-menu user-dropdown-menu" ng-cloak>
<!--User image--> <!--User image-->
<li class="user-header user-header-yedian"> <li class="user-header user-header-yedian">
<img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" class="img-circle" <img ng-src="{{currentUser.org.logo||'static/images/r_white_logo.svg'}}" class="img-circle"
alt="User Image"> alt="User Image">
@ -233,7 +233,7 @@ margin-bottom: 10%;"/>
<i class="fa fa-tty" title="Service" <i class="fa fa-tty" title="Service"
ng-class="{'text-orange':!('10000'|withRole),'text-gray':('10000'|withRole)}"></i> ng-class="{'text-orange':!('10000'|withRole),'text-gray':('10000'|withRole)}"></i>
<!--<i class="fa fa-university" title="Account Manager"--> <!--<i class="fa fa-university" title="Account Manager"-->
<!--ng-class="{'text-orange':!('100000'|withRole),'text-gray':('100000'|withRole)}"></i>--> <!--ng-class="{'text-orange':!('100000'|withRole),'text-gray':('100000'|withRole)}"></i>-->
<i class="fa fa-line-chart" title="Director" <i class="fa fa-line-chart" title="Director"
ng-class="{'text-orange':!('1000000'|withRole),'text-gray':('1000000'|withRole)}"></i> ng-class="{'text-orange':!('1000000'|withRole),'text-gray':('1000000'|withRole)}"></i>
<i class="fa fa-map-o" title="Markting" <i class="fa fa-map-o" title="Markting"
@ -247,16 +247,16 @@ margin-bottom: 10%;"/>
<i class="fa fa-user-plus" title="Org Manager" <i class="fa fa-user-plus" title="Org Manager"
ng-class="{'text-orange':!('1000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i> ng-class="{'text-orange':!('1000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>
<i class="fa fa-ticket" title="Sales Manager" <i class="fa fa-ticket" title="Sales Manager"
ng-class="{'text-orange':!('10000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i> ng-class="{'text-orange':!('10000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>
<!--<i class="fa fa-save" title="Data content"--> <!--<i class="fa fa-save" title="Data content"-->
<!--ng-class="{'text-orange':!('100000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>--> <!--ng-class="{'text-orange':!('100000000000000'|withRole),'text-gray':('1000000000000'|withRole)}"></i>-->
</small> </small>
</p> </p>
</li> </li>
<!-- <!--
Menu Footer Menu Footer
--> -->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href class="btn btn-default btn-flat" ng-click="changePwd()">Change Password</a> <a href class="btn btn-default btn-flat" ng-click="changePwd()">Change Password</a>
@ -267,7 +267,7 @@ margin-bottom: 10%;"/>
</li> </li>
</ul> </ul>
</li> </li>
<!--Control Sidebar Toggle Button --> <!--Control Sidebar Toggle Button -->
</ul> </ul>
</div> </div>
</nav> </nav>
@ -664,11 +664,11 @@ margin-bottom: 10%;"/>
</li> </li>
<!-- <li ui-sref-active="active" ng-if="'citypartner'|withModule"> <!-- <li ui-sref-active="active" ng-if="'citypartner'|withModule">
<a ui-sref="citypartner_reg" ui-sref-opts="{reload:true}"> <a ui-sref="citypartner_reg" ui-sref-opts="{reload:true}">
<i class="fa fa-users"></i> <span>City Partners</span> <i class="fa fa-users"></i> <span>City Partners</span>
</a> </a>
</li>--> </li>-->
<!-- <!--
<li ui-sref-active="active" ng-if="('activities'|withModule) && (currentUser.org_id==1 || currentUser.org_id==null)"> <li ui-sref-active="active" ng-if="('activities'|withModule) && (currentUser.org_id==1 || currentUser.org_id==null)">
<a ui-sref="activity.detail({act_id:'3'})" ui-sref-opts="{reload:true}"> <a ui-sref="activity.detail({act_id:'3'})" ui-sref-opts="{reload:true}">
@ -690,21 +690,21 @@ margin-bottom: 10%;"/>
<i class="fa fa-gift"></i> <span>红包返现</span> <i class="fa fa-gift"></i> <span>红包返现</span>
</a> </a>
</li>--> </li>-->
<!-- <li ui-sref-active="active" ng-if="('funds'|withModule)"> <!-- <li ui-sref-active="active" ng-if="('funds'|withModule)">
<a ui-sref="funds"> <a ui-sref="funds">
<i class="fa fa-money"></i> <span>增值计划</span> <i class="fa fa-money"></i> <span>增值计划</span>
</a> </a>
</li>--> </li>-->
<!--<li class="header nav-header" ng-if="('1000000000000'|withRole)">机构|Agent</li>--> <!--<li class="header nav-header" ng-if="('1000000000000'|withRole)">机构|Agent</li>-->
<!--<li ui-sref-active="active" ng-if="('1000000000000'|withRole)">--> <!--<li ui-sref-active="active" ng-if="('1000000000000'|withRole)">-->
<!--<a ui-sref="analysis_agent" ui-sref-opts="{reload:true}">--> <!--<a ui-sref="analysis_agent" ui-sref-opts="{reload:true}">-->
<!--<i class="fa fa-hand-peace-o"></i> <span>机构数据分析|Agent Analysis</span>--> <!--<i class="fa fa-hand-peace-o"></i> <span>机构数据分析|Agent Analysis</span>-->
<!--</a>--> <!--</a>-->
<!--</li>--> <!--</li>-->
<!--<li ui-sref-active="active" ng-if="('clearing_org'|withModule) && currentUser.org_id>1">--> <!--<li ui-sref-active="active" ng-if="('clearing_org'|withModule) && currentUser.org_id>1">-->
<!--<a ui-sref="clearingLogsForOrg" ui-sref-opts="{reload:true}">--> <!--<a ui-sref="clearingLogsForOrg" ui-sref-opts="{reload:true}">-->
<!--<i class="fa fa-line-chart"></i> <span>清算记录|Settlement Logs</span>--> <!--<i class="fa fa-line-chart"></i> <span>清算记录|Settlement Logs</span>-->
<!--</a>--> <!--</a>-->
<!--</li>--> <!--</li>-->
<li class="menu-group" ng-if="roleNow=='sitemanager'"> <li class="menu-group" ng-if="roleNow=='sitemanager'">
<p role="button" ng-class="{'active': Content,'is-hide':hideSideBar}" ng-click="Content = !Content"> <p role="button" ng-class="{'active': Content,'is-hide':hideSideBar}" ng-click="Content = !Content">

@ -107,7 +107,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
templateUrl: '/static/analysis/templates/risk_business_bd.html', templateUrl: '/static/analysis/templates/risk_business_bd.html',
cache: false, cache: false,
controller: 'riskBusinessCtrl' controller: 'riskBusinessCtrl'
}).state('analysis_monitoring.riskEvent_detail', { }).state('analysis_monitoring.risk_business.riskEvent_detail', {
url: '/{risk_id}/detail', url: '/{risk_id}/detail',
templateUrl: '/static/analysis/templates/riskEvent_detail.html', templateUrl: '/static/analysis/templates/riskEvent_detail.html',
controller: 'riskEventDetailCtrl', controller: 'riskEventDetailCtrl',
@ -116,6 +116,10 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
return $http.get('/risk/business/events/' + $stateParams.risk_id); return $http.get('/risk/business/events/' + $stateParams.risk_id);
}] }]
} }
}).state('analysis_monitoring.risk_business.riskEvent_detail.audit_material', {
url: '/audit_material',
templateUrl: '/static/analysis/templates/audit_material.html',
controller: 'auditMaterialCtrl'
}).state('analysis_monitoring.riskEvent_detail_bd', { }).state('analysis_monitoring.riskEvent_detail_bd', {
url: '/{risk_id}/bd/detail', url: '/{risk_id}/bd/detail',
templateUrl: '/static/analysis/templates/riskEvent_detail_bd.html', templateUrl: '/static/analysis/templates/riskEvent_detail_bd.html',
@ -129,10 +133,6 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
url: '/new_riskEvent', url: '/new_riskEvent',
templateUrl: '/static/analysis/templates/new_riskEvent.html', templateUrl: '/static/analysis/templates/new_riskEvent.html',
controller: 'newRiskEventCtrl' controller: 'newRiskEventCtrl'
}).state('analysis_monitoring.riskEvent_detail.audit_material', {
url: '/audit_material',
templateUrl: '/static/analysis/templates/audit_material.html',
controller: 'auditMaterialCtrl'
}); });
}]); }]);
@ -153,6 +153,10 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
industries.push(industry.label); industries.push(industry.label);
}); });
industries.push('未知行业'); industries.push('未知行业');
$scope.$watch('params',function (newVal) {
console.log('params changed--->',newVal)
});
console.log('riskBusinessCtrl loaded')
// console.log(industries); // console.log(industries);
// 加载风险注册事件 // 加载风险注册事件
$scope.loadRiskEvents = function (page) { $scope.loadRiskEvents = function (page) {
@ -423,7 +427,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
content: 'Update riskEvent successfully', content: 'Update riskEvent successfully',
type: 'success' type: 'success'
}); });
$state.reload('analysis_monitoring.riskEvent_detail'); $state.reload('analysis_monitoring.risk_business.riskEvent_detail');
}, function (resp) { }, function (resp) {
commonDialog.alert({ commonDialog.alert({
title: 'Error', title: 'Error',
@ -451,7 +455,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
content: 'Are you sure?' content: 'Are you sure?'
}).then(function () { }).then(function () {
$http.put('/risk/business/channel/' + channel + '/permission/' + channelFlag, $scope.riskEvent).then(function () { $http.put('/risk/business/channel/' + channel + '/permission/' + channelFlag, $scope.riskEvent).then(function () {
$state.reload('analysis_monitoring.riskEvent_detail'); $state.reload('analysis_monitoring.risk_business.riskEvent_detail');
}, function (resp) { }, function (resp) {
commonDialog.alert({ commonDialog.alert({
title: 'Failed to change ' + channel + ' channel permission status', title: 'Failed to change ' + channel + ' channel permission status',
@ -470,7 +474,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
content: 'Are you sure?' content: 'Are you sure?'
}).then(function () { }).then(function () {
$http.put('/risk/business/partner/' + isValid, $scope.riskEvent).then(function () { $http.put('/risk/business/partner/' + isValid, $scope.riskEvent).then(function () {
$state.reload('analysis_monitoring.riskEvent_detail'); $state.reload('analysis_monitoring.risk_business.riskEvent_detail');
}, function (resp) { }, function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
}) })
@ -738,20 +742,20 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
$scope.increase = function ($index) { $scope.increase = function ($index) {
$scope.materials.splice($index + 1, 0, $scope.materials.splice($index + 1, 0,
{key: new Date().getTime(), value: ""}); // 用时间戳作为每个item的key {key: new Date().getTime(), value: ""}); // 用时间戳作为每个item的key
// 增加新的input后允许删除 // 增加新的input后允许删除
$scope.canMinus = true; $scope.canMinus = true;
}; };
$scope.decrease = function($index) { $scope.decrease = function($index) {
// 如果input大于1删除 // 如果input大于1删除
if ($scope.materials.length > 1) { if ($scope.materials.length > 1) {
$scope.materials.splice($index, 1); $scope.materials.splice($index, 1);
} }
// 如果回复数为1不允许删除 // 如果回复数为1不允许删除
if ($scope.materials.length == 1) { if ($scope.materials.length == 1) {
$scope.canMinus = false; $scope.canMinus = false;
} }
}; };
var array=new Array(); var array=new Array();
var validIndex = 0; var validIndex = 0;

@ -83,8 +83,8 @@
</form> </form>
</div> </div>
<div class="panel-footer"> <div class="panel-footer">
<a role="button" <a role="button" id="test-btn"
ui-sref="analysis_monitoring.risk_business" ui-sref="^.^"
class="btn btn-info">返回 class="btn btn-info">返回
</a> </a>

@ -18,10 +18,10 @@
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ui-sref-active-eq="active"> <li ui-sref-active-eq="active">
<a ui-sref="analysis_monitoring.riskEvent_detail" ui-sref-opts="{reload:true}">Risk Detail</a> <a ui-sref="analysis_monitoring.risk_business.riskEvent_detail" ui-sref-opts="{reload:true}">Risk Detail</a>
</li> </li>
<li ui-sref-active="active"> <li ui-sref-active="active">
<a ui-sref=".audit_material" ui-sref-opts="{reload:true}">Audit material</a> <a ui-sref=".audit_material">Audit material</a>
</li> </li>
<li> <li>
<div class="btn-group pull-right" role="group" aria-label="..." ng-if="('10000000000'|withRole) && (riskEvent.result_type==1 || riskEvent.result_type==4)"> <div class="btn-group pull-right" role="group" aria-label="..." ng-if="('10000000000'|withRole) && (riskEvent.result_type==1 || riskEvent.result_type==4)">
@ -40,7 +40,7 @@
<a role="button" <a role="button"
class="pull-right" class="pull-right"
ng-click="changeEditFlag(editFlag)" ng-click="changeEditFlag(editFlag)"
ng-if="('10000000000'|withRole)"> ng-if="('10000000000'|withRole)">
<i class="fa fa-edit"></i> Edit <i class="fa fa-edit"></i> Edit
</a> </a>
</div> </div>
@ -367,6 +367,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<p ng-if="tradeLogs.length != 0" style="text-align: center;margin: 5px 9px">共计<span>{{tradeLogs.length}}</span></p>
</div> </div>
</div> </div>
@ -464,11 +465,11 @@
</label> </label>
<div class="col-sm-8"> <div class="col-sm-8">
<textarea class="form-control" <textarea class="form-control"
ng-model="riskEventEdit.order_ids" ng-model="riskEventEdit.order_ids"
type="text" type="text"
name="order_ids" name="order_ids"
id="order-ids-input" id="order-ids-input"
required> required>
</textarea> </textarea>
<div ng-messages="riskEventForm.order_ids.$error" <div ng-messages="riskEventForm.order_ids.$error"
ng-if="riskEventForm.order_ids.$dirty"> ng-if="riskEventForm.order_ids.$dirty">
@ -607,17 +608,17 @@
<div class="col-sm-8"> <div class="col-sm-8">
<textarea class="form-control" <textarea class="form-control"
ng-model="riskEventEdit.channel_result" ng-model="riskEventEdit.channel_result"
type="text" type="text"
name="channel_result" name="channel_result"
id="channel-result-input"/> id="channel-result-input"/>
<!--<select class="form-control"--> <!--<select class="form-control"-->
<!--name="channel_result"--> <!--name="channel_result"-->
<!--ng-model="riskEventEdit.channel_result"--> <!--ng-model="riskEventEdit.channel_result"-->
<!--id="channel-result-input"--> <!--id="channel-result-input"-->
<!--ng-options="item for item in channelResults">--> <!--ng-options="item for item in channelResults">-->
<!--<option value="">Please Choose</option>--> <!--<option value="">Please Choose</option>-->
<!--</select>--> <!--</select>-->
</div> </div>
</div> </div>

@ -224,52 +224,52 @@
<div class="box-body no-padding table-responsive"> <div class="box-body no-padding table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Partner</th> <th>Partner</th>
<th>Order Type</th> <th>Order Type</th>
<th>Result Type</th> <th>Result Type</th>
<th>Sub Merchant ID</th> <th>Sub Merchant ID</th>
<th>Email Status</th> <th>Email Status</th>
<th>Description</th> <th>Description</th>
<th>Channel Result</th> <th>Channel Result</th>
<th>Risk Manager</th> <th>Risk Manager</th>
<th>Create Time</th> <th>Create Time</th>
<th>Operation</th> <th>Operation</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="riskEvent in riskEvents"> <tr ng-repeat="riskEvent in riskEvents">
<td> <td>
<a role="button" <a role="button"
ng-if="riskEvent.client_moniker != null" ng-if="riskEvent.client_moniker != null"
ui-sref="partners.detail({clientMoniker: riskEvent.client_moniker})"> ui-sref="partners.detail({clientMoniker: riskEvent.client_moniker})">
{{riskEvent.short_name}}({{riskEvent.client_moniker}}) {{riskEvent.short_name}}({{riskEvent.client_moniker}})
</a> </a>
</td> </td>
<td ng-bind="riskEvent.order_type | orderType"></td> <td ng-bind="riskEvent.order_type | orderType"></td>
<td ng-class="{'bg-red': riskEvent.result_type == 2, 'pass_timeout': riskEvent.pass_timeout}"> <td ng-class="{'bg-red': riskEvent.result_type == 2, 'pass_timeout': riskEvent.pass_timeout}">
<span ng-if="riskEvent.order_type == 5">-</span> <span ng-if="riskEvent.order_type == 5">-</span>
<span ng-if="riskEvent.order_type != 5">{{riskEvent.result_type | resultType:resultSearchTypes}}</span> <span ng-if="riskEvent.order_type != 5">{{riskEvent.result_type | resultType:resultSearchTypes}}</span>
</td> </td>
<td ng-bind="riskEvent.sub_merchant_id"></td> <td ng-bind="riskEvent.sub_merchant_id"></td>
<td> <td>
<span ng-if="riskEvent.order_type != 5">{{riskEvent.email_status | emailStatus}}</span> <span ng-if="riskEvent.order_type != 5">{{riskEvent.email_status | emailStatus}}</span>
<span ng-if="riskEvent.order_type == 5">-</span> <span ng-if="riskEvent.order_type == 5">-</span>
</td> </td>
<td ng-bind="riskEvent.description | limitTo:20"></td> <td ng-bind="riskEvent.description | limitTo:20"></td>
<td ng-bind="riskEvent.channel_result"></td> <td ng-bind="riskEvent.channel_result"></td>
<td ng-bind="riskEvent.fillin_person"></td> <td ng-bind="riskEvent.fillin_person"></td>
<td ng-bind="riskEvent.create_time"></td> <td ng-bind="riskEvent.create_time"></td>
<td> <td>
<a class="text-primary" <a class="text-primary"
role="button" role="button"
title="Detail" title="Detail"
ui-sref="analysis_monitoring.riskEvent_detail({risk_id:riskEvent.risk_id})"> ui-sref="analysis_monitoring.risk_business.riskEvent_detail({risk_id:riskEvent.risk_id})">
<i class="fa fa-search"></i> Detail <i class="fa fa-search"></i> Detail
</a> </a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>

@ -152,7 +152,7 @@
<a class="text-primary" <a class="text-primary"
role="button" role="button"
title="Detail" title="Detail"
ui-sref="analysis_monitoring.riskEvent_detail_bd({risk_id:riskEvent.risk_id})"> ui-sref="analysis_monitoring.risk_business.riskEvent_detail_bd({risk_id:riskEvent.risk_id})">
<i class="fa fa-search"></i> Detail <i class="fa fa-search"></i> Detail
</a> </a>
</td> </td>

Loading…
Cancel
Save