scan_detail.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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 class="item">
  107. <div class="pic">
  108. <img src="/images/assist/icon_hgc_abnormal.svg" alt="">
  109. </div>
  110. <div class="data">
  111. <h3><?php echo $task['count']['abnormal']?></h3>
  112. <span>
  113. 云端异常总量
  114. <strong>
  115. <img src="/images/assist/icon_hgc_notice.svg">
  116. <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
  117. </strong>
  118. </span>
  119. </div>
  120. </div>
  121. <div class="item">
  122. <div class="pic">
  123. <img src="/images/assist/icon_hgc_surplus.svg" alt="">
  124. </div>
  125. <div class="data">
  126. <h3><?php echo $task['count']['surplus']?></h3>
  127. <span>
  128. 云端剩余异常
  129. <strong>
  130. <img src="/images/assist/icon_hgc_notice.svg">
  131. <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
  132. </strong>
  133. </span>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="module artical">
  139. <h2>
  140. <span>云处理详情</span>
  141. <div class="btns">
  142. <?php
  143. if(isset($task['scan_task'])){
  144. if($task['scan_task']==3 || $task['scan_task']==4){
  145. if($task['count']['surplus']==0){
  146. echo '<div class="hbtn disabled">重新发送云端处理</div>';
  147. echo '<div class="hbtn disabled">处理云端剩余异常</div>';
  148. }else{
  149. echo '<div class="hbtn resend">重新发送云端处理</div>';
  150. echo '<div class="hbtn startScan">处理云端剩余异常</div>';
  151. }
  152. }elseif($task['scan_task']==1 ){
  153. echo '<div class="hbtn cancel_btn">撤回云处理</div>';
  154. }elseif($task['scan_task']==2 ){
  155. echo '<div class="hbtn disabled">撤回云处理</div>';
  156. }
  157. }
  158. ?>
  159. </div>
  160. </h2>
  161. <div class="content">
  162. <?php
  163. if(isset($task['scan_task']) && $task['count']['abnormal']>0) {
  164. ?>
  165. <span>发送时间:<?php echo date('Y-m-d H:i:s', $task['scan_task_create_time']) ?>
  166. <strong class="notice">
  167. <img src="/images/assist/icon_hgc_notice.svg">
  168. <i>
  169. <?php
  170. echo '首次:' . date('Y-m-d H:i:s', $task['scan_task_create_time']) . '<br>';
  171. echo '最新:' . date('Y-m-d H:i:s', $task['resend_time'])
  172. ?>
  173. </i>
  174. </strong>
  175. </span>
  176. <span>状态:<i class="theme">
  177. <?php
  178. if ($task['scan_task'] == 1) {
  179. echo '排队中';
  180. } elseif ($task['scan_task'] == 2) {
  181. echo '受理中';
  182. } elseif ($task['scan_task'] == 3) {
  183. echo '已完成';
  184. } elseif ($task['scan_task'] == 4) {
  185. echo '已撤消';
  186. }
  187. ?>
  188. </i></span>
  189. <!--<span>受理专家:<?php echo $task['user'] ?></span>-->
  190. <span>用时:<?php echo $task['AstConsuming'] ?></span>
  191. <?php
  192. }else{
  193. echo '<div style="text-align: center;width:100%;">本场考试无云端异常数据</div>';
  194. }
  195. ?>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="hgc_dialog" style="display: none">
  200. <div class="hgc_dialogContent">
  201. <h2>提示 <i class="close btn-colse">x</i></h2>
  202. <div class="content" style="text-align: center">
  203. 当前版本不支持该功能,请升级至2.0.4及以上版本
  204. </div>
  205. <div class="btns">
  206. <!--<div class="hbtn up-form" >确定</div>
  207. <div class="hbtn btn-colse" id="">取消</div>-->
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </body>
  213. </html>
  214. <script>
  215. var mySignInfo='<?php if(isset($task['my_sign_info'])){ echo $task['my_sign_info'];}else{ echo '';}?>';
  216. var examGroupId='<?php echo $exam_group_id?>';
  217. var versionNumber=parseInt('<?php echo $version_number?>');
  218. $('.startScan').click(function(){
  219. $.ajax({
  220. url:'<?php echo $this->createUrl('print/getSurplus')?>',
  221. type:'POST',
  222. dataType:'json',
  223. data:{exam_group_id:examGroupId},
  224. success:function(res){
  225. if(res.status==1){
  226. evaluationClient.HanlerExcPaper(examGroupId+","+mySignInfo);
  227. }else{
  228. if(res.msg!=undefined){
  229. layer.msg(res.msg);
  230. }else{
  231. res.msg('参数异常');
  232. }
  233. window.location.reload();
  234. }
  235. }
  236. });
  237. });
  238. $('.btn-colse').click(function(){
  239. $('.hgc_dialog').hide();
  240. });
  241. $('.up-form').click(function(){
  242. evaluationClient.CallLocalFunc("UpdateExe","");
  243. });
  244. $('.resend').click(function(){
  245. if(versionNumber<2040000){
  246. $('.hgc_dialog').show();
  247. }else{
  248. $.ajax({
  249. url:'<?php echo $this->createUrl('print/resendScanTask')?>',
  250. type:'POST',
  251. dataType:'json',
  252. data:{exam_group_id:examGroupId},
  253. success:function (res) {
  254. if(res.status==1){
  255. layer.msg('发送成功');
  256. window.location.reload();
  257. }else{
  258. if(res.msg!=undefined){
  259. layer.msg(res.msg);
  260. }else{
  261. layer.msg('发送失败');
  262. }
  263. }
  264. }
  265. });
  266. }
  267. });
  268. //撤回
  269. $('.cancel_btn').click(function(){
  270. if(versionNumber<2040000){
  271. $('.hgc_dialog').show();
  272. }else{
  273. $.ajax({
  274. url:'<?php echo $this->createUrl('print/cancelScanTask')?>',
  275. type:'POST',
  276. dataType:'json',
  277. data:{exam_group_id:examGroupId},
  278. success:function (res) {
  279. if(res.status==1){
  280. layer.msg('撤回成功');
  281. window.location.reload();
  282. }else{
  283. if(res.msg!=undefined){
  284. layer.msg(res.msg);
  285. }else{
  286. layer.msg('撤回失败');
  287. }
  288. }
  289. }
  290. });
  291. }
  292. });
  293. </script>