123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <!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('print/class_exam',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('print/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>
- </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?>');
- $('.startScan').click(function(){
- $.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>
|