12345市长热线标准版-前端

Leader.html 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>领导批示</title>
  10. </head>
  11. <body>
  12. <div class="Common">
  13. <table>
  14. <tr>
  15. <th class="Importent">批示人:</th>
  16. <td> <input type="text" id="superuser"/></td>
  17. </tr>
  18. <tr>
  19. <th class="Importent">批示内容:</th>
  20. <td colspan="2"><textarea id="superopinion" name="" rows="" cols=""></textarea></td>
  21. </tr>
  22. <!--<tr>
  23. <th>附件上传:</th>
  24. <td colspan="7">
  25. <input type="text" placeholder="输入附件详情" style="width:66%" />
  26. </td>
  27. </tr>-->
  28. </table>
  29. <div class="btn_box">
  30. <button class="btns">保存</button>
  31. </div>
  32. </div>
  33. <script src="../css/laydate/laydate.js"></script>
  34. <script>
  35. var wid = helper.request.queryString("wid");
  36. $(document).ready(function() {
  37. $(".btns").click(function(){
  38. JA();
  39. })
  40. })
  41. //批示
  42. function JA() {
  43. $.post(huayi.config.callcenter_url + 'WorkOrder/SuperWorkOrder', {
  44. workorderid: wid,
  45. type:1,//(1领导批示 2市长指示)
  46. superuser:$("#superuser").val(),//批示人&
  47. superopinion:$('#superopinion').val(),//批示内容&
  48. files:1,//附件id(多个用英文逗号,隔开
  49. "token": $.cookie("token")
  50. }, function(result) {
  51. result = JSON.parse(result);
  52. if(result.state.toLowerCase() == "success") {
  53. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  54. parent.layer.close(index); //再执行关闭
  55. parent.load();
  56. parent.layer.msg("操作成功");
  57. }
  58. })
  59. }
  60. </script>
  61. </body>
  62. </html>