|
|
|
@ -11,7 +11,9 @@ module System{
|
|
|
|
|
shareInit($scope);
|
|
|
|
|
$scope.cities = classifyCity(SystemModel.regionalismInfo);
|
|
|
|
|
|
|
|
|
|
$scope.status = [{id: 0, label: "有缺失"}, {id: 1, label: "正常"}, {id: 2, label:"待归档"}, {id: 3, label: "待审核"}];
|
|
|
|
|
$scope.status = [{id: 0, label: "有缺失"}, {id: 1, label: "正常"}, {id: 2, label:"待归档"}, {id: 3, label: "待审核"}];
|
|
|
|
|
|
|
|
|
|
SystemModel.updateSqlInfo();
|
|
|
|
|
|
|
|
|
|
$scope.cityFilter = $scope.model = SystemModel.sqlInfo;
|
|
|
|
|
|
|
|
|
@ -100,8 +102,8 @@ module System{
|
|
|
|
|
$scope.help = () => {
|
|
|
|
|
ngDialog.open({
|
|
|
|
|
template: 'statusHelp.html',
|
|
|
|
|
width: 900,
|
|
|
|
|
height: 600,
|
|
|
|
|
width: 600,
|
|
|
|
|
height: 370,
|
|
|
|
|
closeByDocument: false,
|
|
|
|
|
className: 'ngdialog-theme-default'
|
|
|
|
|
});
|
|
|
|
@ -197,9 +199,9 @@ module System{
|
|
|
|
|
|
|
|
|
|
$scope.$on('onOk', (event, data) => {
|
|
|
|
|
Configs.create_mask(); //创建遮罩层
|
|
|
|
|
Kubernetes.create_locadEffect("正在更新文件,请稍等!"); //创建数据加载效果层
|
|
|
|
|
var target = document.getElementById('loading')
|
|
|
|
|
var spinner = new Spinner(Kubernetes.loadConfigs()).spin(target);
|
|
|
|
|
Kubernetes.create_locadEffect("正在更新文件,请稍等!"); //创建数据加载效果层
|
|
|
|
|
var target = document.getElementById('loading')
|
|
|
|
|
var spinner = new Spinner(Kubernetes.loadConfigs()).spin(target);
|
|
|
|
|
$http({
|
|
|
|
|
url: "/java/console/api/filePackage/handleSqlFile",
|
|
|
|
|
method: "POST",
|
|
|
|
@ -209,10 +211,12 @@ module System{
|
|
|
|
|
content: data.content
|
|
|
|
|
})
|
|
|
|
|
}).success((data,header,config,status) => {
|
|
|
|
|
$("#load").remove();
|
|
|
|
|
Kubernetes.removeMask();
|
|
|
|
|
shareUpdate(data);
|
|
|
|
|
}).error((data,header,config,status) => {
|
|
|
|
|
$("#load").remove();
|
|
|
|
|
Kubernetes.removeMask();
|
|
|
|
|
shareUpdate(data);
|
|
|
|
|
}).error((data,header,config,status) => {
|
|
|
|
|
$("#load").remove();
|
|
|
|
|
Kubernetes.removeMask();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -270,6 +274,9 @@ module System{
|
|
|
|
|
if(items.length <= 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
Configs.create_mask(); //创建遮罩层
|
|
|
|
|
Kubernetes.create_locadEffect("正在更新文件,请稍等!"); //创建数据加载效果层
|
|
|
|
|
|
|
|
|
|
$http({
|
|
|
|
|
url: url,
|
|
|
|
|
method: 'POST',
|
|
|
|
@ -303,12 +310,18 @@ module System{
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#load").remove();
|
|
|
|
|
Kubernetes.removeMask();
|
|
|
|
|
$scope.tableParams.settings({
|
|
|
|
|
dataset: filter
|
|
|
|
|
});
|
|
|
|
|
//响应成功
|
|
|
|
|
}).error(function(data,header,config,status){
|
|
|
|
|
//处理响应失败
|
|
|
|
|
//处理响应失败
|
|
|
|
|
$("#load").remove();
|
|
|
|
|
Kubernetes.removeMask();
|
|
|
|
|
Configs.customAlert("提示", "一键审核或归档失败!", '',null, 0, "error");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|