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 = 'month';
    $(function() {
        initMonChart();
        initConverChart();
        initSatisChart();
    });
 
    //无数据显示
    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}/uc/workReport/getSatisMonChart.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: 30
                }
            },
            series: data.series
        });
    }
    
    //覆盖率图表
    function initConverChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/uc/workReport/getSatisConverRateColChart.html",param,function(data){
            if(data.nodata){
                showNoData('conver_container')
            }else{
                createConverChart(data);
            }
        },'json');
    }
    
    function createConverChart(data){
        $('#conver_container').highcharts({
             chart: {
                    type: 'column'
                },
                title: {
                    text: ''
                },
                xAxis: {
                    categories: data.categories
                },
                yAxis: {
                    min: 0,
                    title: {
                        text: ''
                    }
                },
                tooltip: {
                    //pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.0f}%)<br/>',
                    pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.percentage:.0f}%</b> <br/>',
                    shared: true
                },
                plotOptions: {
                    column: {
                        stacking: 'percent',
                        pointWidth: 40
                    }
                },
                series: data.series
        });
    }
    
    
    //初始化满意度图表
    function initSatisChart(){
        var selDate = '${RequestParameters.selDate}';
        var cusId = '${RequestParameters.cusId}';
        var param = {'selDate':selDate,'statisType':statisType,'cusId':cusId};
        $.post("${base}/uc/workReport/getSatisSurveyChart.html",param,function(data){
            if(data.nodata){
                showNoData('satis_container')
            }else{
                createSatisChart(data);
            }
        },'json');
    }
    
    function createSatisChart(data){
        $('#satis_container').highcharts({
            chart: {
                type: 'gauge',
                plotBackgroundColor: null,
                plotBackgroundImage: null,
                plotBorderWidth: 0,
                plotShadow: false
            },
            title: {
                text: ''
            },
            pane: {
                startAngle: -150,
                endAngle: 150,
                background: [{
                    backgroundColor: {
                        linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
                        stops: [
                            [0, '#FFF'],
                            [1, '#333']
                        ]
                    },
                    borderWidth: 0,
                    outerRadius: '109%'
                }, {
                    backgroundColor: {
                        linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
                        stops: [
                            [0, '#333'],
                            [1, '#FFF']
                        ]
                    },
                    borderWidth: 1,
                    outerRadius: '107%'
                }, {
                    // default background
                }, {
                    backgroundColor: '#DDD',
                    borderWidth: 0,
                    outerRadius: '105%',
                    innerRadius: '103%'
                }]
            },
            yAxis: {
                min: 0,
                max: 100,
                
                minorTickInterval: 'auto',
                minorTickWidth: 1,
                minorTickLength: 10,
                minorTickPosition: 'inside',
                minorTickColor: '#666',
        
                tickPixelInterval: 30,
                tickWidth: 2,
                tickPosition: 'inside',
                tickLength: 10,
                tickColor: '#666',
                labels: {
                    step: 5,
                    rotation: 'auto'
                },
                title: {
                    text: ''
                },
                plotBands: [{
                    from: 0,
                    to: 40,
                    color: '#55BF3B' // green
                }, {
                    from: 40,
                    to: 70,
                    color: '#DDDF0D' // yellow
                }, {
                    from: 70,
                    to: 100,
                    color: '#DF5353' // red
                }]        
            },
            series: [{
                name: '分数',
                data: [0],
                tooltip: {
                    valueSuffix: ' 分'
                }
            }]
        
        },function(chart){
            var y=data.y;
            chart.series[0].data[0].update(y);
        });
    }
    
</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 id="mom_container" style="height: 400px;"></div>
              </td>
              <td>
                  <div class="edit_title">
                  <h3>满意度调查覆盖率</h3>
                </div>
                <div id="conver_container" style="height: 400px;"></div>
              </td>
            </tr>
        </table>
    </div>
    
    <div class="monitor_report clearfix">
        <div class="edit_title">
            <h3>满意度评分</h3>
        </div>
        <div class="monitor_flowreport" style="height:400px;">
            <div class="monitor_serabnorinfostat" id="satis_container" style="width:40%; min-height: 350px; float:left"></div>
            <table class="reportTable" style="width:58%;">
                <tr>
                    <td class="tdbg"  rowspan="2">序号</td>
                    <td class="tdbg"  colspan="2" rowspan="2" align="center">服务类型</td>
                    <td class="tdbg"  colspan="4" align="center">调查覆盖率(%)</td>
                    <td class="tdbg" colspan="3" align="center">分项得分</td>
                </tr>
                <tr>
                    <td class="tdbg" align="center">服务次数</td>
                    <td class="tdbg" align="center">调查次数</td>
                    <td class="tdbg" align="center">要求覆盖率(%)</td>
                    <td class="tdbg" align="center">实际覆盖率(%)</td>
                    <td class="tdbg" align="center">得分权重(%)</td>
                    <td class="tdbg" align="center">要求得分</td>
                    <td class="tdbg" align="center">实际得分</td>
                </tr>
                
                [#assign yfcount = 0 ]
                [#if satisList ?? && satisList?size > 0]
                    [#list satisList as satis]
                    <tr>
                        <td  align="center">${satis_index+1+yfcount}</td>
                        <td  colspan="2" [#if satis.YF_BUS_TYPE??]align="right"[#else]align="center"[/#if]>${satis.SATIS_TYPE_TEXT}</td>
                        <td  align="center">${satis.ALL_COUNT}</td>
                        <td  align="center">${satis.SATIS_COUNT}</td>
                        <td  align="center">${satis.REQUEST_FG_RATE}</td>
                        <td  align="center">${satis.FG_RATE}</td>
                        <td  align="center">${satis.SATIS_QZ}</td>
                        <td  align="center">${satis.REQUEST_SATIS_SCORE}</td>
                        <td  align="center">${satis.SATIS_SCORE}</td>
                    </tr>
                    [/#list]
                [#else]
                    <tr><td colspan="10">暂无数据</td></tr>
                [/#if]
               
            </table>
        </div>
    </div>
    
</div>
</body>
 
</html>