Bladeren bron

20250701修改文案

贾小兵 3 dagen geleden
bovenliggende
commit
ff8fb1a9fe

+ 6 - 2
application/admin/controller/teacher/Exams.php

@@ -220,7 +220,7 @@ class Exams extends Backend
         $this->success();
     }
 
-    public function view($ids = null)
+    public function view($type = null,$ids = null)
     {
         $row = Db::name('real_exam_score')->where('exam_id', $ids)->find();
         if (!$row) {
@@ -286,7 +286,11 @@ class Exams extends Backend
         $row['shijian'] = $minutes.'分'.$seconds.'秒';
 
         $this->view->assign('row', $row);
-        return $this->view->fetch();
+        if(!empty($type)){
+            return $this->view->fetch('view1');
+        }else{
+            return $this->view->fetch();
+        }
     }
 
     //正在考试

+ 1 - 1
application/admin/view/student/collection/tishi.html

@@ -51,7 +51,7 @@
                     <div class="box-body box-profile">
                         <div class="row">
                             <div class="form-group col-sm-6">
-                                <label class="control-label">{:__('考试学员')}:</label>
+                                <label class="control-label">{:__('学员姓名')}:</label>
                                 <input type="text" class="form-control" value="{$admin.nickname|htmlentities}" readonly/>
                             </div>
                             <div class="form-group col-sm-6">

+ 1 - 1
application/admin/view/student/practice/tishi.html

@@ -51,7 +51,7 @@
                     <div class="box-body box-profile">
                         <div class="row">
                             <div class="form-group col-sm-6">
-                                <label class="control-label">{:__('考试学员')}:</label>
+                                <label class="control-label">{:__('学员姓名')}:</label>
                                 <input type="text" class="form-control" value="{$admin.nickname|htmlentities}" readonly/>
                             </div>
                             <div class="form-group col-sm-6">

+ 2 - 2
public/assets/js/backend/teacher/practice.js

@@ -322,7 +322,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function
                                         }
                                         return false;
                                     },
-                                    url: 'teacher/exams/view',
+                                    url: 'teacher/exams/view/type/1',
                                 }
                             ],
                         }
@@ -378,7 +378,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function
                                     title: '成绩详情',
                                     classname: 'btn btn-info btn-xs btn-magic btn-dialog',
                                     extend: 'data-area=\'["75%","95%"]\'',
-                                    url: 'teacher/exams/view',
+                                    url: 'teacher/exams/view/type/1',
                                 }
                             ],
                         }