123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>任务详情</title>
- <link rel="stylesheet" href="/css/assist/successPage.css">
- <base href="./assets/svg/">
- </head>
- <body>
- <div class="hgc_layout">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="hgc_headOPerator">
- <div class="menuBtn" id="hgc_scanUploadBtn">
- <img src="/images/assist/icon_hgc_menu.svg" />
- <span class="btnText">扫描上传管理</span>
- </div>
- </div>
- <div class="hgc_content">
- <div class="hgc_siderBar" id="hgc_siderBar">
- <div class="menuBtn" id="hgc_hideMenuBtn">
- <img src="/images/assist/icon_hgc_menu.svg" />
- <span class="btnText">扫描上传管理</span>
- </div>
- <ul class="menuList">
- <li>
- <a href="<?php echo $this->createUrl('third/exam_list',array('exam_group_id'=>$exam_group_id,'grade'=>$grade,'branch'=>$branch))?>" >考试详情管理</a>
- </li>
- <li>
- <a >扫描上传管理</a>
- </li>
- <!--<li>
- <a>阅卷监控管理</a>
- </li>-->
- <li class="back" id="hgc_menuBack">
- <a href="<?php echo $this->createUrl('third/index')?>"> <img src="/images/assist/icon_hgc_back.svg" alt=""> 返回</a>
- </li>
- </ul>
- </div>
- <script>
- var scanMenuBtn = document.getElementById('hgc_scanUploadBtn');
- var scanMenu = document.getElementById('hgc_siderBar')
- var scanMenuBack = document.getElementById('hgc_menuBack')
- var scanMenuHideBtn = document.getElementById('hgc_hideMenuBtn')
- scanMenuBtn.addEventListener('click',function(){
- var originMeunText = scanMenuBtn.lastElementChild.innerText;
- scanMenu.style.top = $(scanMenuBtn).offset().top - $(window).scrollTop()+'px'
- scanMenu.className = 'hgc_siderBar active'
- scanMenuHideBtn.lastElementChild.innerText = originMeunText
- })
- scanMenuBack.addEventListener('click',function(){
- scanMenu.className = 'hgc_siderBar'
- })
- scanMenuHideBtn.addEventListener('click',function(){
- scanMenu.className = 'hgc_siderBar'
- })
- $(document).scroll(function(){
- console.log($(scanMenuBtn).offset().top)
- scanMenu.style.top = $(scanMenuBtn).offset().top - $(window).scrollTop() +'px'
- })
- </script>
- <div class="module abstract">
- <h2>
- <span>扫描上传摘要</span>
- </h2>
- <div class="content">
- <div class="item">
- <div class="pic">
- <img src="/images/assist/icon_hgc_plan.svg" alt="">
- </div>
- <div class="data">
- <h3><?php echo $task['count']['total']?></h3>
- <span>计划上传 (人)
- <strong>
- <img src="/images/assist/icon_hgc_notice.svg">
- <i>计划上传人数为实际参加考试的人数,不包含已删除的学生</i>
- </strong>
- </span>
- </div>
- </div>
- <div class="item">
- <div class="pic">
- <img src="/images/assist/icon_hgc_already.svg" alt="">
- </div>
- <div class="data">
- <h3><?php echo $task['count']['is_feedback']?></h3>
- <span>已上传 (人)</span>
- </div>
- </div>
- <div class="item">
- <div class="pic">
- <img src="/images/assist/icon_hgc_absent.svg" alt="">
- </div>
- <div class="data">
- <h3><?php echo $task['count']['is_del']?></h3>
- <span>缺考 (人)
- <strong>
- <img src="/images/assist/icon_hgc_notice.svg">
- <i>缺考人数包含扫描标记缺考的学生数与已删除的学生数</i>
- </strong>
- </span>
- </div>
- </div>
- <div class="item">
- <div class="pic">
- <img src="/images/assist/icon_hgc_abnormal.svg" alt="">
- </div>
- <div class="data">
- <h3><?php echo $task['count']['abnormal']?></h3>
- <span>
- 云端异常总量
- <strong>
- <img src="/images/assist/icon_hgc_notice.svg">
- <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
- </strong>
- </span>
- </div>
- </div>
- <div class="item">
- <div class="pic">
- <img src="/images/assist/icon_hgc_surplus.svg" alt="">
- </div>
- <div class="data">
- <h3><?php echo $task['count']['surplus']?></h3>
- <span>
- 云端剩余异常
- <strong>
- <img src="/images/assist/icon_hgc_notice.svg">
- <i>异常数量不是以“人”为单位,其包含了缺页、异常图像等异常数据</i>
- </strong>
- </span>
- </div>
- </div>
- </div>
- </div>
- <div class="module artical">
- <h2>
- <span>云处理详情</span>
- <div class="btns">
- <?php
- if(isset($task['scan_task'])) {
- if ($task['scan_task'] == 3 || $task['scan_task'] == 4) {
- if ($task['count']['surplus'] == 0) {
- echo '<div class="hbtn disabled">处理云端剩余异常</div>';
- echo '<div class="hbtn disabled">重新发送云端处理</div>';
- } else {
- echo '<div class="hbtn resend">重新发送云端处理</div>';
- echo '<div class="hbtn startScan">处理云端剩余异常</div>';
- }
- } elseif ($task['scan_task'] == 1) {
- echo '<div class="hbtn cancel_btn">撤回云处理</div>';
- } elseif ($task['scan_task'] == 2) {
- echo '<div class="hbtn disabled">撤回云处理</div>';
- }
- }
- ?>
- </div>
- </h2>
- <div class="content">
- <?php
- if(isset($task['scan_task']) && $task['count']['abnormal']>0) {
- ?>
- <span>发送时间:<?php echo date('Y-m-d H:i:s',$task['scan_task_create_time'])?>
- <strong class="notice">
- <img src="/images/assist/icon_hgc_notice.svg">
- <i>
- <?php
- echo '首次:'.date('Y-m-d H:i:s',$task['scan_task_create_time']).'<br>';
- echo '最新:'.date('Y-m-d H:i:s',$task['resend_time'])
- ?>
- </i>
- </strong>
- </span>
- <span>状态:<i class="theme">
- <?php
- if($task['scan_task']==1){
- echo '排队中';
- }elseif($task['scan_task']==2){
- echo '受理中';
- }elseif($task['scan_task']==3){
- echo '已完成';
- }elseif($task['scan_task']==4){
- echo '已撤消';
- }
- ?>
- </i></span>
- <!-- <span>受理专家:<?php echo $task['user']?></span>-->
- <span>用时:<?php echo $task['AstConsuming']?></span>
- <?php
- }else{
- echo '<div style="text-align: center;width:100%;">本场考试无云端异常数据</div>';
- }
- ?>
- </div>
- </div>
- </div>
- <div class="hgc_dialog" style="display: none">
- <div class="hgc_dialogContent">
- <h2>提示 <i class="close btn-colse">x</i></h2>
- <div class="content" style="text-align: center">
- 当前版本不支持该功能,请升级至2.0.4及以上版本
- </div>
- <div class="btns">
- <!-- <div class="hbtn up-form" >确定</div>
- <div class="hbtn btn-colse" id="">取消</div>-->
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
- <script>
- var mySignInfo='<?php if(isset($task['my_sign_info'])){ echo $task['my_sign_info'];}else{ echo '';}?>';
- var examGroupId='<?php echo $exam_group_id?>';
- var versionNumber=parseInt('<?php echo $version_number?>');
- $.ajax({
- url:'<?php echo $this->createUrl('print/getSurplus')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:examGroupId},
- success:function(res){
- if(res.status==1){
- evaluationClient.HanlerExcPaper(examGroupId+","+mySignInfo);
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- res.msg('参数异常');
- }
- window.location.reload();
- }
- }
- });
-
- });
- $('.btn-colse').click(function(){
- $('.hgc_dialog').hide();
- });
- $('.up-form').click(function(){
- evaluationClient.CallLocalFunc("UpdateExe","");
- });
- $('.resend').click(function(){
- if(versionNumber<2040000){
- $('.hgc_dialog').show();
- }else{
- $.ajax({
- url:'<?php echo $this->createUrl('print/resendScanTask')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:examGroupId},
- success:function (res) {
- if(res.status==1){
- layer.msg('发送成功');
- window.location.reload();
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- layer.msg('发送失败');
- }
- }
- }
- });
- }
- });
- //撤回
- $('.cancel_btn').click(function(){
- if(versionNumber<2040000){
- $('.hgc_dialog').show();
- }else{
- $.ajax({
- url:'<?php echo $this->createUrl('print/cancelScanTask')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:examGroupId},
- success:function (res) {
- if(res.status==1){
- layer.msg('撤回成功');
- window.location.reload();
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- layer.msg('撤回失败');
- }
- }
- }
- });
- }
- });
- </script>
|