赣州市洪水风险预警系统二维版本
xiebin
2023-03-02 b39483c96ae572121d3c619c0b9d37634e682cc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
    <title>湿地数据</title>
    <link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div class="main">
    <div class="main-left" id="mainLeft">
        <div class="wetland-sider">
            <ul>
                <li>
                    <a href="##" id="pack" class="on"><span>湿地公园建设</span></a>
                </li>
                <li>
                    <a href="##" id="finance"><span>湿地保护项目</span></a>
                </li>
                <li>
                    <a id="video"><span>办公业务</span></a>
                    <ul id='sublines' style="display: none">
                        <li><a href="##" id='shouwen' class="on">
                            单位收文</a></li>
                        <li><a href="##" id='zhuqian'>协办单位会签</a></li>
                        <li><a href="##" id='zhuban'>单位主办</a></li>
                        <li><a href="##" id='daiting'>代厅发文</a></li>
                        <li><a href="##" id='fawen'>单位发文</a></li>
                        <li><a href="##" id='zhengce'>政策法规</a></li>
                    </ul>
                </li>
 
            </ul>
        </div>
    </div>
    <div class="siderbutton-normal" id="dianji" style="display: none"></div>
    <div class="main-right" id="mainRight">
        <iframe id="werlanBoxPark" width="100%" height="100%" src="" scrolling="yes"  frameborder=0 ></iframe>
    </div>
</div>
 
</body>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="jcyj/js/dataShow.js"></script>
<script type="text/javascript">
    $('.wetland-sider ul>li').click(function () {
        if ($(this).children('a').attr('id') === 'video') {
            $(this).children('a').addClass('on-video');
        } else {
            $(this).children('a').addClass('on');
            if ($(this).parent('ul').attr('id') !== 'sublines') {
                $('a.on-video').removeClass('on-video');//移除办公业务模块选中样式
                $('#sublines').hide();//关闭办公业务模块子菜单
            }
        }
        $(this).siblings().children('a').removeClass('on');
    });
    // var locationPath = window.location.origin;
    //权限判断
    
    var sdgyCode = "", sdbhxmCode = "", dwswCode = "", xbdwhqCode = "", dwzbCode = "", dtfwCode = "", dwfwCode = "", zcfgcode = "";
    var    buttonCode = sessionStorage.user_buttonCode_session.split(",");    
    var sdgy = ['sdgyjs_export','sdgyjs_import','sdgyjs_addWetlandPark','sdgyjs_delWetlandPark','sdgyjs_editWetlandPark','sdgyjs_display', 'sdgyjs_countData'];
    var sdbhxm = ['sdbhxm_addProject','sdbhxm_delProject','sdbhxm_import','sdbhxm_export','sdbhxm_editProject','sdbhxm_display'];
    var dwsw = ['dwsw_display','dwsw_addFile','dwsw_delFile','dwsw_export','dwsw_import','dwsw_editFile'];
    var xbdwhq = ['xbdwhq_display','xbdwhq_addFile','xbdwhq_delFile','xbdwhq_editFile','xbdwhq_export','xbdwhq_import'];
    var dwzb = ['dwzb_display','dwzb_addFile','dwzb_delFile','dwzb_export','dwzb_import','dwzb_editFile'];
    var dtfw = ['dtfw_display','dtfw_addFile','dtfw_delFile','dtfw_export','dtfw_import','dtfw_editFile'];
    var dwfw = ['dwfw_display','dwfw_addFile','dwfw_delFile','dwfw_export','dwfw_import','dwfw_editFile'];
    var zcfg = ['sdyw_zcfg_display','sdyw_zcfg_add','sdyw_zcfg_del','sdyw_zcfg_edit','sdyw_zcfg_view'];
    
    function SendData(){
        sdgyCode = "", sdbhxmCode = "", dwswCode = "", xbdwhqCode = "", dwzbCode = "", dtfwCode = "", dwfwCode = "", zcfgcode = "";
        for(var i in buttonCode){
            if(sdgy.indexOf(buttonCode[i]) != -1)
                {sdgyCode += buttonCode[i] + ','}
            else if(sdbhxm.indexOf(buttonCode[i]) != -1)
                {sdbhxmCode += buttonCode[i] + ','}
            else if(dwsw.indexOf(buttonCode[i]) != -1)
                {dwswCode += buttonCode[i] + ','}
            else if(xbdwhq.indexOf(buttonCode[i]) != -1)
                {xbdwhqCode += buttonCode[i] + ','}
            else if(dwzb.indexOf(buttonCode[i]) != -1)
                {dwzbCode += buttonCode[i] + ','}
            else if(dtfw.indexOf(buttonCode[i]) != -1)
                {dtfwCode += buttonCode[i] + ','}
            else if(dwfw.indexOf(buttonCode[i]) != -1)
                {dwfwCode += buttonCode[i] + ','}
            else if(zcfg.indexOf(buttonCode[i]) != -1)
                {zcfgcode += buttonCode[i] + ','}
        }
    }
    SendData();
    $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/park/parkGirdView.jsp?buttonCode=' + sdgyCode);//默认加载湿地公园建设
    
    $('#pack').click(function () {//湿地公园建设
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/park/parkGirdView.jsp?buttonCode=' + sdgyCode);
    });
    $('#finance').click(function () {//湿地保护项目
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/finance/financeGirdView.jsp?buttonCode=' + sdbhxmCode);
    });
    $('#video').click(function () {//办公业务
        $(this).next('ul').toggle();
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/unitReceipt/unitFileGirdView.jsp?buttonCode=' + dwswCode);//默认打开单位收文
    });
 
 
    $('#shouwen').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/unitReceipt/unitFileGirdView.jsp?buttonCode=' + dwswCode);
    });
    $('#zhuqian').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/unitCountersign/unitFileGirdView.jsp?buttonCode=' + xbdwhqCode);
    });
    $('#zhuban').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/unitSponsor/unitFileGirdView.jsp?buttonCode=' + dwzbCode);
    });
    $('#fawen').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/unitDispatch/unitDispatchGirdView.jsp?buttonCode=' + dwfwCode);
    });
    $('#daiting').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/substituteOffice/unitDispatchGirdView.jsp?buttonCode=' + dtfwCode);
    });
    $('#zhengce').click(function () {
        SendData();
        $('#werlanBoxPark').attr('src', getNativePath() + 'tour/wetlands/officeBusiness/zcfg/zcfgGirdView.jsp?buttonCode=' + zcfgcode);        
    });
 
    var falg = 'true';
    $('#dianji').click(function () {
        if (falg == 'true') {
            $('#mainLeft').hide();
            $(this).addClass('siderbutton-shrink').removeClass('siderbutton-normal');
            $('#mainRight').css({'left': '0px'});
            falg = 'false';
        } else if (falg == 'false') {
            $('#mainLeft').show();
            $(this).addClass('siderbutton-normal').removeClass('siderbutton-shrink');
            $('#mainRight').css({'left': $('#mainLeft').width() + 'px'});
            falg = 'true';
        }
 
    });
</script>
</html>