Commit cc96fe441b3d7fd9434c8baca15e27fdbcc671ef
1 parent
873f0345
1.新增临加班次回车保存时多保存一条记录(点击保存按钮无此情况)
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/add_two_way.html
| @@ -294,7 +294,8 @@ | @@ -294,7 +294,8 @@ | ||
| 294 | var fs = $('.add-sch-form', wrap); | 294 | var fs = $('.add-sch-form', wrap); |
| 295 | fs.on('success.form.fv', function (e) { | 295 | fs.on('success.form.fv', function (e) { |
| 296 | e.preventDefault(); | 296 | e.preventDefault(); |
| 297 | - dataArray.push($(this).serializeJSON()); | 297 | + if (!$(this).data('valid')) |
| 298 | + dataArray.push($(this).serializeJSON()); | ||
| 298 | $(this).data('valid', true); | 299 | $(this).data('valid', true); |
| 299 | if (allValidSuccess()) { | 300 | if (allValidSuccess()) { |
| 300 | //开始post | 301 | //开始post |