| | |
| | |
|
| | | <!doctype html>
|
| | | <html>
|
| | | <head>
|
| | |
| | | <a href="machineroomM.html" target="_top" data-i18n="main.index">测试数据</a>
|
| | | </li>
|
| | | <li>
|
| | | <a href="testControl.html" target="_top" data-i18n="main.warningmanagement">电池安装申请</a>
|
| | | <a href="ele-param2.html" target="_top" data-i18n="main.warningmanagement">bts安装申请</a>
|
| | | </li>
|
| | | <li>
|
| | | <a href="auditDetail.html" target="_top" data-i18n="main.warningmanagement">审批详情</a>
|
| | |
| | | <li>
|
| | | <a href="indexctM.html" target="_top" data-i18n="main.usermanagement">作业管理</a>
|
| | | </li>
|
| | | <li>
|
| | | <a href="map.html" target="_top" data-i18n="main.usermanagement">机房定位</a>
|
| | | <!-- <li>
|
| | | <a href="map.html" target="_top" id="LocationCR" data-i18n="main.usermanagement">机房定位</a>
|
| | | </li> -->
|
| | | <li>
|
| | | <a href="checkAccept-index.html" id="check_Accept" target="_top" data-i18n="main.usermanagement">bts安装审批和验收</a>
|
| | | </li>
|
| | | <li>
|
| | | <!-- <li>
|
| | | <a href="batt-home-info.html" target="_top" data-i18n="main.usermanagement">机房信息</a>
|
| | | </li> |
| | | </li> --> |
| | | </ul>
|
| | |
|
| | | </div>
|
| | |
| | |
|
| | | <script type="text/javascript" src="mobilJs/base.js"></script>
|
| | | <script>
|
| | | $(document).bind("mobileinit", function(){
|
| | | |
| | | |
| | | $(document).bind("mobileinit", function(){ |
| | | // enable i18n
|
| | | $.mobile.i18nEnabled = false;
|
| | | //$.mobile.i18nFolder = "i18n"
|
| | | $.mobile.ignoreContentEnabled = true;
|
| | |
|
| | | // $(document).delegate("#btn", "vclick", function(){
|
| | |
|
| | | // alert( $.trim( $("#tpl").html() ) );
|
| | | // });
|
| | | /*cleanCookie("wapproval");
|
| | | cleanCookie("happroval");
|
| | | cleanCookie("batt");
|
| | | cleanCookie("station"); */ |
| | | });
|
| | |
|
| | | $(function(){
|
| | | var user = getCookie("user");
|
| | | var user_logo = getCookie("user_logo");
|
| | | //user = JSON.parse(user);
|
| | | console.info(user);
|
| | | console.info(user_logo);
|
| | | judgeOpen();
|
| | | delCookie("pages");
|
| | | delCookie("stationId");
|
| | | delCookie("wapproval");
|
| | | delCookie("happroval");
|
| | | delCookie("batt");
|
| | | delCookie("station");
|
| | | delCookie("eleparm");
|
| | | delCookie("eleparm1"); |
| | | delCookie("happroval");
|
| | | $(document.body).css( "visibility", "visible") ;
|
| | | });
|
| | | |
| | | //拦截安卓回退按钮
|
| | | history.pushState(null, null, location.href);
|
| | | window.addEventListener('popstate', function(event) {
|
| | | history.pushState(null, null, location.href );
|
| | | //此处加入回退时你要执行的代码
|
| | | });
|
| | |
|
| | | //安全退出
|
| | | function exitUser(){
|
| | |
| | | window.location.replace("loginm.html");
|
| | | });
|
| | | }
|
| | | function judgeOpen(){
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: false,
|
| | | url: 'User_permitgroup_dataAction!FromSessiongetPermits',
|
| | | data: null,
|
| | | dataType: 'json',
|
| | | success:function(data) {
|
| | | data = JSON.parse(data.result);
|
| | | data = JSON.parse(data);
|
| | | console.info(data);
|
| | | if(isHasPermit("install_look_permit",data)){
|
| | | }else{
|
| | | document.getElementById("check_Accept").style.display="none";
|
| | | document.getElementById("LocationCR").style.display="none"; |
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //根据权限名判断是否具有某个权限
|
| | | function isHasPermit(_permitName,_permitList)
|
| | | {
|
| | | //console.info(_permitList);
|
| | | var _isHasPermit=false;
|
| | | //遍历_permitList根据_permitName找到该权限是否具有
|
| | | for(var i=0;i<_permitList.length;i++)
|
| | | {
|
| | | //console.info(_permitList[i].permit_item_name);
|
| | | //console.info(_permitList[i].permit_item_value);
|
| | | if(_permitList[i].permit_item_name == _permitName && _permitList[i].permit_item_value == 1)
|
| | | {
|
| | | _isHasPermit = true;
|
| | | return _isHasPermit;
|
| | | }
|
| | | }
|
| | | return _isHasPermit;
|
| | | }
|
| | | </script>
|
| | | </div>
|
| | |
|