|
|
|
@ -371,6 +371,23 @@ module Kubernetes {
|
|
|
|
|
return answer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function labelsFormat(replicas){
|
|
|
|
|
console.log(replicas);
|
|
|
|
|
var annotion = getAnnotations(replicas);
|
|
|
|
|
var lables = getLabels(replicas);
|
|
|
|
|
return{
|
|
|
|
|
isExtract: lables["isExtract"],
|
|
|
|
|
isTarget: lables["isTarget"],
|
|
|
|
|
status: lables["status"],
|
|
|
|
|
style: lables["style"],
|
|
|
|
|
cityName: annotion["cityName"],
|
|
|
|
|
districtName: annotion["districtName"],
|
|
|
|
|
systemName: annotion["systemName"],
|
|
|
|
|
year: annotion["year"],
|
|
|
|
|
version: "版本" + lables["version"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function initShared($scope, $location, $http, $timeout, $routeParams, KubernetesModel, KubernetesState, KubernetesApiURL) {
|
|
|
|
|
$scope.baseUri = Core.trimTrailing(Core.url("/") || "", "/") || "";
|
|
|
|
@ -1794,15 +1811,9 @@ module Kubernetes {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getOracleName(name:string):string {
|
|
|
|
|
var results = name.split("-");
|
|
|
|
|
if(results.length === 2){
|
|
|
|
|
return "汇总数据库" + "(" +results[1] + ")";
|
|
|
|
|
}else if(results.length === 3){
|
|
|
|
|
return Kubernetes.getCountyByCode(results[0]) + "_" + Kubernetes.getSystemNameById(results[1]);
|
|
|
|
|
}else{
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
export function getOracleName(replicas):string {
|
|
|
|
|
var annotation = getAnnotations(replicas);
|
|
|
|
|
return annotation["cityName"] + "-" + annotation["districtName"] + "-" + annotation["systemName"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function extractDataToOracle($http, selectedReplicationControllers, targetOracle: Configs.oracleParam, fn?:(data, status) => void){
|
|
|
|
|