UPD:风控优化页面

master
duLingLing 5 years ago
parent aceb124d3d
commit c01428bc1f

@ -451,7 +451,7 @@ margin-bottom: 10%;"/>
</p> </p>
<ul class="sidebar-menu" ng-class="{'active':Risk}"> <ul class="sidebar-menu" ng-class="{'active':Risk}">
<li ui-sref-active="active"> <li ui-sref-active="active">
<a ui-sref="analysis_monitoring.risk_business_bd" ng-if="('100' | withRole)" ui-sref-opts="{reload:true}"> <a ui-sref="analysis_monitoring.risk_business.risk_business_bd" ng-if="('100' | withRole)" ui-sref-opts="{reload:true}">
<i class="fa fa-list-alt"></i> <span>风控业务|Risk Business</span> <i class="fa fa-list-alt"></i> <span>风控业务|Risk Business</span>
</a> </a>
</li> </li>

@ -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,7 +116,7 @@ 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.riskEvent_detail_bd', { }).state('analysis_monitoring.risk_business.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',
controller: 'riskEventDetailCtrl', controller: 'riskEventDetailCtrl',
@ -125,11 +125,11 @@ 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.new_riskEvent', { }).state('analysis_monitoring.risk_business.risk_business.new_riskEvent', {
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', { }).state('analysis_monitoring.risk_business.riskEvent_detail.audit_material', {
url: '/audit_material', url: '/audit_material',
templateUrl: '/static/analysis/templates/audit_material.html', templateUrl: '/static/analysis/templates/audit_material.html',
controller: 'auditMaterialCtrl' controller: 'auditMaterialCtrl'
@ -423,7 +423,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 +451,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 +470,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'});
}) })

@ -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="analysis_monitoring.risk_business.riskEvent_detail.audit_material" ui-sref-opts="{reload:true}">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)">
@ -384,7 +384,7 @@
</a> </a>
<a role="button" <a role="button"
ng-click="goBack()" ui-sref="analysis_monitoring.risk_business"
class="btn btn-info pull-right">返回 class="btn btn-info pull-right">返回
</a> </a>

@ -203,7 +203,7 @@
</button> </button>
<a role="button" <a role="button"
class="btn btn-info" class="btn btn-info"
ui-sref=".new_riskEvent" ui-sref="analysis_monitoring.risk_business.new_riskEvent"
title="New Event" ng-if="'10000000000'|withRole"> title="New Event" ng-if="'10000000000'|withRole">
<i class="fa fa-plus"></i> New Event <i class="fa fa-plus"></i> New Event
</a> </a>
@ -265,7 +265,7 @@
<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>

@ -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