songxingwei 4 years ago
parent
commit
d17711388a
2 changed files with 16 additions and 30 deletions
  1. 2 2
      app/admin/view/school/index.html
  2. 14 28
      app/admin/view/school/info.html

+ 2 - 2
app/admin/view/school/index.html

@@ -47,9 +47,9 @@
                     {if auth("admin/school/info")}
                     <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("info")}?id={$vo.id}'>详 情</a>
                     {/if}
-                    <!--<a data-title="学生列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("admin/student/index")}?school_id={$vo.id}'>学生列表</a>
+                    <a data-title="学生列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("student")}?school_id={$vo.id}'>学生列表</a>
 
-                    <a data-title="教师列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("admin/teacher/index")}?school_id={$vo.id}'>教师列表</a>-->
+                    <a data-title="教师列表" class="layui-btn layui-btn-sm layui-btn-normal" data-open='{:url("teacher")}?school_id={$vo.id}'>教师列表</a>
 
                     {if $vo.status eq 1 and auth("forbid")}
                     <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>

+ 14 - 28
app/admin/view/school/info.html

@@ -1,38 +1,16 @@
 {extend name='main'}
 {block name="content"}
+<style>
+    .selected{font-weight:bold; background: #ff99cc; color:#fff;}
+    ul{border: #0C0C0C}
+</style>
 <ul class="nav" id="side-menu">
     <div style="float: left;width: 10%">
-    <li>
-        <ul class="nav nav-second-level">
+
             <li><a href='{:url("school_info")}?id={$vo.id}' target="menuFrame">学校信息</a></li>
             <li><a href='{:url("index")}?id={$vo.id}' target="menuFrame">出货报表</a></li>
-            <li><a href="admin.html#/admin/school/index.html?spm=m-67-95-96" target="menuFrame">毛利报表</a></li>
-        </ul>
-    </li>
-    <li>
-        <a href="warehouse.html" target="menuFrame"><i class="fa fa-table fa-fw"></i><b>仓库管理</b></a>
-        <ul class="nav nav-second-level">
-            <li><a href="goodslist.html" target="menuFrame">商品列表</a></li>
-            <li><a href="check.html" target="menuFrame">盘点</a></li>
-            <li><a href="outbound.html" target="menuFrame">出库列表</a></li>
-            <li><a href="instorage.html" target="menuFrame">入库列表</a></li>
-        </ul>
-    </li>
-    <li>
-        <a href="#"><i class="fa fa-edit fa-fw"></i><b>订单管理</b></a>
-        <ul class="nav nav-second-level">
-            <li><a href="orderlist.html" target="menuFrame">订单列表</a></li>
-            <li><a href="forms.html" target="menuFrame">采购申请</a></li>
-        </ul>
-    </li>
-    <li>
-        <a href="system.html" target="menuFrame"><i class="fa fa-wrench fa-fw"></i><b>系统设置</b></a>
-        <ul class="nav nav-second-level">
-            <li><a href="user.html" target="menuFrame">权限设置</a></li>
-            <li><a href="personnel.html" target="menuFrame">资料管理</a></li>
-        </ul>
+           
 
-    </li>
 </div>
 
 </ul>
@@ -45,5 +23,13 @@
 {block name='script'}
 <script>
     form.render();
+    $(function(){
+        $("#side-menu li").click(function() {
+            $(this).siblings('li').removeClass('selected');  // 删除其他兄弟元素的样式
+            $(this).addClass('selected');                            // 添加当前元素的样式
+
+        });
+
+    });
 </script>
 {/block}