|
|
@ -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'});
|
|
|
|
})
|
|
|
|
})
|
|
|
|