Commit a1c978661f3425d306e32ad287b820f85a0e4fd5
1 parent
00055a2f
线调,时间超出待发时候后,锁定待发,禁止修改待发时间
Showing
1 changed file
with
24 additions
and
24 deletions
src/main/resources/static/real_control_v2/fragments/north/nav/signal_state_config.html
| ... | ... | @@ -19,13 +19,13 @@ |
| 19 | 19 | <option value="1">启用</option> |
| 20 | 20 | <option value="0">禁用</option> |
| 21 | 21 | </select> |
| 22 | - <hr/> | |
| 22 | +<!-- <hr/>--> | |
| 23 | 23 | </div> |
| 24 | 24 | |
| 25 | - <label class="uk-form-label">待发预留时间(分)</label> | |
| 25 | + <!--<label class="uk-form-label">待发预留时间(分)</label> | |
| 26 | 26 | <div class="uk-form-controls"> |
| 27 | 27 | <input type="text" name="dfsj" id ="dfsj" placeholder="请输入1~60(分钟)"> |
| 28 | - </div> | |
| 28 | + </div>--> | |
| 29 | 29 | </div> |
| 30 | 30 | </div> |
| 31 | 31 | </div> |
| ... | ... | @@ -40,14 +40,14 @@ |
| 40 | 40 | <script> |
| 41 | 41 | (function() { |
| 42 | 42 | |
| 43 | - $.ajax({ | |
| 43 | + /* $.ajax({ | |
| 44 | 44 | type: 'post', |
| 45 | 45 | url: '/realSchedule/outgoAdjusttwoxc', |
| 46 | 46 | success: function (sj) { |
| 47 | 47 | $("#dfsj").val(sj); |
| 48 | 48 | } |
| 49 | 49 | }) |
| 50 | - | |
| 50 | + */ | |
| 51 | 51 | var modal = '#signal_state_config-modal'; |
| 52 | 52 | var f = $('form', modal); |
| 53 | 53 | |
| ... | ... | @@ -59,7 +59,7 @@ |
| 59 | 59 | |
| 60 | 60 | f.formValidation(gb_form_validation_opts); |
| 61 | 61 | |
| 62 | - | |
| 62 | +/* | |
| 63 | 63 | // 获取表单元素 |
| 64 | 64 | var form = $('#dfsjfrom'); |
| 65 | 65 | // 定义表单异常 |
| ... | ... | @@ -89,7 +89,7 @@ |
| 89 | 89 | |
| 90 | 90 | }, |
| 91 | 91 | }, |
| 92 | - }); | |
| 92 | + });*/ | |
| 93 | 93 | |
| 94 | 94 | f.on('success.form.fv', function(e) { |
| 95 | 95 | e.preventDefault(); |
| ... | ... | @@ -99,25 +99,25 @@ |
| 99 | 99 | gb_signal_state.enable(); |
| 100 | 100 | else |
| 101 | 101 | gb_signal_state.disable(); |
| 102 | - | |
| 103 | - data.dfsj = isnum(data.dfsj); | |
| 102 | + | |
| 103 | + /* data.dfsj = isnum(data.dfsj); | |
| 104 | 104 | if(data.dfsj != null && data.dfsj != "") { |
| 105 | - if (data.dfsj >= 0 && data.dfsj < 60) { | |
| 106 | - $.ajax({ | |
| 107 | - type: 'post', | |
| 108 | - url: '/realSchedule/outgoAdjusttwodfsj', | |
| 109 | - data: {dfsj: data.dfsj}, | |
| 110 | - success: function (sj) { | |
| 111 | - if (sj >= 0 && sj < 60) { | |
| 112 | - notify_succ('操作成功...'); | |
| 113 | - } | |
| 114 | - } | |
| 115 | - }); | |
| 116 | - UIkit.modal(modal).hide(); | |
| 117 | - } | |
| 118 | - } | |
| 105 | + if (data.dfsj >= 0 && data.dfsj < 60) { | |
| 106 | + $.ajax({ | |
| 107 | + type: 'post', | |
| 108 | + url: '/realSchedule/outgoAdjusttwodfsj', | |
| 109 | + data: {dfsj: data.dfsj}, | |
| 110 | + success: function (sj) { | |
| 111 | + if (sj >= 0 && sj < 60) { | |
| 112 | + notify_succ('操作成功...'); | |
| 113 | + } | |
| 114 | + } | |
| 115 | + }); | |
| 116 | + UIkit.modal(modal).hide(); | |
| 117 | + } | |
| 118 | + }*/ | |
| 119 | + UIkit.modal(modal).hide(); | |
| 119 | 120 | }); |
| 120 | - | |
| 121 | 121 | })(); |
| 122 | 122 | //验证输入的是否是数字 |
| 123 | 123 | function isnum(dfsj) { | ... | ... |