Authored by bblu

Merge branch 'master' into switch_conf

@@ -12,4 +12,6 @@ public class ProjectBuildReq extends PageRequest { @@ -12,4 +12,6 @@ public class ProjectBuildReq extends PageRequest {
12 12
13 private String environment; 13 private String environment;
14 14
  15 + private int currentStatus;
  16 +
15 } 17 }
@@ -101,6 +101,17 @@ @@ -101,6 +101,17 @@
101 </c:forEach> 101 </c:forEach>
102 </select> 102 </select>
103 </div> 103 </div>
  104 + <div class="input-group" style="float: left;">
  105 + <span class="input-group-addon">状态:</span>
  106 + <select id="currentStatus" name="currentStatus" class="form-control">
  107 + <option value="0"></option>
  108 + <option value="1">正在进行</option>
  109 + <option value="2">成功</option>
  110 + <option value="3">强制退出</option>
  111 + <option value="4">出错退出</option>
  112 +
  113 + </select>
  114 + </div>
104 <button id="searchBtn" class="btn btn-primary" style="margin-left: 18px;">搜索</button> 115 <button id="searchBtn" class="btn btn-primary" style="margin-left: 18px;">搜索</button>
105 </div> 116 </div>
106 </div> 117 </div>
@@ -153,10 +164,10 @@ @@ -153,10 +164,10 @@
153 width: "8%" 164 width: "8%"
154 }, { 165 }, {
155 title: "状态", 166 title: "状态",
156 - field: "status", 167 + field: "currentStatus",
157 formatter : function(value, rowData, rowIndex) { 168 formatter : function(value, rowData, rowIndex) {
158 if(value == 1){ 169 if(value == 1){
159 - return '成功'; 170 + return '正在进行';
160 } else if(value == 2){ 171 } else if(value == 2){
161 return '成功'; 172 return '成功';
162 }else if(value == 3){ 173 }else if(value == 3){
@@ -189,9 +200,12 @@ @@ -189,9 +200,12 @@
189 $("#searchBtn").click(function () { 200 $("#searchBtn").click(function () {
190 var currentProject = $("#currentProject").val(); 201 var currentProject = $("#currentProject").val();
191 var environment = $("#environment").val(); 202 var environment = $("#environment").val();
  203 + var currentStatus = $("#currentStatus").val();
  204 +
192 $("#historyTable").table("load", { 205 $("#historyTable").table("load", {
193 'currentProject': currentProject, 206 'currentProject': currentProject,
194 - 'environment': environment 207 + 'environment': environment,
  208 + 'currentStatus': currentStatus
195 }); 209 });
196 }); 210 });
197 211
@@ -211,3 +211,14 @@ @@ -211,3 +211,14 @@
211 211
212 </script> 212 </script>
213 213
  214 +<script>
  215 + document.onkeydown = function()
  216 + {
  217 + if(event.keyCode==116 || event.keyCode==8 || (event.ctrlKey && event.keyCode==82) || event.keyCode == 13) {
  218 + event.keyCode=0;
  219 + event.returnValue = false;
  220 + }
  221 + }
  222 + document.oncontextmenu = function() {event.returnValue = false;}
  223 +
  224 +</script>
@@ -67,6 +67,7 @@ @@ -67,6 +67,7 @@
67 67
68 </body> 68 </body>
69 <script> 69 <script>
  70 +
70 var myArray = new Array(); 71 var myArray = new Array();
71 var removeArray = new Array(); 72 var removeArray = new Array();
72 73
@@ -177,8 +178,17 @@ @@ -177,8 +178,17 @@
177 } 178 }
178 }); 179 });
179 }); 180 });
  181 + }
  182 +</script>
180 183
  184 +<script>
  185 + document.onkeydown = function()
  186 + {
  187 + if(event.keyCode==116 || event.keyCode==8 || (event.ctrlKey && event.keyCode==82) || event.keyCode == 13) {
  188 + event.keyCode=0;
  189 + event.returnValue = false;
  190 + }
181 } 191 }
  192 + document.oncontextmenu = function() {event.returnValue = false;}
182 193
183 </script> 194 </script>
184 -