2 Commits bd1bf5e415 ... ec00acb82f

Author SHA1 Message Date
  24753255@qq.com ec00acb82f Merge branch 'li_huaweicloud' of http://gitz.zhixinhuixue.net:18880/zxhx/xiaoben-as2-php into li_huaweicloud 5 months ago
  24753255@qq.com 376d06ce31 屏蔽ai解析 5 months ago
2 changed files with 16 additions and 9 deletions
  1. 7 7
      protected/views/third/_third.php
  2. 9 2
      protected/views/third/operate/operate_8.php

+ 7 - 7
protected/views/third/_third.php

@@ -2098,7 +2098,7 @@
 
             if(subject_id==12) {
                 $('#parse_area').find('.select_upload_mode').eq(0).closest('span').show();
-                $('#parse_area').find('.select_upload_mode').eq(1).closest('span').show();
+                $('#parse_area').find('.select_upload_mode').eq(1).closest('span').hide();
                 $('#parse_area').find('.select_upload_mode').eq(2).closest('span').hide();
                 $('#parse_area').find('.select_upload_mode').eq(0).click();
                 $('#parse_area').find('.p_txt_1').show();
@@ -2112,12 +2112,12 @@
                 $('#parse_area').find('.p_txt_2').show();
             }else{
                 $('#parse_area').find('.select_upload_mode').eq(0).closest('span').show();
-                if(obj.math_ai==1){
-                    $('#parse_area').find('.select_upload_mode').eq(1).closest('span').show();
-                }else{
-                    $('#parse_area').find('.select_upload_mode').eq(1).closest('span').hide();
-                }
-
+                // if(obj.math_ai==1){
+                //     $('#parse_area').find('.select_upload_mode').eq(1).closest('span').show();
+                // }else{
+                //     $('#parse_area').find('.select_upload_mode').eq(1).closest('span').hide();
+                // }
+                $('#parse_area').find('.select_upload_mode').eq(1).closest('span').hide();
                 $('#parse_area').find('.select_upload_mode').eq(2).closest('span').show();
                 $('#parse_area').find('.select_upload_mode').eq(2).attr('eid',eid);
                 $('#parse_area').find('.select_upload_mode').eq(2).attr('grade',grade);

+ 9 - 2
protected/views/third/operate/operate_8.php

@@ -89,10 +89,17 @@
                      if($cl['qxk_paper_id'] &&
                          ((!$cl['word_path'] && !$cl['allsubject_file_path']) || (($cl['word_path'] || $cl['allsubject_file_path']) && in_array($cl['tw_status'],array(3,4,7))))) {
                          ?>
-                         <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷"
-                               onclick="uploadTemplateForSelectType('<?php echo $cl['exam_group_id']; ?>','<?php echo $cl['exam_name']; ?>','<?php echo $class_grade[$cl['class_id']]; ?>')">&#xe640;</span>
+
+                        <!-- <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷"
+                               onclick="uploadTemplateForSelectType('<?php echo $cl['exam_group_id']; ?>','<?php echo $cl['exam_name']; ?>','<?php echo $class_grade[$cl['class_id']]; ?>')">&#xe640;</span>-->
+
+
                          <?php
                      }
+                     ?>
+                    <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷题目" onclick="uploadExamTopic('<?php echo $cl['exam_group_id'];?>',<?php echo Yii::app()->session['session_duoxueke_subject_id']?>,<?php if(isset($cl['uploadExamTemplateId'])){ echo $cl['uploadExamTemplateId']; }else{ echo 0;}?>,<?php echo $cl['tpl_index'];?>)">&#xe640;</span>
+                    <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷答案" onclick="uploadExamAnswer('<?php echo $cl['exam_group_id'];?>',<?php echo Yii::app()->session['session_duoxueke_subject_id']?>,<?php if(isset($cl['uploadAnswerTemplateId'])){ echo $cl['uploadAnswerTemplateId']; }else{ echo 0;}?>)">答</span>
+                    <?php
                 }
                 ?>