scan_detail.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>任务详情</title>
  7. <link rel="stylesheet" href="/css/assist/successPage.css">
  8. <base href="./assets/svg/">
  9. </head>
  10. <body>
  11. <div class="hgc_layout">
  12. <!-- 导航栏开始-->
  13. <?php include(Yii::app()->basePath.'/views/layouts/view_navigation.php');?>
  14. <!-- 导航栏结束-->
  15. <div class="hgc_headOPerator">
  16. <div class="menuBtn" id="hgc_scanUploadBtn">
  17. <img src="/images/assist/icon_hgc_menu.svg" />
  18. <span class="btnText">扫描上传管理</span>
  19. </div>
  20. </div>
  21. <div class="hgc_content">
  22. <div class="hgc_siderBar" id="hgc_siderBar">
  23. <div class="menuBtn" id="hgc_hideMenuBtn">
  24. <img src="/images/assist/icon_hgc_menu.svg" />
  25. <span class="btnText">扫描上传管理</span>
  26. </div>
  27. <ul class="menuList">
  28. <li>
  29. <a href="<?php echo $this->createUrl('print/class_exam',array('exam_group_id'=>$exam_group_id,'grade'=>$grade,'branch'=>$branch))?>" >考试详情管理</a>
  30. </li>
  31. <li>
  32. <a >扫描上传管理</a>
  33. </li>
  34. <!--<li>
  35. <a>阅卷监控管理</a>
  36. </li>-->
  37. <li class="back" id="hgc_menuBack">
  38. <a href="<?php echo $this->createUrl('print/index')?>"> <img src="/images/assist/icon_hgc_back.svg" alt=""> 返回</a>
  39. </li>
  40. </ul>
  41. </div>
  42. <script>
  43. var scanMenuBtn = document.getElementById('hgc_scanUploadBtn');
  44. var scanMenu = document.getElementById('hgc_siderBar')
  45. var scanMenuBack = document.getElementById('hgc_menuBack')
  46. var scanMenuHideBtn = document.getElementById('hgc_hideMenuBtn')
  47. scanMenuBtn.addEventListener('click',function(){
  48. var originMeunText = scanMenuBtn.lastElementChild.innerText;
  49. scanMenu.style.top = $(scanMenuBtn).offset().top - $(window).scrollTop()+'px'
  50. scanMenu.className = 'hgc_siderBar active'
  51. scanMenuHideBtn.lastElementChild.innerText = originMeunText
  52. })
  53. scanMenuBack.addEventListener('click',function(){
  54. scanMenu.className = 'hgc_siderBar'
  55. })
  56. scanMenuHideBtn.addEventListener('click',function(){
  57. scanMenu.className = 'hgc_siderBar'
  58. })
  59. $(document).scroll(function(){
  60. console.log($(scanMenuBtn).offset().top)
  61. scanMenu.style.top = $(scanMenuBtn).offset().top - $(window).scrollTop() +'px'
  62. })
  63. </script>
  64. <div class="module abstract">
  65. <h2>
  66. <span>扫描上传摘要</span>
  67. </h2>
  68. <div class="content">
  69. <div class="item">
  70. <div class="pic">
  71. <img src="/images/assist/icon_hgc_plan.svg" alt="">
  72. </div>
  73. <div class="data">
  74. <h3><?php echo $task['count']['total']?></h3>
  75. <span>计划上传 (人)
  76. <strong>
  77. <img src="/images/assist/icon_hgc_notice.svg">
  78. <i>计划上传人数为实际参加考试的人数,不包含已删除的学生</i>
  79. </strong>
  80. </span>
  81. </div>
  82. </div>
  83. <div class="item">
  84. <div class="pic">
  85. <img src="/images/assist/icon_hgc_already.svg" alt="">
  86. </div>
  87. <div class="data">
  88. <h3><?php echo $task['count']['is_feedback']?></h3>
  89. <span>已上传 (人)</span>
  90. </div>
  91. </div>
  92. <div class="item">
  93. <div class="pic">
  94. <img src="/images/assist/icon_hgc_absent.svg" alt="">
  95. </div>
  96. <div class="data">
  97. <h3><?php echo $task['count']['is_del']?></h3>
  98. <span>缺考 (人)
  99. <strong>
  100. <img src="/images/assist/icon_hgc_notice.svg">
  101. <i>缺考人数包含扫描标记缺考的学生数与已删除的学生数</i>
  102. </strong>
  103. </span>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="hgc_dialog" style="display: none">
  110. <div class="hgc_dialogContent">
  111. <h2>提示 <i class="close btn-colse">x</i></h2>
  112. <div class="content" style="text-align: center">
  113. 当前版本不支持该功能,请升级至2.0.4及以上版本
  114. </div>
  115. <div class="btns">
  116. <!--<div class="hbtn up-form" >确定</div>
  117. <div class="hbtn btn-colse" id="">取消</div>-->
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </body>
  123. </html>
  124. <script>
  125. var mySignInfo='<?php if(isset($task['my_sign_info'])){ echo $task['my_sign_info'];}else{ echo '';}?>';
  126. var examGroupId='<?php echo $exam_group_id?>';
  127. var versionNumber=parseInt('<?php echo $version_number?>');
  128. $('.startScan').click(function(){
  129. $.ajax({
  130. url:'<?php echo $this->createUrl('print/getSurplus')?>',
  131. type:'POST',
  132. dataType:'json',
  133. data:{exam_group_id:examGroupId},
  134. success:function(res){
  135. if(res.status==1){
  136. evaluationClient.HanlerExcPaper(examGroupId+","+mySignInfo);
  137. }else{
  138. if(res.msg!=undefined){
  139. layer.msg(res.msg);
  140. }else{
  141. res.msg('参数异常');
  142. }
  143. window.location.reload();
  144. }
  145. }
  146. });
  147. });
  148. $('.btn-colse').click(function(){
  149. $('.hgc_dialog').hide();
  150. });
  151. $('.up-form').click(function(){
  152. evaluationClient.CallLocalFunc("UpdateExe","");
  153. });
  154. $('.resend').click(function(){
  155. if(versionNumber<2040000){
  156. $('.hgc_dialog').show();
  157. }else{
  158. $.ajax({
  159. url:'<?php echo $this->createUrl('print/resendScanTask')?>',
  160. type:'POST',
  161. dataType:'json',
  162. data:{exam_group_id:examGroupId},
  163. success:function (res) {
  164. if(res.status==1){
  165. layer.msg('发送成功');
  166. window.location.reload();
  167. }else{
  168. if(res.msg!=undefined){
  169. layer.msg(res.msg);
  170. }else{
  171. layer.msg('发送失败');
  172. }
  173. }
  174. }
  175. });
  176. }
  177. });
  178. //撤回
  179. $('.cancel_btn').click(function(){
  180. if(versionNumber<2040000){
  181. $('.hgc_dialog').show();
  182. }else{
  183. $.ajax({
  184. url:'<?php echo $this->createUrl('print/cancelScanTask')?>',
  185. type:'POST',
  186. dataType:'json',
  187. data:{exam_group_id:examGroupId},
  188. success:function (res) {
  189. if(res.status==1){
  190. layer.msg('撤回成功');
  191. window.location.reload();
  192. }else{
  193. if(res.msg!=undefined){
  194. layer.msg(res.msg);
  195. }else{
  196. layer.msg('撤回失败');
  197. }
  198. }
  199. }
  200. });
  201. }
  202. });
  203. </script>