12345市长热线标准版-前端

Supervision_.html 1.7KB

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 title">督查意见:</th>
  16. <td><textarea id='overseeopinion'textarea name="" rows="" cols=""></textarea></td>
  17. </tr>
  18. </table>
  19. <div class="btn_box">
  20. <button class="btns DB">保存</button>
  21. <button class="btns JC">保存</button>
  22. </div>
  23. </div>
  24. <script >
  25. var wid = helper.request.queryString("wid");
  26. var type=helper.request.queryString("type");
  27. $(document).ready(function() {
  28. if(type==1){
  29. $(".title").text("督办意见")
  30. $(".JC").hide();
  31. }else{
  32. $(".title").text("监察意见")
  33. $(".DB").hide();
  34. }
  35. $(".DB").click(function(){
  36. type=1;
  37. JA();
  38. })
  39. $(".JC").click(function(){
  40. type=2;
  41. JA();
  42. })
  43. })
  44. //督察
  45. function JA() {
  46. $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
  47. workorderid: wid,
  48. overseeopinion:$("#overseeopinion").val(),
  49. type:type,
  50. "token": $.cookie("token")
  51. }, function(result) {
  52. result = JSON.parse(result);
  53. if(result.state.toLowerCase() == "success") {
  54. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  55. parent.layer.close(index); //再执行关闭
  56. parent.load();
  57. parent.layer.msg("操作成功");
  58. }
  59. })
  60. }
  61. </script>
  62. </body>
  63. </html>