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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>运维月报</title> 
[#include "/business/pages/include/static.html" /]
<script type="text/javascript">
    initSplineStyle();
    var statisType = 'quarter';
    $(function() {
        initMonChart();
        initEffectChart();
        initSourceChart();
        initCloseChart();
    });
 
    //无数据显示
    function showNoData(containerId) {
        var strHrml = '<div id="noDailyReport" style="position:relative;width:100%;height:400px">';
        strHrml = strHrml + '<span class="nodata"></span>';
        strHrml = strHrml + '</div>';
        $('#'+containerId).html(strHrml);
    }
    
    //初始化同比图表
    function initMonChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/business/pages/workReport/getQuestionMomChart.html",param,function(data){
            if(data.nodata){
                showNoData('mom_container')
            }else{
                createMonChart(data);
            }
            
        },'json');
    }
    
    function createMonChart(data){
        $('#mom_container').highcharts({
            chart: {
                type: 'column',
                height:400,
            },
            title: {
                text: ''
            },
            xAxis: {
                categories: data.categories
            },
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.x +'</b><br>'+this.series.name +': '+ this.y ;
                }
            },
            plotOptions: {
                column: {
                    pointWidth: 40
                }
            },
            series: data.series
        });
    }
    
    
    //影响度图表
    function initEffectChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/business/pages/workReport/getQuestionEffectChart.html",param,function(data){
            if(data.nodata){
                showNoData('effect_container')
            }else{
                createEffectChart(data);
            }
            
        },'json');
    }
    
    function createEffectChart(data){
        $('#effect_container').highcharts({
            chart: {
                renderTo: 'container',
                type: 'pie'
                },
            title :{
                text:''
            },
            plotOptions: {
                pie: {
                    startAngle: -90,
                    endAngle:90,  
                    center: ['50%', '70%']
                }
            },
            tooltip: {
                valueSuffix:' ({point.percentage:.1f}%)'
            },
            series: [{
                name:'数量',
                data: data.seriesData
            }]
        });
    }
    
    //初始化来源图表
    function initSourceChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/business/pages/workReport/getQuestionSourceChart.html",param,function(data){
            if(data.nodata){
                showNoData('source_container')
            }else{
                createSourceChart(data);
            }
        },'json');
    }
    
    function createSourceChart(data){
        $('#source_container').highcharts({
               chart: {
                type: 'pie',
                options3d: {
                    enabled: true,
                    alpha: 45,
                    beta: 0
                }
            },
            title: {
                text: ''
            },
            tooltip: {
                valueSuffix:' ({point.percentage:.1f}%)'
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    depth: 35,
                    dataLabels: {
                        enabled: true,
                        formatter: function() {
                          // return this.point.name +':'+ this.point.y;
                          return this.point.name;
                       }
                    },
                    showInLegend: true
                }
            },
            series: [{
                type: 'pie',
                name: '数量',
                data: data.seriesData,
                showInLegend:true
            }]
           });
    }
    
    
    //初始化关闭方式图表
    function initCloseChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/business/pages/workReport/getQuestionCloseChart.html",param,function(data){
            if(data.nodata){
                showNoData('close_container')
            }else{
                createCloseChart(data);
            }
            
        },'json');
    }
    
    function createCloseChart(data){
        $('#close_container').highcharts({
            chart: {
                type: 'column',
                height:400,
            },
            title: {
                text: ''
            },
            xAxis: {
                categories: data.categories
            },
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.x +'</b><br>'+this.series.name +': '+ this.y ;
                }
            },
            plotOptions: {
                column: {
                    pointWidth: 40
                }
            },
            series: data.series
        });
    }
    
</script>
</head>
 
<body class="fullscreen">
<div class="monitor_report clearfix">
    <div class="monitoring">
        <table class="monitor_flow" style="margin-top: 0px;">
            <tr>
              <td class="monitor_sysinfocon">
                  <div class="edit_title">
                  <h3>问题同比统计</h3>
                </div>
                <div class="dbserver_sga" id="mom_container" style="height: 400px;"></div>
              </td>
              <td>
                  <div class="edit_title">
                  <h3>问题来源</h3>
                </div>
                <div class="dbserver_sga" id="source_container" style="height: 400px;"></div>
              </td>
            </tr>
        </table>
    </div>
    
    <div class="monitoring">
        <table class="monitor_flow" style="margin-top: 0px;">
            <tr>
              <td class="monitor_sysinfocon">
                  <div class="edit_title">
                  <h3>问题影响程度</h3>
                </div>
                <div class="dbserver_sga" id="effect_container" style="height: 400px;"></div>
              </td>
              <td>
                  <div class="edit_title">
                  <h3>问题关闭方式</h3>
                </div>
                <div class="dbserver_sga" id="close_container" style="height: 400px;"></div>
              </td>
            </tr>
        </table>
    </div>
    
    <div class="monitoring">
        <table class="monitor_flow" style="margin-top: 0px;">
            <tr>
              <td >
                  <div class="edit_title">
                  <h3>问题处理情况统计</h3>
                </div>
              </td>
            </tr>
        </table>
        <br/>
        <div>
              <table border="0" class="reportTable tablew" id="reportTable" style="width:98%;">
            [#if report.lebalList??&&report.lebalList?size>0]
            <tr>
                [#list report.lebalList as item]
                    [#if item_index==0]
                        <td width="11%" class="tdbg">${item}</td>
                    [#else]
                        <td width="6%" class="tdbg">${item}</td>
                    [/#if]
                [/#list]
            </tr>
            [/#if]
            
            [#if report.dataList??&&report.dataList?size>0]
                [#list report.dataList as dataList]
                    <tr>
                        [#list dataList as item]
                            <td>${item}</td>
                        [/#list]
                    </tr>
                [/#list]
            [#else]
                <tr>
                    <td colspan="${report.lebalList?size}">暂无数据</td>
                </tr>
            [/#if]
            </table>
        </div>
    </div>
    
</div>
</body>
 
</html>