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

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

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

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

@@ -6,7 +6,6 @@
 <ul class="nav" id="side-menu">
     <div style="float: left;width: 20%">
     <li>
-        <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>