123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- <!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">
- <script src="/js/assist/drag.js" type="text/javascript"></script>
- <base href="./assets/svg/">
- </head>
- <body>
- <div class="hgc_layout">
- <div class="hgc_totalHeader">
- <?php
- if(Yii::app()->session['user']['role']==2){
- ?>
- <span ><a href="<?php echo $this->createUrl('assistTask/index'); ?>">素材切割任务</a></span>
- <?php
- }else{
- ?>
- <span ><a href="<?php echo $this->createUrl('assistTask/myTask'); ?>">素材切割任务</a></span>
- <?php
- }
- ?>
- <span class="active">扫描处理任务</span>
- </div>
- <div class="hgc_content">
- <div class="module backModule">
- <h2>
- <span>任务详情</span>
- <a href="javascript:history.back(-1);" class="backIcon"><img src="/images/assist/icon_hgc_backPrev.svg" /> 返回</a>
- </h2>
- </div>
- <div class="module artical">
- <h2>
- <span>任务基本信息</span>
- </h2>
- <div class="content">
- <span>考试名称:<?php echo $task['exam_name']?></span>
- <span>考试学科:<?php echo Yii::app()->params['subjectId'][$task['subject_id']]?></span>
- <span>学校名称:<?php echo $task['school_name']?></span>
- <span>学管姓名:<?php echo $task['coach_name']?></span>
- <span>学管手机号:<?php echo $task['coach_mobile']?></span>
- </div>
- </div>
- <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(Yii::app()->session['user']['role']==2){
- if($task['scan_task']==0 || $task['scan_task']==1){
- echo '<div class="hbtn apply">分配操作员</div>';
- }elseif($task['scan_task']==2){
- echo '<div class="hbtn apply">修改操作员</div>';
- }
- }else{
- if($task['count']['surplus']>0 && $task['scan_task']==2){
- echo '<div class="hbtn startScan">去处理</div>';
- }else{
- 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>
- <?php
- if(Yii::app()->session['user']['role']==2){
- ?>
- <span>受理专家:<?php echo $task['user']?></span>
- <?php
- }
- ?>
- <span>用时:<?php echo $task['AstConsuming']?></span>
- <?php
- }else{
- echo '<div style="text-align: center;width:100%;">本场考试无云端异常数据</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">
- <p class="warning">注意:若更改操作员,该次任务的所有任务量统计将计入新的操作员账号下,请谨慎操作!</p>
- <div class="conditionItem">
- <em>选择操作员:</em>
- <select name="user_id" id="user_id" >
- <option value="0">请选择用户</option>
- <?php
- if($users){
- foreach ($users as $user){
- echo '<option value="'.$user['user_id'].'">'.$user['real_name'].'-'.$user['user_name'].'</option>';
- }
- }
- ?>
- </select>
- <input type="hidden" name="exam_group_id" value="0">
- </div>
- </div>
- <div class="btns">
- <input type="hidden" name="exam_id" value="0">
- <input type="hidden" name="file_type" value="">
- <div class="hbtn up-form" id="btnSubmit">确定</div>
- <div class="hbtn btn-colse" id="btnClose">取消</div>
- </div>
- </div>
- </div>
- </body>
- </html>
- <script>
- var mySignInfo='<?php echo $task['my_sign_info']?>';
- var examGroupId='<?php echo $task['exam_group_id']?>';
- var apiUrl='<?php echo $api_url ?>';
- $('.startScan').click(function(){
- $.ajax({
- url:'<?php echo $this->createUrl('assistTask/getSurplus')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:examGroupId},
- success:function(res){
- if(res.status==1){
- evaluationClient.HanlerExcPaper(examGroupId+","+mySignInfo+","+apiUrl);
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- res.msg('参数异常');
- }
- window.location.reload();
- }
- }
- });
- });
- //关闭弹窗
- $(".btn-colse").on("click", function () {
- $('.hgc_dialog').hide();
- });
- $('.apply').click(function(){
- if(examGroupId!=undefined && examGroupId!=''){
- $('input[name=exam_group_id]').val(examGroupId);
- $('.hgc_dialog').show();
- }
- });
- $('.up-form').click(function(){
- var examGroupId= $('input[name=exam_group_id]').val(),
- userId=$('#user_id').val();
- $.ajax({
- url:'<?php echo $this->createUrl('assistTask/applyScan')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:examGroupId,user_id:userId},
- success:function(res){
- if(res.status==1){
- layer.msg('操作成功');
- window.location.reload();
- }else{
- layer.msg('操作失败');
- }
- }
- });
- });
- </script>
|