Brak opisu

refuseReply.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 rel="stylesheet" href="../../css/init.css"/>
  8. <title>知识库答复</title>
  9. <style>
  10. table th {
  11. width: 20%;
  12. text-align: right;
  13. border-top: 0!important;
  14. }
  15. table td {
  16. border-top: 0!important;
  17. }
  18. table td textarea{
  19. width: 80%;
  20. height: 200px;
  21. }
  22. </style>
  23. </head>
  24. <body class="gray-bg">
  25. <div class="container-fluid wrapper-content animated fadeInRight">
  26. <table class="table">
  27. <tr>
  28. <th>
  29. <b>内容:</b>
  30. </th>
  31. <td>
  32. <textarea id="KINFO_REASON"></textarea>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td colspan="2" class="text-center">
  37. <button class="btns tiJiao">提交</button>
  38. </td>
  39. </tr>
  40. </table>
  41. </div>
  42. <script src="../../css/layer/layer.js"></script>
  43. <script>
  44. var id =helper.request.queryString("id")
  45. var url;
  46. $(document).ready(function(){})
  47. $('.tiJiao').click(function(){
  48. add()
  49. });
  50. function add(){
  51. $.ajax({
  52. type:"post",
  53. url:huayi.config.callcenter_url+'Affairs/kinfo_refuse',
  54. async:true,
  55. dataType:'json',
  56. data:{
  57. token:$.cookie("token"),
  58. id:id,
  59. KINFO_REASON:$("#KINFO_REASON").val(), //拒绝答复原因
  60. },
  61. success:function(data){
  62. if(data.state.toLowerCase()=="success"){
  63. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  64. parent.layer.close(index); //再执行关闭
  65. parent.initTable(id);
  66. parent.layer.msg("拒绝成功");
  67. }
  68. }
  69. });
  70. }
  71. </script>
  72. </body>
  73. </html>