|
|
|
@ -125,32 +125,50 @@ module System{
|
|
|
|
|
var filter = [];
|
|
|
|
|
if($scope.tableData && $scope.tableData.length > 0){
|
|
|
|
|
angular.forEach($scope.tableData, (item) => {
|
|
|
|
|
if($scope.checkboxes.items[item.id])
|
|
|
|
|
if($scope.checkboxes.items[item.id]){
|
|
|
|
|
item["index"] = item.cityName + "_" + item.districtName + "_" + item.sysName + "_" + item.year + "_版本" + item.dataVersion;
|
|
|
|
|
filter.push(item);
|
|
|
|
|
});
|
|
|
|
|
$http({
|
|
|
|
|
url: "/java/console/api/checkout/deleteList",
|
|
|
|
|
method: "POST",
|
|
|
|
|
data: filter
|
|
|
|
|
}).success((data, header, config, status) => {
|
|
|
|
|
$scope.tableData = data.data;
|
|
|
|
|
var result = [];
|
|
|
|
|
if($scope.y != 'all'){
|
|
|
|
|
angular.forEach($scope.tableData, (item) =>{
|
|
|
|
|
if(item.districtName == $scope.y)
|
|
|
|
|
result.push(item);
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
result = $scope.tableData;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.tableParams.settings({
|
|
|
|
|
dataset: result
|
|
|
|
|
});
|
|
|
|
|
}).error((data, header, config, status) => {
|
|
|
|
|
throw "请求失败"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
UI.multiItemConfirmActionDialog(<UI.MultiItemConfirmActionOptions>{
|
|
|
|
|
collection: filter,
|
|
|
|
|
index: 'index',
|
|
|
|
|
onClose: (result:boolean) => {
|
|
|
|
|
if(result){
|
|
|
|
|
$http({
|
|
|
|
|
url: "/java/console/api/checkout/deleteList",
|
|
|
|
|
method: "POST",
|
|
|
|
|
data: filter
|
|
|
|
|
}).success((data, header, config, status) => {
|
|
|
|
|
$scope.tableData = data.data;
|
|
|
|
|
var result = [];
|
|
|
|
|
if($scope.y != 'all'){
|
|
|
|
|
angular.forEach($scope.tableData, (item) =>{
|
|
|
|
|
if(item.districtName == $scope.y)
|
|
|
|
|
result.push(item);
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
result = $scope.tableData;
|
|
|
|
|
}
|
|
|
|
|
$scope.tableParams.settings({
|
|
|
|
|
dataset: result
|
|
|
|
|
});
|
|
|
|
|
}).error((data, header, config, status) => {
|
|
|
|
|
throw "请求失败"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
title: '是否需要删除采集数据?',
|
|
|
|
|
action: '以下采集数据文件将会被删除:',
|
|
|
|
|
okText: '删除',
|
|
|
|
|
okClass: 'btn-danger sj_btn_cir',
|
|
|
|
|
custom: "该删除操作将会彻底删除数据文件,是否删除,请确认!",
|
|
|
|
|
customClass: "alert alert-warning sj_alert-warning",
|
|
|
|
|
cancelText: "取消",
|
|
|
|
|
cancelClass: 'sj_btn_grey'
|
|
|
|
|
}).open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.check = () => {
|
|
|
|
@ -207,7 +225,7 @@ module System{
|
|
|
|
|
/*
|
|
|
|
|
如果是Oracle数据,先启动oracle数据
|
|
|
|
|
*/
|
|
|
|
|
if(oracleDB.length >= 0){
|
|
|
|
|
if(oracleDB.length > 0){
|
|
|
|
|
angular.forEach(oracleDB, (item) =>{
|
|
|
|
|
Kubernetes.createRC({
|
|
|
|
|
name: item._key,
|
|
|
|
@ -240,9 +258,8 @@ module System{
|
|
|
|
|
url: "/java/console/api/checkout/checkList",
|
|
|
|
|
method: "POST",
|
|
|
|
|
data: selectedItems
|
|
|
|
|
}).success((data, header, config, status) => {
|
|
|
|
|
console.log(data);
|
|
|
|
|
/*$scope.tableData = data.data;
|
|
|
|
|
}).success((data, header, config, status) => {
|
|
|
|
|
$scope.tableData = data.data;
|
|
|
|
|
var result = [];
|
|
|
|
|
if($scope.y != 'all'){
|
|
|
|
|
angular.forEach($scope.tableData, (item) =>{
|
|
|
|
@ -255,7 +272,7 @@ module System{
|
|
|
|
|
|
|
|
|
|
$scope.tableParams.settings({
|
|
|
|
|
dataset: result
|
|
|
|
|
});*/
|
|
|
|
|
});
|
|
|
|
|
}).error((data, header, config, status) => {
|
|
|
|
|
throw "请求失败"
|
|
|
|
|
});
|
|
|
|
|