|
|
|
@ -6,9 +6,10 @@
|
|
|
|
|
/// <reference path="../../kubernetes/ts/kubernetesHelpers.ts"/>
|
|
|
|
|
/// <reference path="../../configs/ts/customAlert.ts"/>
|
|
|
|
|
/// <reference path="../../configs/ts/configsDataService.ts"/>
|
|
|
|
|
/// <reference path="../../kubernetes/ts/term.ts"/>
|
|
|
|
|
|
|
|
|
|
module System{
|
|
|
|
|
export var SystemVerificationController = controller('SystemVerificationController', ['$scope', '$location', '$http', '$templateCache', 'Upload', 'NgTableParams', 'ngDialog', 'SystemModel', '$element', '$timeout', 'ConfigsModel', 'DataModel', ($scope, $location, $http, $templateCache, Upload, NgTableParams, ngDialog, SystemModel, $element, $timeout, ConfigsModel, DataModel) => {
|
|
|
|
|
export var SystemVerificationController = controller('SystemVerificationController', ['$scope', '$interval', '$location', '$http', '$templateCache', 'Upload', 'NgTableParams', 'ngDialog', 'SystemModel', '$element', '$timeout', 'ConfigsModel', 'DataModel', 'TerminalService', ($scope, $interval, $location, $http, $templateCache, Upload, NgTableParams, ngDialog, SystemModel, $element, $timeout, ConfigsModel, DataModel, TerminalService) => {
|
|
|
|
|
shareInit($scope);
|
|
|
|
|
$scope.cities = classifyCity(SystemModel.regionalismInfo);
|
|
|
|
|
$scope.model = SystemModel;
|
|
|
|
@ -334,5 +335,13 @@ module System{
|
|
|
|
|
Configs.customAlert("提示", "操作失败:发生请求失败,不能删除!", '',null, 0, "error");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$scope.openLog = (entity) => {
|
|
|
|
|
console.log(entity);
|
|
|
|
|
var name = entity.areaCode + "_" + entity.sysCode + "_" + entity.dataVersion
|
|
|
|
|
var containerName = entity.cityName + "-" + entity.districtName + "-" + entity.sysName + "-版本" + entity.dataVersion;
|
|
|
|
|
entity["name"] = name;
|
|
|
|
|
TerminalService.newTerminal($interval, entity.id+"", containerName, entity, "/java/console/api/standardextract/log?rcName=" + name, $templateCache.get(UrlHelpers.join(Kubernetes.templatePath, 'logShell.html')));
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
}
|