|
|
|
@ -107,7 +107,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
templateUrl: '/static/analysis/templates/risk_business_bd.html',
|
|
|
|
|
cache: false,
|
|
|
|
|
controller: 'riskBusinessCtrl'
|
|
|
|
|
}).state('analysis_monitoring.riskEvent_detail', {
|
|
|
|
|
}).state('analysis_monitoring.risk_business.riskEvent_detail', {
|
|
|
|
|
url: '/{risk_id}/detail',
|
|
|
|
|
templateUrl: '/static/analysis/templates/riskEvent_detail.html',
|
|
|
|
|
controller: 'riskEventDetailCtrl',
|
|
|
|
@ -116,7 +116,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
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',
|
|
|
|
|
templateUrl: '/static/analysis/templates/riskEvent_detail_bd.html',
|
|
|
|
|
controller: 'riskEventDetailCtrl',
|
|
|
|
@ -125,11 +125,11 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
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',
|
|
|
|
|
templateUrl: '/static/analysis/templates/new_riskEvent.html',
|
|
|
|
|
controller: 'newRiskEventCtrl'
|
|
|
|
|
}).state('analysis_monitoring.riskEvent_detail.audit_material', {
|
|
|
|
|
}).state('analysis_monitoring.risk_business.riskEvent_detail.audit_material', {
|
|
|
|
|
url: '/audit_material',
|
|
|
|
|
templateUrl: '/static/analysis/templates/audit_material.html',
|
|
|
|
|
controller: 'auditMaterialCtrl'
|
|
|
|
@ -423,7 +423,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
content: 'Update riskEvent successfully',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
$state.reload('analysis_monitoring.riskEvent_detail');
|
|
|
|
|
$state.reload('analysis_monitoring.risk_business.riskEvent_detail');
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'Error',
|
|
|
|
@ -451,7 +451,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
content: 'Are you sure?'
|
|
|
|
|
}).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) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'Failed to change ' + channel + ' channel permission status',
|
|
|
|
@ -470,7 +470,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
content: 'Are you sure?'
|
|
|
|
|
}).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) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|