songxingwei 4 years ago
parent
commit
c1c3cd872c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/admin/controller/School.php
  2. 1 1
      app/admin/view/school/school_info.html

+ 1 - 1
app/admin/controller/School.php

@@ -65,7 +65,7 @@ class School extends Controller
     }
     protected function _form_filter(&$data){
         if($this->request->isGet()) {
-
+            $this->data = $data;
         }elseif ($this->request->isPost()){
             if (isset($data['id']) && $data['id'] > 0) {
                 $is_set = $this->app->db->name('school2')->where('username',$data['username'])->where('id','<>',$data['id'])->find();

+ 1 - 1
app/admin/view/school/school_info.html

@@ -7,7 +7,7 @@
             <div class="layui-card">
                 <div class="layui-card-header">基本信息</div>
                 <div class="layui-card-body">
-                    <div class="layui-col-md6">姓名:{$data.name|default='--'}</div>
+                    <div class="layui-col-md6">学校代码:{$data.school_code|default='--'}</div>
                     <div class="layui-col-md6">性别:{$data.sex|default='--'}</div><hr />
                     <div class="layui-col-md6">身份证件类型:{$data.id_card_type|default='--'}</div>
                     <div class="layui-col-md6">身份证号:{$data.id_card|default='--'}</div><hr />