浏览代码

Updated public

north 7 年之前
父节点
当前提交
d33bf94c78

+ 1 - 0
www/protected/modules/j/controllers/QuestionController.php

@@ -44,6 +44,7 @@ class QuestionController extends JBaseController
         $jgemp = JGEmploye::get(new MongoId($user_id));
         if (!empty($jgemp)) {
             $jgemp->score = (int)$jgemp->score + (int)$score;
+            $jgemp->score_time = Date('Y-m-d H:i:s');
             if ($jgemp->degree >= 1) {
                 $jgemp->degree -= 1;
             } else {

+ 1 - 0
www/protected/modules/j/models/JGEmploye.php

@@ -33,6 +33,7 @@ class JGEmploye extends MongoAr
     public $desc;//备注
     public $score = 0;//积分
     public $degree = 1;//次数
+    public $score_time;
     public $ranking;
 
     public static $work_type_options = array(

+ 12 - 0
www/protected/views/jgEmploye/index.php

@@ -236,6 +236,16 @@
                                         </div>
                                     </div>
                                 </li>
+                                <li class="f_item">
+                                    <div class="box">
+                                        <div class="f_label">
+                                            <span>最后答题时间:</span>
+                                        </div>
+                                        <div class="box_flex f_content">
+                                            <input id="score_time" name="score_time" readonly/>
+                                        </div>
+                                    </div>
+                                </li>
                                 <li class="f_item">
                                     <div class="box">
                                         <div class="f_label">
@@ -684,6 +694,7 @@
                 $('#jg_id').val(row.id);
                 $('#edit_user_id').html(row.user_id);
                 $('#edit_name').val(row.name);
+                $('#score_time').val(row.score_time);
                 $('#edit_phone').val(row.phone);
                 $('#work_type').children().each(function (index, element) {
                     var val = parseInt($(this).find('input').val());
@@ -737,6 +748,7 @@
                 $('#work_type').children().each(function (index, element) {
                     $(this).find('input').prop('checked', false);
                 });
+              $('#score_time').val('');
                 $('#skill').children().each(function (index, element) {
                     $(this).find('input').prop('checked', false);
                 });