businessParam.zml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ${sweet_alert_reuse_method()}
  2. ${zhiqim_manager_breadcrumb("公共参数")}
  3. ${zhiqim_manager_content()}
  4. <script>
  5. function doUpdateBusinessParamValue(form){
  6. var ajax = new Z.Ajax();
  7. ajax.setContextPath("${context.getContextPath()}");
  8. ajax.setClassName("BasePresenter");
  9. ajax.setMethodName("doUpdateBusinessParamValue");
  10. ajax.setParamForm(form);
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. swal({title : "修改成功",type : "success",timer: 1000,width:300,showConfirmButton:false});
  14. });
  15. ajax.setLoading(document);
  16. ajax.execute();
  17. }
  18. </script>
  19. <#-- 导航 -->
  20. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  21. <nav>
  22. <ul>
  23. <#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
  24. <li class="z-active">公共参数</li>
  25. <#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
  26. <#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
  27. <#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
  28. <li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
  29. </ul>
  30. </nav>
  31. </div>
  32. <#for group : ParamDao.doQueryBusinessParam().entrySet()>
  33. <table class="z-table z-bordered z-pd10 <#if group_index gt 0>z-mg-t10</#if> z-bg-white">
  34. ${zhiqim_manager_tr_title(4, "业务参数["+group.getKey()+"]列表")}
  35. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  36. <td width="400">业务配置描述</td>
  37. <td width="400">业务配置值</td>
  38. <td width="*">操作</td>
  39. </tr>
  40. ${zhiqim_manager_tr_no_record(group.getValue(), 3, "暂时没有业务参数信息")}
  41. </table>
  42. <#for item : group.getValue().values()>
  43. <form name="theForm${group_index}_${item_index}" method="post" onsubmit="return false;" data-role="z-call-frame">
  44. <input name="paramGroup" type="hidden" value="${item.getParamGroup()}">
  45. <input name="paramKey" type="hidden" value="${item.getParamKey()}">
  46. <table class="z-table z-bd-b z-bordered zi-bd-t-none z-h60-tr z-pd10" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
  47. <tr>
  48. <td width="400">${item.getParamDesc()}</td>
  49. <td width="400"><input name="paramValue" class="z-input z-w100p zi-h40 ${zmr_color_class}" value="${item.getParamValue()}" maxlength="800"></td>
  50. <td width="*"><button type="submit" class="z-button" onclick="doUpdateBusinessParamValue(this.form);">修改</button></td>
  51. </tr>
  52. </table>
  53. </form>
  54. </#for>
  55. </#for>
  56. ${zhiqim_manager_content_end()}