|
|
|
@ -292,6 +292,20 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
orderChannel = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.deleteRiskEvent = function () {
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
title: 'Delete This Risk Event',
|
|
|
|
|
content: 'Are you sure to delete this risk event?'
|
|
|
|
|
}).then(function () {
|
|
|
|
|
$http.delete('/risk/business/ban/' + $scope.riskEvent.risk_id).then(function () {
|
|
|
|
|
$state.go('analysis_monitoring.risk_business');
|
|
|
|
|
commonDialog.alert({title: 'Delete', content: 'Risk Event Already Disabled', type: 'error'});
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* order_ids在指定位置换行
|
|
|
|
|
* @param str
|
|
|
|
|