@ -63,6 +63,10 @@ module Developer {
displayName : '数据标签' ,
cellTemplate : $templateCache.get ( "dataLabelsTemplate.html" )
} ,
{
field : "year" ,
displayName : '年度' ,
} ,
{
field : "collectingTime" ,
displayName : '采集时间'
@ -136,11 +140,21 @@ module Developer {
} , true ) ;
$scope . deletePrompt = ( items ) = > {
$scope . deletePrompt = ( selected ) = > {
if ( angular . isString ( selected ) ) {
selected = [ {
id : selected
} ] ;
}
UI . multiItemConfirmActionDialog ( < UI.MultiItemConfirmActionOptions > {
collection : selected ,
index : 'id' ,
onClose : ( result :boolean ) = > {
var idColl = [ ] ;
angular . forEach ( items , ( item ) = > {
idColl . push ( item . id ) ;
console . log ( item . id ) ;
if ( result ) {
angular . forEach ( selected , ( select ) = > {
idColl . push ( select . id ) ;
console . log ( select . id ) ;
} ) ;
$http ( {
method : "POST" ,
@ -153,6 +167,17 @@ module Developer {
} ) ;
}
} ,
title : '是否需要删除采集数据?' ,
action : '以下采集数据文件将会被删除:' ,
okText : '删除' ,
okClass : 'btn-danger sj_btn_cir' ,
custom : "该删除操作将会彻底删除数据文件,是否删除,请确认!" ,
customClass : "alert alert-warning sj_alert-warning" ,
cancelText : "取消" ,
cancelClass : 'sj_btn_grey'
} ) . open ( ) ;
}
$scope . migrationClick = {
items :null ,
@ -178,8 +203,6 @@ module Developer {
var migrationClick = $scope . migrationClick ;
if ( $scope . volumes && $scope . volumes instanceof Array && $scope . volumes . length > 0 )
migrationClick . selectedItem = $scope . volumes [ 0 ] ;
console . log ( migrationClick . selectedItem . folder . childNodes ) ;
migrationClick . dialog . open ( ) ;
} ,
close : ( ) = > {
@ -205,9 +228,10 @@ module Developer {
path : item.dataPath + "app/" ,
isTarget : "false"
} , ( rc ) = > {
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "create" , Kubernetes. getName ( rc) , 0 ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "create" , rc , 0 ) ;
} ) ;
} ) ;
$timeout ( ( ) = > {
$location . path ( '/kubernetes/namespace/default/replicationControllers' ) ;
} , 200 ) ;