|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
|
6
|
+ <title>满意度统计</title>
|
|
|
7
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
8
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
9
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
10
|
+ <link href="../css/WorkOrder/Search.css" rel="stylesheet">
|
|
|
11
|
+ <link href="../css/init.css" rel="stylesheet" />
|
|
|
12
|
+ <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
|
13
|
+ <script src="../css/laydate/laydate.js"></script>
|
|
|
14
|
+ <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
|
15
|
+ <style>
|
|
|
16
|
+ table td {
|
|
|
17
|
+ word-break: break-all;
|
|
|
18
|
+ word-wrap: break-word;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .Shows {
|
|
|
22
|
+ display: block !important;
|
|
|
23
|
+ }
|
|
|
24
|
+
|
|
|
25
|
+ .complain {
|
|
|
26
|
+ display: none;
|
|
|
27
|
+ }
|
|
|
28
|
+
|
|
|
29
|
+ .toolLeft input {
|
|
|
30
|
+ width: 200px;
|
|
|
31
|
+ }
|
|
|
32
|
+
|
|
|
33
|
+ th {
|
|
|
34
|
+ padding: 5px;
|
|
|
35
|
+ text-align: center;
|
|
|
36
|
+ }
|
|
|
37
|
+
|
|
|
38
|
+ td {
|
|
|
39
|
+ padding: 5px;
|
|
|
40
|
+ }
|
|
|
41
|
+
|
|
|
42
|
+ .Borders {
|
|
|
43
|
+ border: 1px solid #d7d7d7;
|
|
|
44
|
+ }
|
|
|
45
|
+
|
|
|
46
|
+ .daoHang {
|
|
|
47
|
+ margin-bottom: 15px;
|
|
|
48
|
+ }
|
|
|
49
|
+
|
|
|
50
|
+ .inpBox {
|
|
|
51
|
+ border: 1px solid #e5e6e7;
|
|
|
52
|
+ height: 32px;
|
|
|
53
|
+ width: 200px;
|
|
|
54
|
+ display: inline-block;
|
|
|
55
|
+ position: relative;
|
|
|
56
|
+ vertical-align: middle;
|
|
|
57
|
+ }
|
|
|
58
|
+
|
|
|
59
|
+ .inpBox .inps1 {
|
|
|
60
|
+ width: 100%;
|
|
|
61
|
+ height: 30px;
|
|
|
62
|
+ outline: none;
|
|
|
63
|
+ border: 0;
|
|
|
64
|
+ border-image-width: 0;
|
|
|
65
|
+ padding: 0;
|
|
|
66
|
+ padding-left: 3px;
|
|
|
67
|
+ }
|
|
|
68
|
+
|
|
|
69
|
+ .xl {
|
|
|
70
|
+ display: inline-block;
|
|
|
71
|
+ background: url(../img/dropDown.png) no-repeat;
|
|
|
72
|
+ height: 100%;
|
|
|
73
|
+ background-position: center center;
|
|
|
74
|
+ width: 20px;
|
|
|
75
|
+ position: absolute;
|
|
|
76
|
+ right: 0;
|
|
|
77
|
+ top: 0px;
|
|
|
78
|
+ background-color: #f7bc8b;
|
|
|
79
|
+ cursor: pointer;
|
|
|
80
|
+ }
|
|
|
81
|
+
|
|
|
82
|
+ .xl:hover {
|
|
|
83
|
+ background-color: #e6d523;
|
|
|
84
|
+ }
|
|
|
85
|
+
|
|
|
86
|
+ .addTree {
|
|
|
87
|
+ background: #fff;
|
|
|
88
|
+ position: absolute;
|
|
|
89
|
+ width: 100%;
|
|
|
90
|
+ border: 1px solid darkgrey;
|
|
|
91
|
+ right: 0;
|
|
|
92
|
+ top: 30px;
|
|
|
93
|
+ display: none;
|
|
|
94
|
+ height: 350px;
|
|
|
95
|
+ overflow-y: auto;
|
|
|
96
|
+ z-index: 10;
|
|
|
97
|
+ text-align: center;
|
|
|
98
|
+ }
|
|
|
99
|
+
|
|
|
100
|
+ .addTree .list li:hover {
|
|
|
101
|
+ background: #ebebeb;
|
|
|
102
|
+ color: #717171;
|
|
|
103
|
+ }
|
|
|
104
|
+ </style>
|
|
|
105
|
+ </head>
|
|
|
106
|
+
|
|
|
107
|
+ <body class="gray-bg">
|
|
|
108
|
+ <div class="wrapper wrapper-content animated fadeInRight">
|
|
|
109
|
+ <div class="daoHang clearfix">
|
|
|
110
|
+ <div class="dhLeft">
|
|
|
111
|
+ <sapn>
|
|
|
112
|
+ <i class="syIcon"></i>位置:
|
|
|
113
|
+ <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
|
114
|
+ <a href="javaScript:;">业务统计</a>>
|
|
|
115
|
+ <a href="" class="nowPosition">日报推送</a>
|
|
|
116
|
+ </sapn>
|
|
|
117
|
+ </div>
|
|
|
118
|
+ <div class="dhRight">
|
|
|
119
|
+ <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
120
|
+ </div>
|
|
|
121
|
+ </div>
|
|
|
122
|
+
|
|
|
123
|
+ <div class="Content_box">
|
|
|
124
|
+ <div class="complain Shows">
|
|
|
125
|
+ <div class="toolBar clearfix">
|
|
|
126
|
+ <div class="toolLeft">
|
|
|
127
|
+ 开始时间: <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" />
|
|
|
128
|
+
|
|
|
129
|
+ <button class="btns search_1">查询</button>
|
|
|
130
|
+ </div>
|
|
|
131
|
+ </div>
|
|
|
132
|
+
|
|
|
133
|
+ <!--table1-->
|
|
|
134
|
+ <div style="width: 100%;padding: 10px;">
|
|
|
135
|
+ <table id="workorderlist" class="tables" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
136
|
+ <thead>
|
|
|
137
|
+ <tr>
|
|
|
138
|
+ <th data-field="index" data-align="center">序号</th>
|
|
|
139
|
+ <th data-field="time" data-align="center">日期</th>
|
|
|
140
|
+ <th data-formatter="Dispose" data-align="center">操作</th>
|
|
|
141
|
+ </tr>
|
|
|
142
|
+ </thead>
|
|
|
143
|
+ </table>
|
|
|
144
|
+ </div>
|
|
|
145
|
+ </div>
|
|
|
146
|
+ </div>
|
|
|
147
|
+ </div>
|
|
|
148
|
+ <script>
|
|
|
149
|
+ $(document).ready(function() {
|
|
|
150
|
+
|
|
|
151
|
+ laydate({
|
|
|
152
|
+ elem: '#squeryTime',
|
|
|
153
|
+ event: 'focus'
|
|
|
154
|
+ });
|
|
|
155
|
+
|
|
|
156
|
+ initTable();
|
|
|
157
|
+ });
|
|
|
158
|
+
|
|
|
159
|
+ //表格
|
|
|
160
|
+ function initTable() {
|
|
|
161
|
+ let date = new Date();
|
|
|
162
|
+ let y = date.getFullYear();
|
|
|
163
|
+ let m = date.getMonth()+1;
|
|
|
164
|
+ let d = date.getDate();
|
|
|
165
|
+ let time = new Date(`${y}-${m}-${d} 16:00:00`).getTime();
|
|
|
166
|
+ let dayMs = 86400000;
|
|
|
167
|
+
|
|
|
168
|
+ let arr = [];
|
|
|
169
|
+
|
|
|
170
|
+ for(let i = 0 ; i < 60 ; i++){
|
|
|
171
|
+ let date = new Date(time - (dayMs * i));
|
|
|
172
|
+ let y = date.getFullYear();
|
|
|
173
|
+ let m = date.getMonth()+1 < 10 ? `0${date.getMonth()+1}` : date.getMonth()+1;
|
|
|
174
|
+ let d = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate();
|
|
|
175
|
+ let h = date.getHours() < 10 ? `0${date.getHours()}` : date.getHours();
|
|
|
176
|
+ let mm = date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes();
|
|
|
177
|
+ let s = date.getSeconds() < 10 ? `0${date.getSeconds()}` : date.getSeconds();
|
|
|
178
|
+
|
|
|
179
|
+ arr.push({
|
|
|
180
|
+ index : i+1,
|
|
|
181
|
+ time : `${y}-${m}-${d} ${h}:${mm}:${s}`
|
|
|
182
|
+ })
|
|
|
183
|
+ }
|
|
|
184
|
+
|
|
|
185
|
+ $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
|
|
|
186
|
+ striped: true,
|
|
|
187
|
+ pagination: false,
|
|
|
188
|
+ });
|
|
|
189
|
+
|
|
|
190
|
+ let queryTime = $('#squeryTime').val();
|
|
|
191
|
+ if(queryTime){
|
|
|
192
|
+ arr = [arr.find(val=>val.time.indexOf(queryTime) !== -1 )];
|
|
|
193
|
+ }
|
|
|
194
|
+
|
|
|
195
|
+ $('#workorderlist').bootstrapTable('load', arr);
|
|
|
196
|
+ }
|
|
|
197
|
+
|
|
|
198
|
+ //搜索
|
|
|
199
|
+ $(".search_1").click(function() {
|
|
|
200
|
+ initTable();
|
|
|
201
|
+ });
|
|
|
202
|
+
|
|
|
203
|
+
|
|
|
204
|
+ //操作
|
|
|
205
|
+ function Dispose(val, row) {
|
|
|
206
|
+ return `
|
|
|
207
|
+ <div>
|
|
|
208
|
+ <a onclick="openModal('${row.time}')">查看</a>
|
|
|
209
|
+ </div>
|
|
|
210
|
+ `
|
|
|
211
|
+ }
|
|
|
212
|
+
|
|
|
213
|
+ // 弹出框
|
|
|
214
|
+ function openModal (time){
|
|
|
215
|
+
|
|
|
216
|
+ let date = new Date(time);
|
|
|
217
|
+ let y = date.getFullYear();
|
|
|
218
|
+ let m = date.getMonth()+1 < 10 ? `0${date.getMonth()+1}` : date.getMonth()+1;
|
|
|
219
|
+ let d = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate();
|
|
|
220
|
+
|
|
|
221
|
+ layer.open({
|
|
|
222
|
+ type: 2,
|
|
|
223
|
+ content: "dailyPaperModal.html?time=" + `${y}-${m}-${d}`, //iframe的url,no代表不显示滚动条
|
|
|
224
|
+ title: '详情',
|
|
|
225
|
+ area: ['60%', '80%'], //宽高
|
|
|
226
|
+ });
|
|
|
227
|
+ }
|
|
|
228
|
+
|
|
|
229
|
+ </script>
|
|
|
230
|
+ </body>
|
|
|
231
|
+
|
|
|
232
|
+</html>
|