123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128 |
- <link rel="stylesheet" href="/css/reset.css">
- <link rel="stylesheet" href="/js/layui/css/layui.css">
- <link href="/css/mission-details.css " rel="stylesheet">
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_navigation.php');?>
- <!-- 导航栏结束-->
- <style>
- p{
- word-wrap: break-word;
- word-break: break-all;
- overflow: hidden;
- }
- </style>
- <div class="mission-details">
- <div class="mission-head">
- <h3>后台协助任务详情
- <span class="highlight-err">
- <i class="layui-icon layui-icon-tips"></i>
- <?php
- if(isset($task) && ($task['answer_sheet_task']==3 || $task['paper_task']==3 || $task['parse_task']==3)) {
- ?>
- 注:后台处理完成后,请您务必检查确认,任何由后台模板制作造成的不良后果,请自行承担!
- <?php
- }
- ?>
- </span>
- <a href="javascript:history.back(-1)" class="fr" style="font-size: 14px">返回</a>
- </h3>
- <p>考试名称:<?php echo $exam_name?></p>
- <p>
- <span>考试学科:<?php echo $subject?></span>
- <span>考试时间:<?php echo $tpl_data['examDate']?></span>
- <input type="hidden" name="exam_group_id" value="<?php echo $exam_group_id?>">
- </p>
- </div>
- <hr class="layui-bg-gray">
- <div class="mission-card-box">
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">答题卡</span>
- <span class="oblique-line">//////</span>
- </p>
- <?php
- if(isset($task) && $task['answer_sheet_task']>0){
- if($task['answer_sheet_task']==1){
- echo ''; //排队中
- }elseif($task['answer_sheet_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['answer_sheet_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </div>
- <div class="card-content">
- <form action="<?php $this->createUrl('third/sendtask')?>" method="post" enctype="multipart/form-data" id="answer_card_form">
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">答题卡图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传答题卡图片"></i>
- <label class="up-data">
- <?php
- if(!isset($task['answer_sheet_task']) || $task['answer_sheet_task']==4 || $task['answer_sheet_task']==0){
- ?>
- <span>点击上传</span>
- <input type="file" id="fileImg" name="img" accept="image/*"
- style="display: none;" />
- <?php }?>
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="imgPreview">
- <?php
- if(!isset($task['answer_sheet_task']) || $task['answer_sheet_task']==4 || $task['answer_sheet_task']==0){
- echo ' <p class="msg1">请上传答题卡图片</p>';
- }
- if(isset($task['answer_card_img'])){
- $imgArr=explode(',',$task['answer_card_img']);
- foreach ($imgArr as $key => $img){
- if($task['answer_sheet_task']==4 || $task['answer_sheet_task']==0){
- echo '<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="'.$img.'" id="a_'.($key+1).'"></span>';
- }else{
- echo '<span class="img-wrap"><img src="'.$img.'" id="a_'.($key+1).'"></span>';
- }
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷文件</span>
- <i class="layui-icon layui-icon-about open-tips"
- tipstext="请上传考试试卷文件,后台工作人员需要以此作为模板制作的参考依据"></i>
- <label class="up-data">
- <?php
- if(!isset($task['answer_sheet_task']) || $task['answer_sheet_task']==4 || $task['answer_sheet_task']==0){
- ?>
- <span>点击上传</span>
- <input type="file" id="fileDoc" name="doc" style="display: none;" />
- <?php } ?>
- </label>
- </div>
- <div class="card-item-title" style="margin-left: 24px">
- <span class="must"> *</span>
- <span class="">试卷文件中,需体现出</span>
- <span class="highlight-green">题型信息</span><br />
- <span class="highlight-green">(单选/多选/填空/解答/选做等)、分值信息、选项答案</span>
- </div>
- <?php
- if(isset($task['paper_file_img'])){
- if($task['paper_file_title']){
- $paperFileName=$task['paper_file_title'];
- }else{
- preg_match('/\/([^\/]+\.[a-z]+)[^\/]*$/',$task['paper_file_img'],$match);
- $paperFileName=$match[1];
- }
- echo '<input type="hidden" name="paperDoc" value="'.$task['paper_file_img'].'">';
- echo '<input type="hidden" name="paperDocTitle" value="'.$task['paper_file_title'].'">';
- echo '<div class="card-item-content paperFileLink"><a href="'.$task['paper_file_img'].'" id="docName">试卷:'.$paperFileName.'</a></div>';
- }else{
- echo '<input type="hidden" name="paperDoc" value="">';
- echo '<input type="hidden" name="paperDocTitle" value="">';
- echo '<div class="card-item-content paperFileLink"><a href="#">试卷:考试试卷文件名称.后缀名</a></div>';
- }
- ?>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">考号类型</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请选择您当前需要使用的考号类型"></i>
- </div>
- <div class="card-item-content">
- <?php
- $check[1]='';
- $check[2]='';
- if($task['number_type']){
- if($task['number_type']==1){
- $check[1]='checked';
- }elseif($task['number_type']==2){
- $check[2]='checked';
- }elseif($task['number_type']==3){
- $check[1]='checked';
- $check[2]='checked';
- }
- }
- ?>
- <label><input type="checkbox" class="card_type" name="testNumberType" <?php echo $check[1]?> value="1" />填涂考号</label>
- <label><input type="checkbox" class="card_type" name="testNumberType" <?php echo $check[2]?> value="2" />条形码</label>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <textarea name="answer_card_remark" id="answer_card_remark" cols="60" rows="4"><?php echo $task['answer_card_mark']?></textarea>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- <?php
- if($task['answer_sheet_task']){
- if($task['answer_sheet_task']==3){
- echo '<span class="highlight-err" style="margin-left: 138px">提示:请去确认答题卡切割是否正确</span>';
- }
- }
- ?>
- </div>
- <div class="card-item-content">
- <?php
- if($task['answer_sheet_task']){
- $status='未发送';
- switch ($task['answer_sheet_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['ast_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['AstConsuming'].'</span>';
- if(isset($task['user'])){
- echo '<span>受理专家:'.$task['user']['real_name'].'</span>';
- }else{
- echo '<span>受理专家:--</span>';
- }
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <?php
- if($task['answer_sheet_task']){
- if($task['answer_sheet_task']==4 || $task['answer_sheet_task']==3){
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-answer-card">重新发送后台</button>';
- }else{
- echo '<button type="button" sendType="1" class="layui-btn layui-btn-radius layui-btn-danger recall-form">撤销后台协助</button> ';
- }
- }else{
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-answer-card">发送后台协助</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <?php
- $allowSubject=array(8);
- $allowSubject=array_merge(Yii::app()->params['mathSubjectId'],$allowSubject);
- if(!in_array(Yii::app()->session['session_duoxueke_subject_id'],$allowSubject)){
- ?>
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">试卷</span>
- <span class="oblique-line">//////</span>
- </p>
- <!-- <img class="processing-status" src="./img/img-acceptance.png" alt="受理中"> -->
- <!-- <img class="processing-status" src="./img/img-complete.png" alt="已完成"> -->
- <?php
- if(isset($task) && $task['paper_task']>0){
- if($task['paper_task']==1){
- echo ''; //排队中
- }elseif($task['paper_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['paper_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </div>
- <div class="card-content">
- <form>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传试卷图片"></i>
- <label class="up-data">
- <?php
- if(!isset($task['paper_task']) || $task['paper_task']==4 || $task['paper_task']==0){
- ?>
- <span>点击上传</span>
- <input type="file" id="testImg" name="img" accept="image/*"
- style="display: none;" />
- <?php }?>
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="testImgImgPreview">
- <?php
- if(!isset($task['paper_task']) || $task['paper_task']==4 || $task['paper_task']==0){
- echo ' <p class="msg1">请上传试卷图片</p>';
- }
- if(isset($task['paper_img'])){
- $imgArr=explode(',',$task['paper_img']);
- foreach ($imgArr as $key => $img){
- if($task['paper_task']==4 || $task['paper_task']==0){
- echo '<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="'.$img.'" ></span>';
- }else{
- echo '<span class="img-wrap"><img src="'.$img.'" ></span>';
- }
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷结构</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="确认答题卡切割后的试题结构"></i>
- </div>
- <div class="card-item-content">
- <?php
- if(isset($tpl_data['items']) && !empty($tpl_data['items'])){
- if(isset($tpl_data['items'][1]) && $tpl_data['items'][1]['no']){
- echo '<p>单选题:'.implode(',',$tpl_data['items'][1]['no']).'</p>';
- }
- if(isset($tpl_data['items'][11]) && $tpl_data['items'][11]['no']){
- echo '<p>多选题:'.implode(',',$tpl_data['items'][11]['no']).'</p>';
- }
- if(isset($tpl_data['items'][4]) && $tpl_data['items'][4]['no']){
- echo '<p>判断题:'.implode(',',$tpl_data['items'][4]['no']).'</p>';
- }
- if(isset($tpl_data['items'][5]) && $tpl_data['items'][5]['no']){
- echo '<p>填空题:'.implode(',',$tpl_data['items'][5]['no']).'</p>';
- }
- if(isset($tpl_data['items'][7]) && $tpl_data['items'][7]['no']){
- echo '<p>解答题:'.implode(',',$tpl_data['items'][7]['no']).'</p>';
- }
- if(isset($tpl_data['items'][17]) && $tpl_data['items'][17]['no']){
- echo '<p>选做题:'.implode(',',$tpl_data['items'][17]['no']).'</p>';
- }
- }else{
- echo '<p>答题卡设置未完成,无试题结构</p>';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <textarea name="paper_remark" id="paper_remark" cols="60" rows="4"><?php echo $task['paper_mark']?></textarea>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- <?php
- if($task['paper_task']){
- if($task['paper_task']==3){
- echo '<span class="highlight-err" style="margin-left: 138px">提示:请去确认试卷切割是否正确</span>';
- }
- }
- ?>
- <!-- <span class="highlight-err" style="margin-left: 138px">提示:请去确认试卷切割是否正确</span> -->
- </div>
- <div class="card-item-content">
- <?php
- if($task['paper_task']){
- $status='未发送';
- switch ($task['paper_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['ppt_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['PptConsuming'].'</span>';
- if(isset($task['user'])){
- echo '<span>受理专家:'.$task['user']['real_name'].'</span>';
- }else{
- echo '<span>受理专家:--</span>';
- }
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <?php
- if($task['paper_task']){
- if($task['paper_task']==4 || $task['paper_task']==3){
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-test-paper">重新发送后台</button>';
- }else{
- echo '<button type="button" sendType="2" class="layui-btn layui-btn-radius layui-btn-danger recall-form">撤销后台协助</button> ';
- }
- }else{
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-test-paper">发送后台协助</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">答案解析</span>
- <span class="oblique-line">//////</span>
- <?php
- if(isset($task) && $task['parse_task']>0){
- if($task['parse_task']==1){
- echo ''; //排队中
- }elseif($task['parse_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['parse_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </p>
- </div>
- <div class="card-content">
- <form>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">答案解析图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传答案解析图片"></i>
- <label class="up-data" >
- <?php
- if(!isset($task['parse_task']) || $task['parse_task']==4 || $task['parse_task']==0){
- ?>
- <span>点击上传</span>
- <input type="file" id="AnswerImg" name="img" accept="image/*"
- style="display: none;" />
- <?php }?>
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="AnswerImgImgPreview">
- <?php
- if(!isset($task['parse_task']) || $task['parse_task']==4 || $task['parse_task']==0){
- echo ' <p class="msg1">请上传答案解析图片</p>';
- }
- if(isset($task['parse_img'])){
- $imgArr=explode(',',$task['parse_img']);
- foreach ($imgArr as $key => $img){
- if(!isset($task['parse_task']) || $task['parse_task']==4 || $task['parse_task']==0){
- echo '<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="'.$img.'" ></span>';
- }else{
- echo '<span class="img-wrap"><img src="'.$img.'" ></span>';
- }
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷结构</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="确认答题卡切割后的试题结构"></i>
- </div>
- <div class="card-item-content">
- <?php
- if(isset($tpl_data['items']) && !empty($tpl_data['items'])){
- if(isset($tpl_data['items'][1]) && $tpl_data['items'][1]['no']){
- echo '<p>单选题:'.implode(',',$tpl_data['items'][1]['no']).'</p>';
- }
- if(isset($tpl_data['items'][11]) && $tpl_data['items'][11]['no']){
- echo '<p>多选题:'.implode(',',$tpl_data['items'][11]['no']).'</p>';
- }
- if(isset($tpl_data['items'][4]) && $tpl_data['items'][4]['no']){
- echo '<p>判断题:'.implode(',',$tpl_data['items'][4]['no']).'</p>';
- }
- if(isset($tpl_data['items'][5]) && $tpl_data['items'][5]['no']){
- echo '<p>填空题:'.implode(',',$tpl_data['items'][5]['no']).'</p>';
- }
- if(isset($tpl_data['items'][7]) && $tpl_data['items'][7]['no']){
- echo '<p>解答题:'.implode(',',$tpl_data['items'][7]['no']).'</p>';
- }
- if(isset($tpl_data['items'][17]) && $tpl_data['items'][17]['no']){
- echo '<p>选做题:'.implode(',',$tpl_data['items'][17]['no']).'</p>';
- }
- }else{
- echo '<p>答题卡设置未完成,无试题结构</p>';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <textarea name="parse_remark" id="parse_remark" cols="60" rows="4"><?php echo $task['parse_mark']?></textarea>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- <?php
- if($task['parse_task']){
- if($task['parse_task']==3){
- echo '<span class="highlight-err" style="margin-left: 138px">提示:请去确认答案解析切割是否正确</span>';
- }
- }
- ?>
- </div>
- <div class="card-item-content">
- <?php
- if($task['parse_task']){
- $status='未发送';
- switch ($task['parse_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['pat_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['PatConsuming'].'</span>';
- if(isset($task['user'])){
- echo '<span>受理专家:'.$task['user']['real_name'].'</span>';
- }else{
- echo '<span>受理专家:--</span>';
- }
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <!-- <button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis">发送后台协助</button> -->
- <!-- <button type="button" class="layui-btn layui-btn-radius layui-btn-danger recall-form">撤销后台协助</button>
- <button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis">重新发送后台</button>-->
- <?php
- if($task['parse_task']){
- if($task['parse_task']==4 || $task['parse_task']==3){
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis">重新发送后台</button>';
- }else{
- echo '<button type="button" sendType="3" class="layui-btn layui-btn-radius layui-btn-danger recall-form">撤销后台协助</button> ';
- }
- }else{
- echo '<button type="button" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis">发送后台协助</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <?php }?>
- </div>
- </div>
- <div class="dialog-layer dialog-confirm-up-answer-card">
- <div class="dialog-title">
- <span>发送后台协助-答题卡</span>
- <img src="/images/icon-close.svg" alt="" class="btn-colse fr">
- </div>
- <div class="dialog-main">
- <p>亲爱的学管:</p>
- <p class="ti">您当前正在发起后台协助任务,发送成功后,该场考试的<span
- class="highlight-green">答题卡</span>模板将转交由后台专家处理。受理时间将根据后台总工作量为依据。请保持手机畅通,以便后台工作人员及时联系,谢谢!</p>
- <p class="mgt">发送至后台前,请完成以下工作:</p>
- <ul>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">1</span>
- </span>
- <span>请确认答题卡空白模板的图片是否正确且完整!</span>
- </li>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">2</span>
- </span>
- <span>请确认试卷附件中,能体现<span class="highlight-green">题型信息(单选/多选/填空/解答/选做等)、分值信息、选项答案!</span></span>
- </li>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">3</span>
- </span>
- <span>请确认考号您需要的考号类型是否正确</span>
- </li>
- </ul>
- <p class="highlight-err mgt"><i
- class="layui-icon layui-icon-tips"></i>注:后台处理完成后,请您务必检查确认,任何由后台模板制作造成的不良后果,请自行承担!</p>
- </div>
- <div class="dialog-btn-box">
- <span class="btn-save up-form send_answer_card">发送</span>
- <span class="btn-colse">取消</span>
- </div>
- </div>
- <div class="dialog-layer dialog-confirm-up-test-paper">
- <div class="dialog-title">
- <span>发送后台协助-试卷</span>
- <img src="/images/icon-close.svg" alt="" class="btn-colse fr">
- </div>
- <div class="dialog-main">
- <p>亲爱的学管:</p>
- <p class="ti">您当前正在发起后台协助任务,发送成功后,该场考试的<span
- class="highlight-green">试卷</span>将转交由后台专家处理。受理时间将根据后台总工作量为依据。请保持手机畅通,以便后台工作人员及时联系,谢谢!</p>
- <p class="mgt">发送至后台前,请完成以下工作:</p>
- <ul>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">1</span>
- </span>
- <span>请确认试卷的图片是否正确且完整!</span>
- </li>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">2</span>
- </span>
- <span>请确保对应的答题卡中,试卷结构(题型、题号、分值、选项答案等)设置无误!</span></span>
- </li>
- </ul>
- <p class="highlight-err mgt"><i
- class="layui-icon layui-icon-tips"></i>注:后台处理完成后,请您务必检查确认,任何由后台模板制作造成的不良后果,请自行承担!</p>
- </div>
- <div class="dialog-btn-box">
- <span class="btn-save up-form send_paper">发送</span>
- <span class="btn-colse">取消</span>
- </div>
- </div>
- <div class="dialog-layer dialog-confirm-up-analysis">
- <div class="dialog-title">
- <span>发送后台协助-答案解析</span>
- <img src="/images/icon-close.svg" alt="" class="btn-colse fr">
- </div>
- <div class="dialog-main">
- <p>亲爱的学管:</p>
- <p class="ti">您当前正在发起后台协助任务,发送成功后,该场考试的<span
- class="highlight-green">答案解析</span>将转交由后台专家处理。受理时间将根据后台总工作量为依据。请保持手机畅通,以便后台工作人员及时联系,谢谢!</p>
- <p class="mgt">发送至后台前,请完成以下工作:</p>
- <ul>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">1</span>
- </span>
- <span>请确认答案解析的图片是否正确且完整!</span>
- </li>
- <li>
- <span class="number-box">
- <i class="start-green"></i>
- <span class="number">2</span>
- </span>
- <span>请确保对应的答题卡中,试卷结构(题型、题号、分值、选项答案等)设置无误!</span></span>
- </li>
- </ul>
- <p class="highlight-err mgt"><i
- class="layui-icon layui-icon-tips"></i>注:后台处理完成后,请您务必检查确认,任何由后台模板制作造成的不良后果,请自行承担!</p>
- </div>
- <div class="dialog-btn-box">
- <span class="btn-save up-form send_parse">发送</span>
- <span class="btn-colse">取消</span>
- </div>
- </div>
- </div>
- <script src="/js/layui/layui.js"></script>
- <script>
- $(document).ready(function () {
- var _card = '';
- //是否已完成答题卡模板设置
- var isAnswerCard = '<?php echo $isAnswerCard?>';
- //按需加载layui模块、layui事件监听开始
- layui.use(['layer'], function () {
- var layer = layui.layer;
- //弹出确认上传答题卡
- $(".confirm-up-answer-card").on("click", function () {
- _card = this;
- layer.open({
- title: false,
- closeBtn: 0,
- type: 1,
- area: ['860px', '436px'],
- content: $(".dialog-confirm-up-answer-card")
- });
- });
- //弹出确认上传试卷
- $(".confirm-up-test-paper").on("click", function () {
- _card = this;
- if(isAnswerCard==='0'){
- layer.alert(' 在发送 试卷/答案解析 的后台协助任务前,请先完成答题卡模板设置,或提交给后台协助设置!')
- }else{
- layer.open({
- title: false,
- closeBtn: 0,
- type: 1,
- area: ['860px', '436px'],
- content: $(".dialog-confirm-up-test-paper")
- });
- }
- });
- //弹出确认上传答案解析
- $(".confirm-up-analysis").on("click", function () {
- _card = this;
- if(isAnswerCard==='0'){
- layer.alert(' 在发送 试卷/答案解析 的后台协助任务前,请先完成答题卡模板设置,或提交给后台协助设置!')
- }else{
- layer.open({
- title: false,
- closeBtn: 0,
- type: 1,
- area: ['860px', '436px'],
- content: $(".dialog-confirm-up-analysis")
- });
- }
- });
- });
- //layui事件监听结束
- //发送答题卡任务确认
- $('.send_answer_card').click(function(){
- var imgArr = [];
- $('#imgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- if (imgArr.length <= 0) {
- layer.msg('请上传答题卡图片');
- return false;
- }
- var paperDoc=$('input[name=paperDoc]').val(),
- paperTitle=$('input[name=paperDocTitle]').val(),
- answer_card_remark=$('#answer_card_remark').val(),
- card_type=0;
- $('input[name="testNumberType"]:checked').each(function(){
- card_type+=parseInt($(this).val());
- });
- if(card_type==0){
- layer.msg('请选择考号类型');
- return false;
- }
- if(paperDoc==''){
- layer.msg('请上传试卷文件');
- return false;
- }
- if(answer_card_remark.length>100){
- layer.msg('备注内容不能超过100字');
- return false;
- }
- var examGroupId=$('input[name=exam_group_id]').val();
- //console.log(imgArr);
- $.ajax({
- url:'<?php echo $this->createUrl('third/SendTask')?>',
- type:'POST',
- dataType:'json',
- data:{imgArr:imgArr,paperDoc:paperDoc,paperDocTitle:paperTitle,cardType:card_type,answerCardRemark:answer_card_remark,examGroupId:examGroupId,sendType:1},
- success:function(res){
- if(res.success==1){
- layer.msg('发送成功');
- layer.closeAll();
- window.location.reload()
- }else{
- if(res.message!=undefined){
- layer.msg(res.message);
- }else{
- layer.msg('发送失败');
- }
- }
- }
- });
- });
- //发送试卷任务确认
- $('.send_paper').click(function(){
- var imgArr = [];
- $('#testImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- if (imgArr.length <= 0) {
- layer.msg('请上传试卷图片');
- return false;
- }
- var paper_remarks=$('#paper_remark').val();
- var examGroupId=$('input[name=exam_group_id]').val();
- //console.log(imgArr);
- if(paper_remarks.length>100){
- layer.msg('备注内容不能超过100字');
- return false;
- }
- $.ajax({
- url:'<?php echo $this->createUrl('third/SendTask')?>',
- type:'POST',
- dataType:'json',
- data:{imgArr:imgArr,paperRemark:paper_remarks,examGroupId:examGroupId,sendType:2},
- success:function(res){
- if(res.success==1){
- layer.msg('发送成功');
- layer.closeAll();
- window.location.reload()
- }else{
- if(res.message!=undefined){
- layer.msg(res.message);
- }else{
- layer.msg('发送失败');
- }
- }
- }
- });
- });
- //发送答案解析任务确认
- $('.send_parse').click(function(){
- var imgArr = [];
- $('#AnswerImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- if (imgArr.length <= 0) {
- layer.msg('请上传答案解析图片');
- return false;
- }
- var parse_remarks=$('#parse_remark').val();
- var examGroupId=$('input[name=exam_group_id]').val();
- //console.log(imgArr);
- if(parse_remarks.length>100){
- layer.msg('备注内容不能超过100字');
- return false;
- }
- $.ajax({
- url:'<?php echo $this->createUrl('third/SendTask')?>',
- type:'POST',
- dataType:'json',
- data:{imgArr:imgArr,parseRemark:parse_remarks,examGroupId:examGroupId,sendType:3},
- success:function(res){
- if(res.success==1){
- layer.msg('发送成功');
- layer.closeAll();
- window.location.reload()
- }else{
- if(res.message!=undefined){
- layer.msg(res.message);
- }else{
- layer.msg('发送失败');
- }
- }
- }
- });
- });
- // tips
- $(".open-tips").on("mouseenter", function () {
- var tips_text = $(this).attr("tipstext");
- layer.tips(tips_text, this, {
- tips: [1, '#14AE68'] //还可配置颜色
- });
- });
- //关闭弹窗
- $(".btn-colse").on("click", function () {
- // layer.close(layer.index);
- layer.closeAll();
- });
- //上传图片-答题卡
- $("#fileImg").on("change", function () {
- var file = this.files[0];
- var imgArr = [];
- $('#imgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- //提交图片
- layer.msg('正在上传,请稍侯......',{time:0})
- var formData = new FormData();
- filedata= document.getElementById("fileImg").files[0];
- formData.append("paperFile",filedata);
- $.ajax({
- url:'<?php echo $this->createUrl('third/upload')?>',
- type:'POST',
- dataType:'json',
- contentType: false,
- processData: false,
- data:formData,
- success:function(res){
- if(res.success==1){
- layer.msg('上传成功')
- $("#imgPreview>.msg").text('');
- $("#imgPreview").append('<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="' + res.src + '" id="a_'+(imgArr.length+1)+'" alt=""></span>');
- }else{
- layer.msg('上传失败');
- }
- }
- });
- return false;
- });
- //上传试卷
- $("#fileDoc").on("change", function () {
- var file = this.files[0];
- $('#docName').text(file.name);
- //提交图片
- //提交图片
- layer.msg('正在上传,请稍侯......',{time:0})
- var formData = new FormData();
- filedata= document.getElementById("fileDoc").files[0];
- formData.append("paperFile",filedata);
- disabled();
- $.ajax({
- url:'<?php echo $this->createUrl('third/upload')?>',
- type:'POST',
- dataType:'json',
- contentType: false,
- processData: false,
- data:formData,
- success:function(res){
- if(res.success==1){
- layer.msg('上传成功')
- $('input[name=paperDoc]').val(res.src);
- $('input[name=paperDocTitle]').val(res.name);
- $('.paperFileLink').html('<a href="'+res.src+'">试卷:'+res.name+'</a>');
- }else{
- layer.msg('上传失败');
- }
- }
- });
- return false;
- });
- //上传图片-答题卡
- $("#testImg").on("change", function () {
- var imgArr = [];
- $('#testImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- layer.msg('正在上传,请稍侯......',{time:0})
- var formData = new FormData();
- filedata= document.getElementById("testImg").files[0];
- formData.append("paperFile",filedata);
- disabled();
- $.ajax({
- url:'<?php echo $this->createUrl('third/upload')?>',
- type:'POST',
- dataType:'json',
- contentType: false,
- processData: false,
- data:formData,
- success:function(res){
- if(res.success==1){
- layer.msg('上传成功')
- $("#testImgImgPreview").append('<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="' + res.src + '" id="b_'+(imgArr.length+1)+'" alt=""></span>');
- }else{
- layer.msg('上传失败');
- }
- }
- });
- // console.log(file);
- return false;
- });
- //上传图片-答案解析
- $("#AnswerImg").on("change", function () {
- var imgArr = [];
- $('#AnswerImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- layer.msg('正在上传,请稍侯......',{time:0});
- var formData = new FormData();
- filedata= document.getElementById("AnswerImg").files[0];
- formData.append("paperFile",filedata);
- disabled();
- $.ajax({
- url:'<?php echo $this->createUrl('third/upload')?>',
- type:'POST',
- dataType:'json',
- contentType: false,
- processData: false,
- data:formData,
- success:function(res){
- if(res.success==1){
- layer.msg('上传成功')
- $("#AnswerImgImgPreview").append('<span class="img-wrap"><i class="layui-icon layui-icon-close btn-del-img"></i><img src="' + res.src + '" id="a_'+(imgArr.length+1)+'" alt=""></span>');
- }else{
- layer.msg('上传失败');
- }
- }
- });
- // console.log(file);
- return false;
- });
- // 撤回协助
- $('.recall-form').on('click', function () {
- //console.log('撤回协助');
- var examGroupId=$('input[name=exam_group_id]').val(),
- sendType=$(this).attr('sendType');
- $(this).prop('disabled', true);
- $.ajax({
- url:'<?php echo $this->createUrl('third/undo')?>',
- type:'POST',
- dataType:'json',
- data:{examGroupId:examGroupId,sendType:sendType},
- success:function(res){
- if(res.success==1){
- layer.msg('撤消成功');
- window.location.reload();
- }else{
- if(res.message!=undefined){
- layer.msg(res.message);
- }else{
- layer.msg('撤消失败');
- }
- }
- }
- });
- });
- function disabled(){
- $(_card).parents('.card').find('.up-data').hide();
- $(_card).parents('.card').find('input[name="testNumberType"]').prop('disabled', true);
- $(_card).parents('.card').find('textarea[name="remarks"]').prop('disabled', true);
- }
- $('body').on('click','.btn-del-img',function(){
- $(this).parents('.card-item').find('input[name="img"]').val('');
- $(this).parents('.img-wrap').remove();
- })
- $('.mission-details')
- .on('click','.delImg',function(){
- id=$(this).attr('rel');
- console.log(id);
- $('#'+id).remove();
- $(this).remove();
- })
- });
- </script>
|