@ -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.risk Event_detail', {
} ) . state ( 'analysis_monitoring.risk _business.risk Event_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.risk Event_detail') ;
$state . reload ( 'analysis_monitoring.risk _business.risk Event_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.risk Event_detail') ;
$state . reload ( 'analysis_monitoring.risk _business.risk Event_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.risk Event_detail') ;
$state . reload ( 'analysis_monitoring.risk _business.risk Event_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' } ) ;
} )
} )