@ -31,6 +31,7 @@ module Developer {
labelSelected : "a8"
labelSelected : "a8"
}
}
}
}
//配置数据表格需要显示的内容及显示格式
//配置数据表格需要显示的内容及显示格式
$scope . tableConfig = {
$scope . tableConfig = {
data : 'model.data' ,
data : 'model.data' ,
@ -176,7 +177,9 @@ module Developer {
open : ( selected ) = > {
open : ( selected ) = > {
var migrationClick = $scope . migrationClick ;
var migrationClick = $scope . migrationClick ;
if ( $scope . volumes && $scope . volumes instanceof Array && $scope . volumes . length > 0 )
if ( $scope . volumes && $scope . volumes instanceof Array && $scope . volumes . length > 0 )
migrationClick . selectedItem = $scope . volumes [ 0 ] ;
migrationClick . selectedItem = $scope . volumes [ 0 ] ;
console . log ( migrationClick . selectedItem . folder . childNodes ) ;
migrationClick . dialog . open ( ) ;
migrationClick . dialog . open ( ) ;
} ,
} ,
close : ( ) = > {
close : ( ) = > {
@ -202,16 +205,19 @@ module Developer {
path : item.dataPath + "app/" ,
path : item.dataPath + "app/" ,
isTarget : "false"
isTarget : "false"
} , ( rc ) = > {
} , ( rc ) = > {
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "create" , Kubernetes . getName ( rc ) , 0 ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "create" , Kubernetes . getName ( rc ) , 0 ) ;
$location . path ( '/kubernetes/namespace/default/replicationControllers' ) ;
} ) ;
} ) ;
} ) ;
} ) ;
$timeout ( ( ) = > {
$location . path ( '/kubernetes/namespace/default/replicationControllers' ) ;
} , 200 ) ;
}
}
function init ( $scope , $location , $routeParams ) {
function init ( $scope , $location , $routeParams ) {
$scope . model . updateModel ( ) ;
$scope . model . updateModel ( ) ;
if ( ConfigsModel . cluster != null )
if ( ConfigsModel . cluster != null )
$scope . volumes = ConfigsModel . cluster ;
$scope . volumes = ConfigsModel . cluster ;
//创建二级菜单
//创建二级菜单
$scope . subTabConfig = Developer . createCurrentSubNavBar ( $scope , $location , $routeParams ) ;
$scope . subTabConfig = Developer . createCurrentSubNavBar ( $scope , $location , $routeParams ) ;
$scope . navbarItems = [ {
$scope . navbarItems = [ {