12345市长热线标准版-前端

lawsuits.html 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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>
  17. <select class="select_" id="issatisfie">
  18. <option value="">全部</option>
  19. <option value="0">不满意</option>
  20. <option value="1">满意</option>
  21. </select>
  22. </td>
  23. </tr>
  24. <tr>
  25. <th>结案意见:</th>
  26. <td colspan="2"><textarea data-adaptheight id="finalopinion" name="" rows="6" cols=""></textarea></td>
  27. </tr>
  28. </table>
  29. <div class="btn_box">
  30. <button class="btns">保存</button>
  31. </div>
  32. </div>
  33. <script src="../js/adjustHeight.js"></script>
  34. <script>
  35. var wid = helper.request.queryString("wid");
  36. $(document).ready(function() {
  37. $(".btns").click(function(){
  38. JA();
  39. })
  40. })
  41. function JA() {
  42. $.post(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
  43. workorderid: wid,
  44. issatisfie: $("#issatisfie").val(),
  45. finalopinion: $("#finalopinion").val(),
  46. "token": $.cookie("token")
  47. }, function(result) {
  48. result = JSON.parse(result);
  49. if(result.state.toLowerCase() == "success") {
  50. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  51. parent.layer.close(index); //再执行关闭
  52. parent.load();
  53. parent.layer.msg("结案成功");
  54. }
  55. })
  56. }
  57. </script>
  58. </body>
  59. </html>