checkApproved.zml 2.4 KB

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