Няма описание

changeComprehensiveScores.html 1.9KB

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>分数:</th>
  16. <td>
  17. <input type="text" id="score" onkeyup="value=value.replace(/[^\d]/g,'')" />
  18. </td>
  19. </tr>
  20. <tr>
  21. <th class="">备注:</th>
  22. <td colspan="7"><textarea data-adaptheight id="remark" name="" rows="4" cols=""></textarea></td>
  23. </tr>
  24. </table>
  25. <div class="btn_box">
  26. <button class="btns BC">保存</button>
  27. </div>
  28. </div>
  29. <script src="../js/adjustHeight.js"></script>
  30. <script>
  31. var id = helper.request.queryString("id");
  32. $(document).ready(function () {
  33. $('.BC').click(function () {
  34. JA();
  35. })
  36. });
  37. function JA() {
  38. $.post(huayi.config.callcenter_url + 'Department/Comprehensive', {
  39. deptid: id,
  40. Score: $("#score").val(),
  41. Remarks: $("#remark").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. console.log(index);
  48. parent.layer.close(index); //再执行关闭
  49. parent.initTable();
  50. parent.layer.msg("操作成功");
  51. }
  52. })
  53. }
  54. </script>
  55. </body>
  56. </html>