

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>主页</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  <link href="/css/main.css" rel="stylesheet">
  <script src="../../../../lib/extend/echarts.js"></script>
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md8">
        <div class="layui-row layui-col-space15">
          <div class="layui-col-md6">
            <div class="layui-card">
              <div class="layui-card-header">快捷方式</div>
              <div class="layui-card-body">

                <div class="layui-carousel layadmin-carousel layadmin-shortcut">
                  <div carousel-item>
                    <ul class="layui-row layui-col-space10">

                      <li class="layui-col-xs3">
                        <a  name="queckmenu" lay-text="日常借还" val="/list-manage/dailyBorrowing" >
                          <i class="layui-icon"><img src="/img/school-index-01.png" alt=""></i>
                          <cite>日常借还</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="图书编目" val="/list-manage/bookList">
                          <i class="layui-icon"><img src="/img/school-index-02.png" alt=""></i>
                          <cite>图书编目</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="馆藏查询" val="/book/librarybook">
                          <i class="layui-icon"><img src="/img/school-index-03.png" alt=""></i>
                          <cite>馆藏查询</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="借阅查询" val="/list-manage/jieYueRecord">
                          <i class="layui-icon"><img src="/img/school-index-04.png" alt=""></i>
                          <cite>借阅查询</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="个别登记" val="/print/tushugebiedengjibu">
                          <i class="layui-icon"><img src="/img/school-index-05.png" alt=""></i>
                          <cite>个别登记</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="总括登记" val="/print/tushuzongkuodengjibu">
                          <i class="layui-icon"><img src="/img/school-index-06.png" alt=""></i>
                          <cite>总括登记</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="注销报表" val="/print/tushuzhuxiaobaobiao">
                          <i class="layui-icon"><img src="/img/school-index-07.png" alt=""></i>
                          <cite>注销报表</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="排行榜" val="/list-manage/bookLendingRanking">
                          <i class="layui-icon"><img src="/img/school-index-08.png" alt=""></i>
                          <cite>排行榜</cite>
                        </a>
                      </li>



                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="分类统计" val="/list-manage/bookClassificationStatistics">
                          <i class="layui-icon"><img src="/img/school-index-09.png" alt=""></i>
                          <cite>分类统计</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="馆藏调拨" val="/list-manage/libraryBookChange">
                          <i class="layui-icon"><img src="/img/school-index-10.png" alt=""></i>
                          <cite>馆藏调拨</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="馆藏注销" val="/list-manage/cancelBook">
                          <i class="layui-icon"><img src="/img/school-index-11.png" alt=""></i>
                          <cite>馆藏注销</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="预约预借" val="/list-manage/destineBook">
                          <i class="layui-icon"><img src="/img/school-index-12.png" alt=""></i>
                          <cite>预约预借</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="书标打印" val="/list-manage/bookMarkPrint">
                          <i class="layui-icon"><img src="/img/school-index-13.png" alt=""></i>
                          <cite>书标打印</cite>
                        </a>
                      </li>

                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="读者查询" val="/reader">
                          <i class="layui-icon"><img src="/img/school-index-14.png" alt=""></i>
                          <cite>读者查询</cite>
                        </a>
                      </li>


                      <li class="layui-col-xs3">
                        <a name="queckmenu" lay-text="用户管理" val="/user">
                          <i class="layui-icon"><img src="/img/school-index-16.png" alt=""></i>
                          <cite>用户管理</cite>
                        </a>
                      </li>

                    </ul>

                  </div>
                </div>

              </div>
            </div>
          </div>


        </div>
      </div>

      <div class="layui-col-md4">
        <div class="layui-card">
          <div class="layui-card-header">今日简报</div>
          <div class="layui-card-body">

            <div class="layui-carousel layadmin-carousel layadmin-backlog">
              <div carousel-item>
                <ul class="layui-row layui-col-space10">
                  <li class="layui-col-xs6">
                    <a name="queckmenu" lay-text="借书数量" val="/list-manage/jieYueRecord" class="layadmin-backlog-body">
                      <h3>借书数量</h3>
                      <p><cite id="jssl">0</cite></p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a name="queckmenu" lay-text="还书数量" val="/list-manage/jieYueRecord" class="layadmin-backlog-body">
                      <h3>还书数量</h3>
                      <p><cite id="hssl">0</cite></p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a name="queckmenu" lay-text="新增图书" val="/print/tushugebiedengjibu" class="layadmin-backlog-body">
                      <h3>新增图书</h3>
                      <p><cite id="xzsl">0</cite></p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a name="queckmenu" lay-text="注销图书" val="/print/tushuzhuxiaobaobiao" class="layadmin-backlog-body">
                      <h3>注销图书</h3>
                      <p><cite id="zxsl">0</cite></p>
                    </a>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>

  <script src="../../layuiadmin/layui/layui.js?t=1"></script>
  <script type="text/javascript" src="/lib/extend/echarts.js"></script>
  <script>
  var $;
  layui.config({
    base: '../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'console']);
  layui.use(['jquery', 'layer'], function(){
      $ = layui.$;

      $("a[name='queckmenu']").click(function () {
          var url = $(this).attr("val");
          var text = $(this).attr("lay-text");
          $.ajax("/menu/hasAuth",{
              // async:false,
              data:{token:JSON.parse(sessionStorage.loginData).token,url:url},
              success:function (data) {
                  console.log(data);
                  if (data.code==4){
                      layer.msg('抱歉，您无权限操作！若需开通此权限，请联系超级管理员', { icon: 2 });
                  }else {
                      //执行跳转
                      var topLayui = parent === self ? layui : top.layui;
                      topLayui.index.openTabsPage(url, text);
                  }
              }
          });
      })



      $.ajax({
          url: "/comprehensiveStatistics/briefingToday",
          type: "POST",
          data:{orgid:JSON.parse(sessionStorage.loginData).orgid,token:JSON.parse(sessionStorage.loginData).token},
          success: function(result) {
              if(result.data.jssl.jssl){$("#jssl").text(result.data.jssl.jssl);}
              if(result.data.hssl.hssl){$("#hssl").text(result.data.hssl.hssl);}
              if(result.data.xzsl.xzsl){$("#xzsl").text(result.data.xzsl.xzsl);}
              if(result.data.zxsl.zxsl){$("#zxsl").text(result.data.zxsl.zxsl);}
          }
      });
  });
  </script>
</body>
</html>

