diff --git a/new/sj_style.css b/new/sj_style.css index a057b77..cd85ce2 100644 --- a/new/sj_style.css +++ b/new/sj_style.css @@ -16,9 +16,9 @@ a:hover,a:active{color:#333;} .cl{ clear:both; overflow:hidden;} /* public*/ .mt2{margin-top: 3px;} -.mt5{ margin-top: 5px;}.mt10{ margin-top: 10px;} +.mt5{ margin-top: 5px;}.mt10{ margin-top: 10px;}.mt15{ margin-top: 15px;} .ml5{ margin-left:5px;}.ml10{ margin-left:10px;}.ml15{ margin-left:15px;} -.mr5{ margin-right:5px;}.mr10{ margin-right:10px;} +.mr5{ margin-right:5px;}.mr10{ margin-right:10px;}.mr15{ margin-right:15px;}.mr17{ margin-right:17px;}.mr20{ margin-right:20px;} .mb10{ margin-bottom: 10px;} a.sj_btn_grey{ display:inline-block; padding:0px 15px; height:30px; line-height:30px; -webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px; background-image:-webkit-linear-gradient(top, #fdfdfd,#e8e8e8);background-image:linear-gradient(top,#fdfdfd,#e8e8e8); border:1px solid #cecece; color:#505050;} a:hover.sj_btn_grey{ background-image:-webkit-linear-gradient(top, #eeeeee,#d3d3d3);background-image:linear-gradient(top,#eeeeee,#d3d3d3);} @@ -126,7 +126,7 @@ treecontrol li:hover{} .sj_btn{ box-shadow:none; -webkit-box-shadow:none; font-weight: normal; background:none; color:#0088cc;} .sj_btn:hover{ color: #005580;} .sj_form_input input{-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px; border:1px solid #d3d3d3; background:#fff; padding-left:5px; color:#888; height:32px; width:310px;box-shadow: inset 0px 0px 3px #dcdcdc;} -.sj_alert-warning{ background-color: #fff6d0; border-color:#f6e7aa; color: #fd5f00; margin-top:10px;} +.sj_alert-warning{ background-color: #fff6d0; border-color:#f6e7aa; color: #fd5f00; } .help-block{ color: #fd5f00;} .alert{ padding:10px 15px; margin-bottom:0;} .sj_control-label{ padding:0; line-height:30px; } @@ -156,28 +156,27 @@ treecontrol li:hover{} .sj_c_red{ color:#c00000;} .sj_table_border{ border:1px solid #ddd;} -/*查看弹框 20161018byLB*/ -.box_chakan{ width: 750px; padding:15px; line-height: 1.9; } -.box_chakan h2{ font-size: 14px; border-bottom: 1px solid #e4e4e4; padding-bottom: 5px; padding-left: 15px;} -.box_chakan li{ margin-bottom: 10px;} -.box_chakan_leftinfo{ display:inline-block; width: 120px; text-align: right;} -.box_chakan_maxinfo{ display:inline-block; width: 600px; text-align: left; color: #666; } -.box_chakan_mininfo{ display:inline-block; width: 230px; text-align: left; color: #666; } -.box_chakan_smallinfo{ display:inline-block; width: 140px; text-align: left; color: #666; } /*查看弹框 20161018byLB*/ -.box_chakan{ width: 720px;background:#f4f4f4; padding:15px; line-height: 1.9; } -.box_chakan h2{ font-size: 14px; border-bottom: 1px solid #e4e4e4; padding-bottom: 5px; padding-left: 15px;} +.box_chakan{ width: 750px;background:none; padding:15px; line-height: 1.9; } +.box_chakan h2{ font-size: 14px; border-bottom: 1px solid #ccc; padding-bottom: 10px; padding-left: 15px;} .box_chakan li{ margin-bottom: 10px;} -.box_chakan_leftinfo{ display:inline-block; width: 100px; text-align: right;} +.box_chakan_leftinfo{ display:inline-block; width: 110px; text-align: right; font-weight: bold;} .box_chakan_maxinfo{ display:inline-block; width: 600px; text-align: left; color: #666; } .box_chakan_mininfo{ display:inline-block; width: 250px; text-align: left; color: #666; } .box_chakan_smallinfo{ display:inline-block; width: 140px; text-align: left; color: #666; } /*查看弹框 20161027byLB*/ -.sj_box_w440{ width: 430px; height: 400px; overflow-x:scroll; border:1px solid #eee;background: #fff; color: #666; padding:5px;} -.sj_new_box02{ width:450px; margin:0 auto; padding:20px; } +.sj_box_w440{ width: 430px; height: 400px; overflow-x:scroll; border:1px solid #ddd;background: #fff; color: #666; padding:5px;} +.sj_box_w470{ width: 471px; height: 400px; overflow-x:scroll; border:1px solid #ddd;background: #fff; color: #666; padding:5px;} +.sj_box_w535{ width: 535px; height: 400px; overflow-x:scroll; border:1px solid #ddd;background: #fff; color: #666; padding:5px;} +.sj_new_box02{ width:580px; margin:0 auto; padding:20px; } .sj_new_box03{ width:880px; margin:0 auto; } +.sj_new_box04{ width:960px; margin:0 auto; } +.sj_new_box05{ width:540px; margin:0 auto; } .sj_width440{width: 440px;} +.sj_width470{width: 470px;} +.sj_width535{width: 535px;} +.sj_box_w580{width:560px;} .fb{ font-weight: bold;} .mr60{ margin-right: 60px;} .sj_link{padding-left: 60px; width: 360px;} @@ -186,8 +185,18 @@ treecontrol li:hover{} .sj_new_table02{border-top: 1px solid #ddd; border-left: 1px solid #ddd;} .sj_new_table02 tr{ line-height:30px; } .sj_new_table02 td,.sj_new_table02 th{ border-right: 1px solid #ddd; border-bottom: 1px solid #ddd;} -.sj_popup_toptxt { font-weight: bold; text-align: center; color: #333; } +table tr.sj_popup_toptxt th{ font-weight: bold; text-align: center; color: #333; } .sj_popup_boxrightline{ border-right:1px solid #ddd; } -.sj_popup_lefttxt { width: 105px; text-align: right;padding:0 5px; } +.sj_popup_lefttxt { width: 105px; text-align: right;padding:0 5px; font-weight: bold; } .sj_popup_midtxt { width: 348px; margin-bottom: 10px; color: #666; padding:0 5px;} -.sj_popup_righttxt { width: 50px; margin-bottom: 10px; text-align: center; padding:0 5px;} \ No newline at end of file +.sj_popup_righttxt { width: 50px; margin-bottom: 10px; text-align: center; padding:0 5px;} + + +.sj_select_box{ height: 30px; line-height: 30px;} +.help-block{ margin-top: 0;} +.col-md-12{ padding-left:0; padding-right:20px;} +.sj_link_blue{ color:#2a84e9; border:none; padding:0; margin:0; background: none; text-align: left; margin-left: -5px;} +.sj_link_blue:hover{ color: #0d62c1;} +.table_sj_td_center tr td{ text-align: center;} +.sj_popup_txtbold { width: 105px; text-align: center;padding:0 5px; font-weight: bold; } +.sj_popup_p{ width:540px; text-align:center; color: #666;} \ No newline at end of file diff --git a/plugins/configs/html/shareLayout.html b/plugins/configs/html/shareLayout.html index 93c6896..81aa884 100644 --- a/plugins/configs/html/shareLayout.html +++ b/plugins/configs/html/shareLayout.html @@ -99,7 +99,7 @@ + +
diff --git a/plugins/kubernetes/html/replicationControllers.html b/plugins/kubernetes/html/replicationControllers.html index 6346265..5d066c0 100644 --- a/plugins/kubernetes/html/replicationControllers.html +++ b/plugins/kubernetes/html/replicationControllers.html @@ -61,7 +61,14 @@ ng-click="extractClick.open(id || tableConfig.selectedItems)"> 汇总 - +   + +
diff --git a/plugins/kubernetes/ts/replicationControllers.ts b/plugins/kubernetes/ts/replicationControllers.ts index d78dcbc..8693c28 100644 --- a/plugins/kubernetes/ts/replicationControllers.ts +++ b/plugins/kubernetes/ts/replicationControllers.ts @@ -66,6 +66,11 @@ module Kubernetes { { field: '$extractStatus', displayName: '数据汇总状态', cellTemplate: $templateCache.get("dataSummaryTemplate.html") + }, + { + field: '$checkStatus', + displayName: '检验状态', + cellTemplate: $templateCache.get("dataCheckStatus.html") } ], sortInfo: { @@ -205,6 +210,34 @@ module Kubernetes { startSelected(selected, selected.shift()); }; + /** + 处理抽取标准表 + **/ + $scope.extract = (selected) =>{ + console.log(selected); + var answer = false; + for (var i = 0; i < ConfigsModel.oracleParam.length; ++i) { + if(ConfigsModel.oracleParam[i].type == 1){ + answer = true + break; + } + } + if(answer == false){ + /** + 提示没有配置标准表汇总库 + **/ + Configs.customAlert("提示", "操作失败:没有配置默认的标准表汇总库", '',null, 0, "error"); + return; + } + // 检查数据库是否已启动 + var result = checkIsStartSuccess(selected); + if(result.length > 0){ + Configs.customAlert("提示", "操作失败:选择服务中存在未启动的数据库,请先启动服务", '',null, 0, "error"); + return; + } + //执行标准表抽取操作 + } + $scope.extractClick = { items: null, selectedItem: {name: "当前没有可用的汇总库"}, @@ -222,7 +255,7 @@ module Kubernetes { extractClick.selectedItem = $scope.configs.oracleParam[0]; var result = checkIsStartSuccess($scope.tableConfig.selectedItems); if(result.length >0){ - Configs.customAlert("提示", "操作失败:选择服务中存在未启动的数据,请先启动服务", '',null, 0, "error"); + Configs.customAlert("提示", "操作失败:选择服务中存在未启动的数据库,请先启动服务", '',null, 0, "error"); return; } extractClick.dialog.open(); diff --git a/plugins/kubernetes/ts/utilHelpers.ts b/plugins/kubernetes/ts/utilHelpers.ts index 4b78a82..3baeb34 100644 --- a/plugins/kubernetes/ts/utilHelpers.ts +++ b/plugins/kubernetes/ts/utilHelpers.ts @@ -283,7 +283,7 @@ module Kubernetes { function checkForExitTask(transferTasks:Array, selectItem){ for(var index in transferTasks){ var task = transferTasks[index]; - if(task["_key"] == selectItem["_key"] && (task["status"] == "1" || task["status"] == "0") && selectItem["year"] == task.labels.dataYear){ + if(task["_key"] == selectItem["_key"] && selectItem["year"] == task.labels.dataYear){ return true; } } diff --git a/plugins/system/html/regionalismCodeSearch.html b/plugins/system/html/regionalismCodeSearch.html index 47a37f0..126ae97 100644 --- a/plugins/system/html/regionalismCodeSearch.html +++ b/plugins/system/html/regionalismCodeSearch.html @@ -6,7 +6,7 @@

当前没有可以查看的数据.

-
+
diff --git a/plugins/system/html/systemCodeSearch.html b/plugins/system/html/systemCodeSearch.html index 47da123..77a1fcd 100644 --- a/plugins/system/html/systemCodeSearch.html +++ b/plugins/system/html/systemCodeSearch.html @@ -6,7 +6,7 @@

当前没有可以查看的数据.

-
+
diff --git a/plugins/system/html/systemList.html b/plugins/system/html/systemList.html index 4db2683..bcb753c 100644 --- a/plugins/system/html/systemList.html +++ b/plugins/system/html/systemList.html @@ -2,29 +2,27 @@
-
+
-   -   -   -   -
-
+
当前没有可以查看的数据,请点击Excel导入按钮导入Excel数据
- +
{{row[col.field]}} diff --git a/plugins/system/html/systemSQLManagement.html b/plugins/system/html/systemSQLManagement.html index aee8db8..8b57c57 100644 --- a/plugins/system/html/systemSQLManagement.html +++ b/plugins/system/html/systemSQLManagement.html @@ -1,47 +1,49 @@
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - - +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
当前没有查到符合过滤条件的数据,请重新选择过滤条件
- +
diff --git a/plugins/system/html/systemVerification.html b/plugins/system/html/systemVerification.html index a67b267..d7263f6 100644 --- a/plugins/system/html/systemVerification.html +++ b/plugins/system/html/systemVerification.html @@ -1,34 +1,36 @@
-
-
- +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
-
- -
-
- -
-
- -
-
- -
-
-
+
+
@@ -43,8 +45,8 @@ - @@ -55,7 +57,7 @@
{{row.cityName}} {{row.districtName}} {{row.areaCode}} - + + {{row.sysName}}
- + 当前没有选择需要校验的数据,请选择需要校验的数据!
diff --git a/plugins/system/ts/systemList.ts b/plugins/system/ts/systemList.ts index ddff4a3..f97a383 100644 --- a/plugins/system/ts/systemList.ts +++ b/plugins/system/ts/systemList.ts @@ -21,7 +21,7 @@ module System{ { field: "cityName", title: "市", filter: { cityName: 'text' }, show: true }, { field: "districtName", title: "区/县", filter: { districtName: 'text' }, show: true }, { field: "areaCode", title: "行政区划代码", filter: {areaCode: 'text'}, show: true }, - { field: "areaLevel", title: "级次", filter: { areaLevel: "select" }, filterData: levelType(), show: true }, + { field: "areaLevel", title: "地区级次", filter: { areaLevel: "select" }, filterData: levelType(), show: true }, { field: "sysName", title: "信息系统名称", filter: { sysName: "text" }, show: true }, { field: "departmentManager", title: "联系人", filter: { departmentManager: "text" }, show: true }, { field: "managerContacts", title: "联系方式", filter: { managerContacts: "text" }, show: true }, diff --git a/plugins/system/ts/systemVerification.ts b/plugins/system/ts/systemVerification.ts index 2c7b7ec..da3f376 100644 --- a/plugins/system/ts/systemVerification.ts +++ b/plugins/system/ts/systemVerification.ts @@ -8,7 +8,7 @@ /// module System{ - export var SystemVerificationController = controller('SystemVerificationController', ['$scope', '$location', '$http', '$templateCache', 'Upload', 'NgTableParams', 'ngDialog', 'SystemModel', '$element', '$timeout', 'ConfigsModel', ($scope, $location, $http, $templateCache, Upload, NgTableParams, ngDialog, SystemModel, $element, $timeout, ConfigsModel) => { + 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) => { shareInit($scope); $scope.cities = classifyCity(SystemModel.regionalismInfo); $scope.model = SystemModel; @@ -115,7 +115,7 @@ module System{ /** 提示没有配置标准表汇总库 **/ - Configs.customAlert("提示", "操作失败:没有配置默认的汇总库", '',null, 0, "error"); + Configs.customAlert("提示", "操作失败:没有配置默认的标准表汇总库", '',null, 0, "error"); return; } @@ -131,10 +131,11 @@ module System{ Configs.customAlert("提示", "操作失败:选择的系统存在没有数据的系统", '',null, 0, "error"); return; } - if(item.dataBaseType == 'ORACLE'){ + item["_key"] = item.areaCode + "-" + item.sysCode + "-" + item.dataVersion; + if(item.dataBaseType == 'ORACLE'){ oracleDB.push(item); }else{ - oracleDB.push(item); + sqlServerDB.push(item); } } } @@ -143,9 +144,16 @@ module System{ /* 此处需要检查数据是否已挂载、正在迁移。 */ + var exitedOracle = Kubernetes.checkForCreateOracle(DataModel.transferTasks, oracleDB); + var exitedSqlServer = Kubernetes.checkForCreateOracle(DataModel.transferTasks, sqlServerDB); + if(exitedSqlServer.length > 0 || exitedOracle.length > 0){ + Configs.customAlert("提示", "操作失败: 正在迁移的数据不能执行校验操作!", '', null, 0, "error"); + return; + } + angular.forEach(oracleDB, (item) =>{ Kubernetes.createRC({ - name: item.areaCode + "-" + item.sysCode + "-" + item.dataVersion, + name: item._key, labels: { system: item.sysCode.toString(), version: item.dataVersion.toString(), @@ -169,16 +177,13 @@ module System{ $location.path('/kubernetes/namespace/default/replicationControllers'); }, 500); } - - if(sqlServerDB.length <= 0) - return; - + $http({ url: "/java/console/api/checkout/checkList", method: "POST", - data: sqlServerDB + data: oracleDB }).success((data, header, config, status) => { - $scope.tableData = data.data; + /*$scope.tableData = data.data; var result = []; if($scope.y != 'all'){ angular.forEach($scope.tableData, (item) =>{ @@ -191,10 +196,10 @@ module System{ $scope.tableParams.settings({ dataset: result - }); + });*/ }).error((data, header, config, status) => { throw "请求失败" - }); + }); } } // watch for check all checkbox