Commit 26ae011308b4eeef58372e80d63c3db34876aae4
1 parent
84188eb7
时刻模板上传添加是否启用选项
Showing
3 changed files
with
16 additions
and
7 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -1030,13 +1030,13 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 1030 | 1030 | } |
| 1031 | 1031 | sBufferC.append("</BCList>"); |
| 1032 | 1032 | sBufferC.append("</SKB>"); |
| 1033 | + sBufferA = new StringBuffer(); | |
| 1034 | + sBufferA.append("<JHZLC>").append(df.format(zlc)).append("</JHZLC>"); | |
| 1035 | + sBufferA.append("<JHYYLC>").append(df.format(yylc)).append("</JHYYLC>"); | |
| 1036 | + sBuffer.append(sBufferA).append(sBufferB).append(sBufferC); | |
| 1033 | 1037 | } |
| 1034 | 1038 | } |
| 1035 | - | |
| 1036 | - sBufferA = new StringBuffer(); | |
| 1037 | - sBufferA.append("<JHZLC>").append(df.format(zlc)).append("</JHZLC>"); | |
| 1038 | - sBufferA.append("<JHYYLC>").append(df.format(yylc)).append("</JHYYLC>"); | |
| 1039 | - sBuffer.append(sBufferA).append(sBufferB).append(sBufferC).append("</SKBs>"); | |
| 1039 | + sBuffer.append("</SKBs>"); | |
| 1040 | 1040 | if(ssop.setSKB(userNameOther, passwordOther, sBuffer.toString()).isSuccess()){ |
| 1041 | 1041 | result = "success"; |
| 1042 | 1042 | SKBUploadLogger skbUploadLogger ; | ... | ... |
src/main/resources/static/pages/trafficManage/js/timeTempletUpload.js
| ... | ... | @@ -95,9 +95,15 @@ |
| 95 | 95 | var inputs = $(".param input,select"); |
| 96 | 96 | // 遍历数组 |
| 97 | 97 | $.each(inputs, function(i, element) { |
| 98 | - params[$(element).attr("name")] = $(element).val(); | |
| 98 | + if($(element).attr("type") == 'checkbox'){ | |
| 99 | + if($(element).is(':checked')){ | |
| 100 | + params[$(element).attr("name")] = $(element).val(); | |
| 101 | + } | |
| 102 | + }else{ | |
| 103 | + params[$(element).attr("name")] = $(element).val(); | |
| 104 | + } | |
| 99 | 105 | }); |
| 100 | - params["isCancel_ne"] = true;// 过滤作废时刻表 | |
| 106 | + //params["isCancel_ne"] = true;// 过滤作废时刻表 | |
| 101 | 107 | var i = layer.load(2); |
| 102 | 108 | $get('/tic_ec', params, function(data) { |
| 103 | 109 | var content = data.data.content; | ... | ... |
src/main/resources/static/pages/trafficManage/timeTempletUpload.html
| ... | ... | @@ -16,6 +16,9 @@ |
| 16 | 16 | <span class="item-label" style="width: 80px;">模板名称(关键字): </span> |
| 17 | 17 | <input class="form-control" type="text" id="tempName" name="name_like" style="width: 180px;"/> |
| 18 | 18 | </div> |
| 19 | + <div style="display: inline-block;margin-left: 15px;" class="param"> | |
| 20 | + <input type="checkbox" class="group-checkable icheck" name="isEnableDisTemplate_eq" value="true" checked> 是否启用 | |
| 21 | + </div> | |
| 19 | 22 | <div class="form-group" style="display: inline-block;margin-left: 15px;"> |
| 20 | 23 | <input class="btn btn-default" type="button" id="search" value="查询"/> |
| 21 | 24 | <input class="btn btn-default" type="button" id="upload" value="上传"/> | ... | ... |