|
|
|
@ -48,10 +48,7 @@ module Developer {
|
|
|
|
|
columnDefs: [
|
|
|
|
|
{
|
|
|
|
|
field: "_key",
|
|
|
|
|
displayName: '编码',
|
|
|
|
|
customSortField: (field) =>{
|
|
|
|
|
return field.id;
|
|
|
|
|
}
|
|
|
|
|
displayName: '编码'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "name",
|
|
|
|
@ -79,7 +76,11 @@ module Developer {
|
|
|
|
|
displayName: '汇总状态',
|
|
|
|
|
cellTemplate: $templateCache.get("dataExtractTemplate.html")
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
sortInfo: {
|
|
|
|
|
sortBy: "_key",
|
|
|
|
|
ascending: true
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.$on("dataLabelFilterUpdate", ($event, text, key) => {
|
|
|
|
@ -235,27 +236,30 @@ module Developer {
|
|
|
|
|
$scope.createOracleService = (items) =>{
|
|
|
|
|
var exitedItems = Kubernetes.checkForCreateOracle($scope.model.transferTasks, items);
|
|
|
|
|
if(exitedItems.length == 0){
|
|
|
|
|
angular.forEach(items,(item)=>{
|
|
|
|
|
Kubernetes.createRC({
|
|
|
|
|
name: item._key,
|
|
|
|
|
labels: {
|
|
|
|
|
system: item.systemCode.toString(),
|
|
|
|
|
version: item.dataVersion.toString(),
|
|
|
|
|
region: item.regionalismCode.toString()
|
|
|
|
|
},
|
|
|
|
|
annotations: {
|
|
|
|
|
cityName: item.cityName,
|
|
|
|
|
districtName: item.districtName,
|
|
|
|
|
systemName: item.systemName,
|
|
|
|
|
id: item.id+"",
|
|
|
|
|
year: item.year
|
|
|
|
|
},
|
|
|
|
|
path: item.dataPath+"app/",
|
|
|
|
|
isTarget: "false",
|
|
|
|
|
isExtract: item.extractStatus
|
|
|
|
|
}, (rc) =>{
|
|
|
|
|
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "create", rc, 0);
|
|
|
|
|
});
|
|
|
|
|
angular.forEach(items,(item)=>{
|
|
|
|
|
var isExited = Kubernetes.checkForExit($scope.replicasModel.replicationControllers, item);
|
|
|
|
|
if(!isExited){
|
|
|
|
|
Kubernetes.createRC({
|
|
|
|
|
name: item._key,
|
|
|
|
|
labels: {
|
|
|
|
|
system: item.systemCode.toString(),
|
|
|
|
|
version: item.dataVersion.toString(),
|
|
|
|
|
region: item.regionalismCode.toString()
|
|
|
|
|
},
|
|
|
|
|
annotations: {
|
|
|
|
|
cityName: item.cityName,
|
|
|
|
|
districtName: item.districtName,
|
|
|
|
|
systemName: item.systemName,
|
|
|
|
|
id: item.id+"",
|
|
|
|
|
year: item.year
|
|
|
|
|
},
|
|
|
|
|
path: item.dataPath+"app/",
|
|
|
|
|
isTarget: "false",
|
|
|
|
|
isExtract: item.extractStatus
|
|
|
|
|
}, (rc) =>{
|
|
|
|
|
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "create", rc, 0);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$timeout(() => {
|
|
|
|
|