Authored by zhengyouwei

update

... ... @@ -114,6 +114,7 @@ public class WorkSystemCtrl {
public int createReleaseWorkJob(@RequestBody ReleaseWorkJob releaseWorkJob, HttpSession session) {
User user = (User) session.getAttribute("user");
releaseWorkJob.setDevelop(user.getName());
releaseWorkJob.setEnvironment(releaseWorkJob.getEnvironment().substring(1));
BaseResponse<Integer> baseResponse = httpRestClient.defaultPost(HttpUriContants.CREATE_RELEASEWORKJOB, releaseWorkJob, BaseResponse.class);
return baseResponse.getData();
}
... ...
... ... @@ -184,7 +184,7 @@
var platform = $('input:radio[name=platform]:checked').val();
var envuronments = "";
$('input[name="environment"]:checked').each(function () {
envuronments = envuronments + "|" + $(this).val();//向数组中添加元素
envuronments = envuronments + "," + $(this).val();//向数组中添加元素
});
var project = $("#prjects option:selected").val();
var test = $("#test option:selected").val();
... ...
... ... @@ -147,7 +147,7 @@
<button type="button" class="btn btn-primary" onclick="editWork(${pendingJob.id},'${pendingJob.type}',3)">拒绝</button>
</c:otherwise>
</c:choose>
<button type="button" class="btn btn-danger" onclick="editWork(${pendingJob.id},${pendingJob.type},-1)">关闭</button>
<button type="button" class="btn btn-danger" onclick="editWork(${pendingJob.id},'${pendingJob.type}',-1)">关闭</button>
</div>
</div>
</c:if>
... ...