checkApproved.zml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <script>
  2. function doApproved()
  3. {
  4. var ajax = new Z.Ajax();
  5. ajax.setClassName("RegCheckApprovedAction");
  6. ajax.setMethodName("checkApproved");
  7. ajax.addParam("questionsId",Z("#questionsId").val());
  8. ajax.addParam("orgId",Z("#orgId").val());
  9. ajax.addParam("designerGroupId",Z("#designerGroupId").val());
  10. ajax.addParam("score",Z("#score").val());
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
  14. });
  15. ajax.setLoading("doApproved", '正在提交', {disabled:true});
  16. ajax.execute();
  17. }
  18. </script>
  19. <form name="checkApproved" action="javascript:void(0);">
  20. <input id="questionsId" type="hidden" value="${questionsId}">
  21. <table class="z-table z-bordered z-bg-white z-text-left z-pd-l10">
  22. <table class="z-table z-bordered z-pd6 z-bg-white">
  23. <tr class="z-h40" bgcolor="#ffffff">
  24. <td>分配组织:
  25. <select name="orgId" id="orgId" class="z-select z-w150" data-role="z-select" data-class=" ${zmr_color_class}" data-options="maxHeight:120" >
  26. <#for item : orgList>
  27. <option value="${item.getOrgId()}">${item.getOrgName()}</option>
  28. </#for>
  29. </select>
  30. </td>
  31. </tr>
  32. <tr id="address">
  33. <td>接单规则:
  34. <select name="designerGroupId" id="designerGroupId" class="z-select z-w150" data-role="z-select" data-class=" ${zmr_color_class}" data-options="maxHeight:120" >
  35. <#for item : designerGroupList>
  36. <option value="${item.getDesignerGroupId()}">${item.getDesignerGroupName()}</option>
  37. </#for>
  38. </select>
  39. </td>
  40. </tr>
  41. <tr class="z-h40" >
  42. <td>初始积分:
  43. <input type="text" class="${zmr_color_class} z-input z-w150" id="score" name="score" data-options="type:Integer;paste:true;" maxlength="5">
  44. </td>
  45. </tr>
  46. </table>
  47. </form>
  48. <#-- 操作 -->
  49. <div class="z-absolute z-w100p z-h50 z-text-center z-bg-gray" style="bottom:0;left:0">
  50. <button id="doApproved" class="z-button z-w100 z-h30 z-mg-t15 z-mg-l5 zi-px14 ${zmr_color_class}" type="button" onclick="doApproved();">提交</button>
  51. <button class="z-button z-w100 z-h30 z-mg-t15 z-mg-l5 z-mg-l20 zi-px14" type="button" onclick="parent.Z.Dialog.close();">关闭</button>
  52. </div>