<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head th:fragment="header(title, link)">
<meta charset="utf-8" />
<link rel="icon" th:href="${portalHost+'/img/ico_logo.ico'}">
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<meta name="viewport"
	content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1,user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>项目管理系统</title>
<th:block th:replace="${link}" />
<body>
	<th:block th:fragment="footer(scripts)">
		<script th:inline="javascript">
			/*<![CDATA[*/
			window.globalConfig = {};
			globalConfig.context = /*[[${basePath}]]*/'';
			globalConfig.portalHost = /*[[${portalHost}]]*/'';
			globalConfig.staticDomain = /*[[${staticDomain}]]*/'';
			globalConfig.staticHost = /*[[${staticHost}]]*/'';
			globalConfig.uploadPath = /*[[${uploadPath}]]*/'';
			globalConfig.uploadPrivatePath = /*[[${uploadPrivatePath}]]*/'';
			globalConfig.avatarHost = /*[[${avatarHost}]]*/'';
			globalConfig.avatarUploadHost = /*[[${avatarUploadHost}]]*/'';
			globalConfig.csrfToken = /*[[${csrf}]]*/'';
			globalConfig.kfqq = '2035994611';
			window.userData = {};
			window.adminData = {};
			/*]]>*/
		</script>
		<script th:inline="javascript" th:if="${adminData!=null}">
			/*<![CDATA[*/
			window.adminData = {
				mobile : /*[[${adminData.mobile}]]*/'',
				name : /*[[${adminData.name}]]*/'',
				email : /*[[${adminData.email}]]*/'',
				createTime : /*[[${adminData.createTime}]]*/'',
				uid : /*[[${adminData.id}]]*/'',
				departmentId : /*[[${adminData.departmentId}]]*/'',
				isSuperAdmin : /*[[${shiro.hasRole('999999')}]]*/false,
				isApprovalDecision : /*[[${shiro.hasRole('99999')}]]*/false
			}
			window.showUserManage = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/userManage')}]]*/false;
			window.showServices = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/services')}]]*/false;
			window.showAchievement = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/achievement')}]]*/false;
			window.showDemand = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/demand')}]]*/false;
			window.showIdea = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/idea')}]]*/false;
			window.showCustomer = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/customer')}]]*/false;
			window.showUserList = /*[[${shiro.hasRole('999999') || shiro.isPermitted('api/admin/userList')}]]*/false;
			window.showOrgList = /*[[${shiro.hasRole('999999') || shiro.isPermitted('api/admin/orgList')}]]*/false;
			window.showPermissionList = /*[[${shiro.hasRole('999999') || shiro.isPermitted('api/admin/permissionList')}]]*/false;
			window.showRoleList = /*[[${shiro.hasRole('999999') || shiro.isPermitted('api/admin/roleList')}]]*/false;
			window.showAuditStatus = /*[[${shiro.hasRole('999999') || shiro.isPermitted('api/admin/auditStatus')}]]*/false;
			window.showUserOrderList = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/userOrder')}]]*/false;
			window.showSystem = /*[[${shiro.hasRole('999999') || shiro.isPermitted('admin/system')}]]*/false;
			/*]]>*/
		</script>
		<script th:inline="javascript" th:if="${userData!=null}">
			/*<![CDATA[*/
			window.userData = {
				mobile : /*[[${userData.mobile}]]*/'',
				nickname : /*[[${userData == null} ? null : ${userData.nickname}]]*/'',
				number : /*[[${userData == null} ? null : ${userData.number}]]*/'',
				type : /*[[${userData == null} ? null : ${userData.type}]]*/'',
				email : /*[[${userData == null} ? null : ${userData.email}]]*/'',
				createTime : /*[[${userData == null} ? null : ${userData.createTime}]]*/'',
				lvl : /*[[${userData == null} ? null : ${userData.lvl}]]*/''
			}
			/*]]>*/
		</script>
		<th:block th:replace="${scripts}" />
	</th:block>

</body>
</html>
