fun.ejs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <% include ./sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>功能设置</h2>
  6. </div>
  7. </div>
  8. <div class="content-wrap">
  9. <div class="c-body">
  10. <div class="sjs-height-0">
  11. <div class="row m-0 mt-3">
  12. <div class="col-6">
  13. <div class="form-group">
  14. <label>中间计量模式设置</label>
  15. <div>
  16. <% for (const i in imType) { %>
  17. <div class="form-check form-check-inline">
  18. <input class="form-check-input" type="radio" id="radio_<%- i %>" value="<%- imType[i].value %>" <% if (funRela.imType === imType[i].value) { %>checked<% } %> name="im_type" onchange="updateSetting();">
  19. <label class="form-check-label" for="radio_<%- i %>" name="im_type"><%- imType[i].name %></label>
  20. </div>
  21. <% } %>
  22. </div>
  23. <div>
  24. <label class="form-text text-danger">切换模式,仅对未开始第一期计量的标段生效。</label>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <script src="/public/js/setting.js"></script>
  34. <script>
  35. $(() => {
  36. autoFlashHeight();
  37. });
  38. const updateSetting = function () {
  39. postData('/setting/fun/update', {imType: parseInt($('[name=im_type]:checked').val())});
  40. }
  41. </script>