12345市长热线标准版-前端

shizhang.html 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. </table>
  23. <div class="btn_box">
  24. <button class="btns">保存</button>
  25. </div>
  26. </div>
  27. <script src="../css/laydate/laydate.js"></script>
  28. <script>
  29. var wid = helper.request.queryString("wid");
  30. $(document).ready(function() {
  31. $(".btns").click(function(){
  32. JA();
  33. })
  34. })
  35. //批示
  36. function JA() {
  37. $.post(huayi.config.callcenter_url + 'WorkOrder/SuperWorkOrder', {
  38. workorderid: wid,
  39. type:2,//(1领导批示 2市长指示)
  40. superuser:$("#superuser").val(),//批示人&
  41. superopinion:$('#superopinion').val(),//批示内容&
  42. "token": $.cookie("token")
  43. }, function(result) {
  44. result = JSON.parse(result);
  45. if(result.state.toLowerCase() == "success") {
  46. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  47. parent.layer.close(index); //再执行关闭
  48. parent.load();
  49. parent.layer.msg("操作成功");
  50. }
  51. })
  52. }
  53. </script>
  54. </body>
  55. </html>