| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | 
							- <!DOCTYPE html>
 
- <html>
 
- 	<head>
 
- 		<meta name="viewport"
 
- 			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
 
- 		<!-- 引入mui样式 -->
 
- 		<meta charset="utf-8">
 
- 		<title>UI演示</title>
 
- 		<link href="./css/mui.css" rel="stylesheet" />
 
- 		<!--连接自定义APP样式-->
 
- 		<link href="./css/app.css" rel="stylesheet" />
 
- 		<link rel="stylesheet" href="./css/app.new.css">
 
- 		<link rel="stylesheet" href="./fonts/font-jt.css">
 
- 		<!-- 引入案件样式 -->
 
- 		<link rel="stylesheet" type="text/css" href="./css/case.css" />
 
- 		<!-- 引入弹窗及选择器样式 -->
 
- 		<link rel="stylesheet" type="text/css" href="../css/mui.picker.css" />
 
- 		<link rel="stylesheet" type="text/css" href="../css/mui.poppicker.css" />
 
- 		<link rel="stylesheet" href="./css/csa.count.css">
 
- 		<!-- 引入地图页面独有样式 -->
 
- 		<link rel="stylesheet" type="text/css" href="./css/cr.map.css" />
 
- 		<style type="text/css">
 
- 			html,
 
- 			body {
 
- 				position: relative;
 
- 				/* background-color: antiquewhite !important; */
 
- 				height: 100%;
 
- 				width: 100%;
 
- 				font-weight: bold;
 
- 				background-color: antiquewhite !important;
 
- 			}
 
- 		</style>
 
- 	</head>
 
- 	<body>
 
- 		<button type="button" onclick="showPdf()">查询指定权限</button>
 
- 	</body>
 
- </html>
 
- <script src="./js/mui.min.js" type="text/javascript"></script>
 
- <script src="./js/case.js"></script>
 
- <script type="text/javascript">
 
- 	/* mui初始化 */
 
- 	mui.init();
 
- 	/* 必须加 否则将导致数据表无法滚动 */
 
- 	mui('.mui-scroll-wrapper').scroll({
 
- 		scrollY: true, //是否竖向滚动
 
- 		scrollX: true, //是否横向滚动  
 
- 		startX: 0, //初始化时滚动至x  
 
- 		startY: 0, //初始化时滚动至y  
 
- 		indicators: false, //是否显示滚动条  
 
- 		deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏  
 
- 		bounce: false, //是否启用回弹  
 
- 	});
 
- 	var permissions = [{
 
- 		"code": "1007",
 
- 		"name": "派发员"
 
- 	}, {
 
- 		"code": "1003",
 
- 		"name": "审核员"
 
- 	}];
 
- 	function showPdf() {
 
- 		console.log(permissionFind(permissions, userPermission.perSH));
 
- 	}
 
- 	function permissionFind(permissions, perCode) {
 
- 		var result = permissions.find(function(item) {
 
- 			return item.code === perCode;
 
- 		});
 
- 		return result !== undefined;
 
- 	}
 
- </script>
 
 
  |