songxingwei 4 years ago
parent
commit
ff7813957a
2 changed files with 15 additions and 1 deletions
  1. 14 0
      app/admin/controller/School.php
  2. 1 1
      app/admin/view/school/info.html

+ 14 - 0
app/admin/controller/School.php

@@ -134,4 +134,18 @@ class School extends Controller
         $this->_form($this->table);
     }
 
+
+    /**
+     * 详情
+     * @auth true
+     */
+    public function school_info()
+    {
+        $id = $this->request->get('id');
+        $name = Db::name($this->table)->where('id',$id)->value('name');
+        $this->title = $name;
+        $this->_form($this->table);
+    }
+
+
 }

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

@@ -7,7 +7,7 @@
     <div style="float: left;width: 20%">
     <li>
         <ul class="nav nav-second-level">
-            <li><a href="admin.html#/admin/school/info.html?id=5581&spm=m-67-95-96" target="menuFrame">进货报表</a></li>
+            <li><a href='{:url("school_info")}?id={$vo.id}' target="menuFrame">学校信息</a></li>
             <li><a href="admin.html#/admin/school/info.html?id=5581&spm=m-67-95-96" target="menuFrame">出货报表</a></li>
             <li><a href="admin.html#/admin/school/index.html?spm=m-67-95-96" target="menuFrame">毛利报表</a></li>
         </ul>