<!DOCTYPE html>标签:请假,xe604,个人,11.21,信息管理,msg,&#,xe608,审批 From: https://www.cnblogs.com/aixin52129211/p/17847859.html
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<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,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>网站后台管理模版</title>
<link rel="stylesheet" type="text/css" href="/static/admin/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css"/>
<link rel="stylesheet" type="text/css" href="/static/admin/css/sweetalert.css" />
</head>
<body>
<div class="main-layout" id='main-layout'>
<!--侧边栏-->
<div class="main-layout-side">
<div class="m-logo"></div>
<!--管理员-->
<ul class="layui-nav layui-nav-tree" lay-filter="leftNav" th:if="${session.staff.role eq 1}">
<li class="layui-nav-item layui-nav-itemed">
<a href="javascript:;"><i class="iconfont"></i>部门信息管理</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" th:attr="data-url=@{/add_dep_page}" data-id="1" data-text="新添部门"><span class="l-line"></span>新添部门基本信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/find_all_dep_page}" data-id='2' data-text="修改部门"><span class="l-line"></span>修改部门基本信息</a></dd>
</dl>
</li>
<li class="layui-nav-item">
<a href="javascript:;"><i class="iconfont"></i>员工信息管理</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" th:attr="data-url=@{/add_staff_page},data-id=3" data-text="新添员工"><span class="l-line"></span>新添员工基本信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/all_staff_page},data-id=4" data-text="员工信息列表"><span class="l-line"></span>查看员工基本信息</a></dd>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/role_manage_page},data-id=5" data-text="角色管理"><i class="iconfont"></i>设置角色管理</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/reset_code_page},data-id=7" data-text="密码重置"><i class="iconfont"></i>密码重置</a>
</li>
</ul>
<!--部门经理-->
<ul class="layui-nav layui-nav-tree" lay-filter="leftNav" th:if="${session.staff.role eq 2}">
<li class="layui-nav-item layui-nav-itemed">
<a href="javascript:;"><i class="iconfont"></i>个人信息管理</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" th:attr="data-url=@{/self_info_page},data-id=1" data-text="查看信息"><span class="l-line"></span>查看个人信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/update_selfInfo_page},data-id=2" data-text="修改信息"><span class="l-line"></span>修改个人基本信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/update_code_page},data-id=3" data-text="修改密码"><span class="l-line"></span>修改个人密码</a></dd>
</dl>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/find_dep_daka_record},data-id=4" data-text="部门考勤情况"><i class="iconfont"></i>本部门考勤情况</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/find_dep_staff},data-id=5" data-text="部门员工"><i class="iconfont"></i>员工调岗</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/shenpi},data-id=6" data-text="审批"><i class="iconfont"></i>审批</a>
</li>
</ul>
<!--普通员工-->
<ul class="layui-nav layui-nav-tree" lay-filter="leftNav" th:if="${session.staff.role eq 3}">
<li class="layui-nav-item layui-nav-itemed">
<a href="javascript:;"><i class="iconfont"></i>个人信息管理</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" th:attr="data-url=@{/self_info_page},data-id=1" data-text="查看信息"><span class="l-line"></span>查看个人信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/update_selfInfo_page},data-id=2" data-text="修改信息"><span class="l-line"></span>修改个人基本信息</a></dd>
<dd><a href="javascript:;" th:attr="data-url=@{/update_code_page},data-id=3" data-text="修改密码"><span class="l-line"></span>修改个人密码</a></dd>
</dl>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/kaoqing},data-id=4" data-text="考勤页面"><i class="iconfont"></i>日常考勤</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/find_daka_record},data-id=5" data-text="考勤浏览"><i class="iconfont"></i>浏览个人考勤记录</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" th:attr="data-url=@{/qingjia},data-id=6" data-text="请假"><i class="iconfont"></i>请假</a>
</li>
</ul>
</div>
<!--右侧内容-->
<div class="main-layout-container">
<!--头部-->
<div class="main-layout-header">
<div class="menu-btn" id="hideBtn">
<a href="javascript:;">
<span class="iconfont"></span>
</a>
</div>
<ul class="layui-nav" lay-filter="rightNav">
<li class="layui-nav-item"><a href="javascript:;" data-url="email.html" data-id='4' data-text="邮件系统"><i class="iconfont"></i></a></li>
<li class="layui-nav-item" th:switch="${session.staff.role}">
<a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息" th:case="1">管理员</a>
<a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息" th:case="2">部门经理</a>
<a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息" th:case="3">员工</a>
</li>
<li class="layui-nav-item"><a th:href="@{/}" onclick='return confirm("确定要退出系统吗?")';>退出</a></li>
</ul>
</div>
<!--主体内容-->
<div class="main-layout-body">
<!--tab 切换-->
<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
<ul class="layui-tab-title">
<li class="layui-this welcome">后台主页</li>
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show" style="background: #f5f5f5;">
<!--1-->
<iframe th:src="@{/welcome}" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
<!--1end-->
</div>
</div>
</div>
</div>
</div>
<!--遮罩-->
<div class="main-mask">
</div>
</div>
<script type="text/javascript">
var scope={
link:'./welcome.html'
}
</script>
<script th:src="@{/static/admin/layui/layui.js}" type="text/javascript" charset="utf-8"></script>
<script th:src="@{/static/admin/js/common.js}" type="text/javascript" charset="utf-8"></script>
<script th:src="@{/static/admin/js/main.js}" type="text/javascript" charset="utf-8"></script>
<script src="/static/admin/js/sweetalert-dev.js"></script>
<script type="text/javascript">
let msg = "[[${msg}]]";
if (msg != null && msg != ""){
swal(msg,"","success");
}
</script>
</body>
</html>