商丘12345 前端

refuseReply.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. .m-kuang {
  11. width: 50%;
  12. background-color: #FFF;
  13. background-image: none;
  14. border: 1px solid #ccc;
  15. border-radius: 1px;
  16. color: inherit;
  17. padding: 6px 12px;
  18. outline: none;
  19. vertical-align: middle;
  20. }
  21. table th {
  22. width: 20%;
  23. text-align: right;
  24. border-top: 0!important;
  25. }
  26. table td {
  27. border-top: 0!important;
  28. }
  29. .content {
  30. margin-top: 15px;
  31. }
  32. .selectTwo{
  33. width: 45%;
  34. margin-right: 5%;
  35. }
  36. #SecondCategoryCode{
  37. display: none;
  38. }
  39. </style>
  40. </head>
  41. <body class="gray-bg">
  42. <div class="container-fluid wrapper-content animated fadeInRight">
  43. <div class="content">
  44. <table class="table">
  45. <tr>
  46. <th>
  47. <b>内容:</b>
  48. </th>
  49. <td>
  50. <textarea data-adaptheight id="KINFO_REASON" name="content" style="width: 80%;height: 200px;"></textarea>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td colspan="2" class="text-center">
  55. <button class="btns tiJiao">提交</button>
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. </div>
  61. <script src="../../css/layer/layer.js"></script>
  62. <script>
  63. var id =helper.request.queryString("id")
  64. var url;
  65. console.log(id)
  66. $(document).ready(function(){
  67. })
  68. $('.tiJiao').click(function(){
  69. add()
  70. });
  71. function add(){
  72. $.ajax({
  73. type:"post",
  74. url:huayi.config.callcenter_url+'Affairs/kinfo_refuse',
  75. async:true,
  76. dataType:'json',
  77. data:{
  78. token:$.cookie("token"),
  79. id:id,
  80. KINFO_REASON:$("#KINFO_REASON").val(), //拒绝答复原因
  81. },
  82. success:function(data){
  83. if(data.state.toLowerCase()=="success"){
  84. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  85. parent.layer.close(index); //再执行关闭
  86. parent.initTable(id);
  87. parent.layer.msg("拒绝成功");
  88. }
  89. }
  90. });
  91. }
  92. </script>
  93. </body>
  94. </html>