自动化立体仓库 - WMS系统
野心家
2023-04-24 f96c2adc8d6bab6a4ee67a50ecfc9e6c7e435efd
src/main/webapp/views/index.html
@@ -52,7 +52,7 @@
          <cite id="username" style="margin-right: 5px">管理员</cite>
        </a>
        <dl class="layui-nav-child">
          <dd lay-unselect><a ew-href="detail.html?resourceId=8">基本资料</a></dd>
          <dd lay-unselect><a id="personPage" ew-href="detail.html?resourceId=8">基本资料</a></dd>
          <hr>
          <dd lay-unselect><a id="logout">退出</a></dd>
        </dl>
@@ -160,6 +160,28 @@
    var url = logout.getAttribute('href');
    logout.setAttribute('href', baseUrl + "/login");
    let username = localStorage.getItem('username')
    let password = localStorage.getItem('password')
    if (!(username === 'super' || password === 'root')) {
      if(!checkPassword(password)){
        //要求修改密码
        layer.msg('弱密码请修改密码再继续', {icon: 2});
        layer.open({
          type: 2,
          title: '基本资料',
          maxmin: true,
          shadeClose: false,
          area: [top.detailWidth, top.detailHeight],
          content: 'detail.html',
          closeBtn: 0,
          success: function(layero, index){
            layero.find('.layui-layer-min').remove(); //去掉最小化按钮
            layero.find('.layui-layer-max').remove(); //去掉最大化按钮
          }
        })
      }
    }
  });
</script>
<script type="text/html" id="menuTpl">