cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!doctype html>
<html>
<head>
[#include "/business/wechat/include/title.html" /]
[#include "/business/wechat/include/wheader.html" /]
<script type="text/javascript" src="${common_static}/static/wechat/style/js/jquery.nicescroll.js"></script>
</head>
 
<body>
<header class="kltit"><label class="check taskoption"></label><a href="${base}/ewyw/stats/ewConfigStats/ewconfigStatsIndex.html" ><span></span></a>配置信息统计</header>
 [#if rootMap??&&rootMap?size>0]
  <script>
  $(document).ready(function() {
    var nicesx = $("#boxscroll").niceScroll("#boxscroll div",{touchbehavior:true,cursorcolor:"#FF00FF",cursoropacitymax:0.6,cursorwidth:24,usetransition:true,hwacceleration:true,autohidemode:"hidden"});
  });
</script>
<div class="statistics-title">配置信息统计表</div>
<div class="client-name"><span>${cusName}</span></div>
<div class="searchCon">
    <table class="tableName">
        <tbody><tr>
            <th >分类</th>
        </tr>
        [#if rootMap.children??&&rootMap.children?size>0]
            [#list rootMap.children as lv1]
                [#assign rowspan =0 /]
                [#list lv1.children as lv2]
                    [#assign rowspan = rowspan + lv2.children?size /]
                [/#list]
                [#assign gd = rowspan * 37 - 1  /]
                <tr>
                    <td height="${gd}px;">
                    ${lv1.text}
                    </td>
                </tr>
            [/#list]
            [/#if]
    </tbody></table>
    <div id="boxscroll">
      <div>
      <table class="tableName">
        <tbody><tr>
                <!-- 标题栏 -->
                <th colspan="2">分类</th>
                <th>配置总数</th>
                <th>正常数量</th>
                <th>新增总数</th>
                <th>废弃数量</th>
        </tr>
        
        <!-- 数据栏 -->
            [#if rootMap.children??&&rootMap.children?size>0]
            [#list rootMap.children as lv1]
                [#assign rowspan =0 /]
                [#list lv1.children as lv2]
                    [#assign rowspan = rowspan + lv2.children?size /]
                [/#list]
                <tr>
                    [#if lv1.children??&&lv1.children?size>0]
                    [#assign lv2 = lv1.children[0]/]
                    <td [#if lv2.children??&& lv2.children?size != 0]rowspan="${lv2.children?size}" [#else]rowspan="1"[/#if]>${lv2.text}</td>
                        [#if lv2.children??&&lv2.children?size>0]
                        [#assign lv3 = lv2.children[0]/]
                        <td>${lv3.text}</td>
                            [#if lv3.dataMap??]
                                <td>${lv3.dataMap.total_num}</td>
                                <td>${lv3.dataMap.nor_num}</td>
                                <td>${lv3.dataMap.new_num}</td>
                                <td>${lv3.dataMap.abd_num}</td>
                            [#else]
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            [/#if]
                        [#else]
                        <td>-</td>
                           <td>-</td>
                           <td>-</td>
                           <td>-</td>
                        <td>-</td>
                        [/#if]
                    [#else]
                    <td>-</td>
                    <td>-</td>
                    <td>-</td>
                    <td>-</td>
                    <td>-</td>
                    <td>-</td>
                    [/#if]
                </tr>
                
                [#if lv1.children??&&lv1.children?size>0]
                [#list lv1.children as lv2]
                    [#if lv2_index==0]
                        [#if lv2.children??&&lv2.children?size>0]
                            [#list lv2.children as lv3]
                            [#if lv3_index>0]
                            <tr>
                            <td>${lv3.text}</td>
                                [#if lv3.dataMap??]
                                <td>${lv3.dataMap.total_num}</td>
                                <td>${lv3.dataMap.nor_num}</td>
                                <td>${lv3.dataMap.new_num}</td>
                                <td>${lv3.dataMap.abd_num}</td>
                                [#else]
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                [/#if]
                            </tr>
                            [/#if]
                            [/#list]
                        [#else]
                        <td>-</td>
                           <td>-</td>
                           <td>-</td>
                           <td>-</td>
                        <td>-</td>
                        [/#if]
                    [#else]
                        <tr>
                        <td [#if lv2.children??&& lv2.children?size != 0]rowspan="${lv2.children?size}" [#else]rowspan="1"[/#if]>${lv2.text}</td>
                            [#if lv2.children??&&lv2.children?size>0]
                                [#assign lv3 = lv2.children[0]/]
                                <td>${lv3.text}</td>
                                [#if lv3.dataMap??]
                                <td>${lv3.dataMap.total_num}</td>
                                <td>${lv3.dataMap.nor_num}</td>
                                <td>${lv3.dataMap.new_num}</td>
                                <td>${lv3.dataMap.abd_num}</td>
                                [#else]
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                [/#if]
                            [#else]
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            [/#if]
                        </tr>
                        
                        [#if lv2.children??&&lv2.children?size>0]
                            [#list lv2.children as lv3]
                                [#if lv3_index>0]
                                <tr>
                                <td>${lv3.text}</td>
                                [#if lv3.dataMap??]
                                <td>${lv3.dataMap.total_num}</td>
                                <td>${lv3.dataMap.nor_num}</td>
                                <td>${lv3.dataMap.new_num}</td>
                                <td>${lv3.dataMap.abd_num}</td>
                                [#else]
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                                [/#if]
                                </tr>
                                [/#if]
                            [/#list]
                        [#else]
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                        <td>-</td>
                        [/#if]
                        
                    [/#if]
                [/#list]
                [/#if]
                
            [/#list]
            [/#if]
    </tbody></table>
     </div>
    </div>
</div>
[/#if]
<script type="text/javascript">
n=$('.kltwowrap a').size();                
var wh=100*n+"%";
$('.kltwowrap').width(wh);
var lt=(100/n/4);
var lt_li=lt+"%";
$('.kltwowrap a').width(lt_li);            
$(".kltwowrap a").on('touchstart mousedown',function(e){
    e.preventDefault()
    $(".kltwowrap .active").removeClass('active');
    $(this).addClass('active');
    tabsSwiper.slideTo($(this).index());
});
 
$(".kltwowrap a").click(function(e){
    e.preventDefault();
});
 
var tabsSwiper = new Swiper(".swiper-container",{
    setWrapperSize :true,
    onSlideChangeStart: function(sw){
        $(".kltwowrap .active").removeClass('active');
        $(".kltwowrap a").eq(tabsSwiper.activeIndex).addClass('active');
        
    //sw.width
    var currTab = $(".kltwowrap a").eq(tabsSwiper.activeIndex);
    /*if(currTab.width()*sw.activeIndex +10 > sw.width){
      currTab.parent().css("left",-currTab.width()*sw.activeIndex);
    }else{
      currTab.parent().css("left",0);
    }*/
    currTab.parent().css("left",-parseInt(sw.activeIndex/4)*sw.width);
    }
});
 
$(function(){
    
    $('.check').click(function(){
        window.location.href='${base}/ewyw/stats/ewConfigStats/configSearchIndex.html?statsType=${RequestParameters.statsType}';
    });
})
</script>      
</body>
</html>