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

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

@@ -16,6 +16,7 @@
 namespace app\admin\controller;
 
 use think\admin\Controller;
+use think\Db;
 
 /**
  * 学校管理
@@ -126,7 +127,9 @@ class School extends Controller
      */
     public function info()
     {
-        $this->title = '详情';
+        $id = $this->request->get('id');
+        $name = Db::table($this->table)->where('id',$id)->value('name');
+        $this->title = $name.'--详情';
         $this->_form($this->table);
     }
 

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

@@ -6,7 +6,7 @@
 <ul class="nav" id="side-menu">
     <div style="float: left;width: 20%">
     <li>
-        <a href="index.html" id="firstNode" class="cur" target="menuFrame"><i class="fa fa-bar-chart-o fa-fw"></i><b>统计报表</b></a>
+        <a href='{:url("info")}?id={$vo.id}' id="firstNode" class="cur" target="menuFrame"><i class="fa fa-bar-chart-o fa-fw"></i><b>统计报表</b></a>
         <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="admin.html#/admin/school/info.html?id=5581&spm=m-67-95-96" target="menuFrame">出货报表</a></li>