Browse Source

Merge branch 'master' of http://117.158.196.116:22/zhoufan/12345_Base_Web

fanlongfei 8 years ago
parent
commit
a5f67cac3a

+ 12 - 2
WebAPP/WorkDetails.html

@@ -226,10 +226,20 @@
226 226
 		</div>
227 227
 		
228 228
 		<script type="text/javascript">
229
-			mui.init();
229
+//			mui.init();
230
+//			mui.init({
231
+//				swipeBack: true //启用右滑关闭功能
232
+//			});
230 233
 			mui.init({
231
-				swipeBack: true //启用右滑关闭功能
234
+					//添加newId自定义事件监听
235
+			window.addEventListener('newsId',function(event){
236
+			  //获得事件参数
237
+			  var id = event.WorkDetails.id;
238
+			  console.log(id)
239
+			  //根据id向服务器请求新闻详情
232 240
 			});
241
+			});
242
+			
233 243
 		</script>
234 244
 	</body>
235 245
 

+ 61 - 84
WebAPP/main.html

@@ -186,7 +186,7 @@
186 186
 									<span class="mui-h">待指派</span><span class="mui-h5">(2)</span></div>
187 187
 							</a>
188 188
 							<div class="mui-collapse-content" style="border-top: 1px solid #ccc;">
189
-								<div class="mui-table ">
189
+								<div class="mui-table">
190 190
 									<div class="mui-table-cell mui-col-xs-10 List-box">
191 191
 										<h5 class="mui-ellipsis mui-h">
192 192
 											<span class=" mui-icon ">
@@ -214,6 +214,7 @@
214 214
 									</div>
215 215
 								</div>
216 216
 							</div>
217
+							
217 218
 							<div class="mui-collapse-content">
218 219
 								<div class="mui-table ">
219 220
 									<div class="mui-table-cell mui-col-xs-10 List-box">
@@ -241,7 +242,7 @@
241 242
 									<span class="mui-h">待完成</span><span class="mui-h5">(2)</span></div>
242 243
 							</a>
243 244
 							<div class="mui-collapse-content" style="border-top: 1px solid #ccc;">
244
-								<div class="mui-table ">
245
+								<div class="mui-table" id="20">
245 246
 									<div class="mui-table-cell mui-col-xs-10 List-box">
246 247
 										<h5 class="mui-ellipsis mui-h">
247 248
 											<span class=" mui-icon ">
@@ -275,7 +276,7 @@
275 276
 									<span class="mui-h">已完成</span><span class="mui-h5">(2)</span></div>
276 277
 							</a>
277 278
 							<div class="mui-collapse-content" style="border-top: 1px solid #ccc;">
278
-								<div class="mui-table ">
279
+								<div class="mui-table " id="21">
279 280
 									<div class="mui-table-cell mui-col-xs-10 List-box">
280 281
 										<h5 class="mui-ellipsis mui-h">
281 282
 											<span class=" mui-icon ">
@@ -301,7 +302,7 @@
301 302
 
302 303
 							</div>
303 304
 							<div class="mui-collapse-content">
304
-								<div class="mui-table ">
305
+								<div class="mui-table " id="22">
305 306
 									<div class="mui-table-cell mui-col-xs-10 List-box">
306 307
 										<h5 class="mui-ellipsis mui-h">
307 308
 											<span class=" mui-icon ">
@@ -353,84 +354,60 @@
353 354
 		<script src="js/mui.min.js"></script>
354 355
 		<script src="js/app.js"></script>
355 356
 		<script>
356
-			//			(function($, doc) {
357
-			//				$.init();
358
-			//				var settings = app.getSettings();
359
-			//				var account = doc.getElementById('account');
360
-			//				//
361
-			//				window.addEventListener('show', function() {
362
-			//					var state = app.getState();
363
-			//					account.innerText = state.account;
364
-			//				}, false);
365
-			//				$.plusReady(function() {
366
-			//					var settingPage = $.preload({
367
-			//						"id": 'setting',
368
-			//						"url": 'setting.html'
369
-			//					});
370
-			//					//设置
371
-			//					var settingButton = doc.getElementById('setting');
372
-			//					//settingButton.style.display = settings.autoLogin ? 'block' : 'none';
373
-			//					settingButton.addEventListener('tap', function(event) {
374
-			//						$.openWindow({
375
-			//							id: 'setting',
376
-			//							show: {
377
-			//								aniShow: 'pop-in'
378
-			//							},
379
-			//							styles: {
380
-			//								popGesture: 'hide'
381
-			//							},
382
-			//							waiting: {
383
-			//								autoShow: false
384
-			//							}
385
-			//						});
386
-			//					});
387
-			//					//--
388
-			//					$.oldBack = mui.back;
389
-			//					var backButtonPress = 0;
390
-			//					$.back = function(event) {
391
-			//						backButtonPress++;
392
-			//						if (backButtonPress > 1) {
393
-			//							plus.runtime.quit();
394
-			//						} else {
395
-			//							plus.nativeUI.toast('再按一次退出应用');
396
-			//						}
397
-			//						setTimeout(function() {
398
-			//							backButtonPress = 0;
399
-			//						}, 1000);
400
-			//						return false;
401
-			//					};
402
-			//				});
403
-			//			}(mui, document));
404
-			//			mui.init();
405
-			//			mui.plusReady(function() {
406
-			//				var wv = plus.webview.currentWebview();
407
-			//				var vText = wv.name; //这样就能接收到上个页面传过来的值了
408
-			//				document.getElementById("account").innerHTML = vText;
409
-			//			})
410
-			mui.init();
411
-			mui.plusReady(function() {
412
-				mui(".mui-table-view").on('tap', '.mui-table ', function() {
413
-					//					var id = this.getAttribute("id");
414
-					//					mui.fire(detail, 'getDetail', {
415
-					//						id: id
416
-					//					});
417
-					//打开新闻详情
418
-					mui.openWindow({
419
-						id: 'WorkDetails',
420
-						url: 'WorkDetails.html',
421
-						show: {
422
-							aniShow: 'pop-in'
423
-						},
424
-						styles: {
425
-							popGesture: 'hide'
426
-						},
427
-						waiting: {
428
-							autoShow: false
429
-						},
430
-					});
431
-
432
-				});
433
-				////设置
357
+		
358
+			mui.init({
359
+				//打开详情
360
+				preloadPages:[{
361
+				    id:'WorkDetails.html',
362
+				    url:'WorkDetails.html'           
363
+				  }
364
+				]
365
+			});
366
+			
367
+			var detailPage = null;
368
+			//添加列表项的点击事件
369
+			mui('.mui-collapse-content').on('tap', '.mui-table', function(e) {
370
+			  var id = this.getAttribute('id');
371
+			  //获得详情页面
372
+			  if(!detailPage){
373
+			    detailPage = plus.webview.getWebviewById('WorkDetails.html');
374
+			  }
375
+			  //触发详情页面的newsId事件
376
+			  mui.fire(detailPage,'newsId',{
377
+			    id:id
378
+			  });
379
+			//打开详情页面          
380
+			  mui.openWindow({
381
+			     id:'WorkDetails.html'
382
+//				 url:'WorkDetails.html'  
383
+			  });
384
+			  
385
+			});  
386
+			
387
+//			mui.init();
388
+//			mui.plusReady(function() {
389
+//				mui(".mui-table-view").on('tap', '.mui-table', function() {
390
+//					//					var id = this.getAttribute("id");
391
+//					//					mui.fire(detail, 'getDetail', {
392
+//					//						id: id
393
+//					//					});
394
+//					//打开新闻详情
395
+//					mui.openWindow({
396
+//						id: 'WorkDetails',
397
+//						url: 'WorkDetails.html',
398
+//						show: {
399
+//							aniShow: 'pop-in'
400
+//						},
401
+//						styles: {
402
+//							popGesture: 'hide'
403
+//						},
404
+//						waiting: {
405
+//							autoShow: false
406
+//						},
407
+//					});
408
+//
409
+//				});
410
+//				//设置
434 411
 				var settingButton = document.getElementById('setting');
435 412
 				//settingButton.style.display = settings.autoLogin ? 'block' : 'none';
436 413
 				settingButton.addEventListener('tap', function(event) {
@@ -449,7 +426,7 @@
449 426
 					});
450 427
 				});
451 428
 				mui("")
452
-
429
+//
453 430
                    ///动态
454 431
                    var settingButton = document.getElementById('DT');
455 432
 				//settingButton.style.display = settings.autoLogin ? 'block' : 'none';
@@ -469,7 +446,7 @@
469 446
 					});
470 447
 				});
471 448
 		
472
-			})
449
+//			})
473 450
 		</script>
474 451
 	</body>
475 452
 

+ 2 - 2
WebChart/Script/Common/huayi.config.js

@@ -2,8 +2,8 @@
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-//  callcenter_url: "http://117.158.196.116:8878/",//生产环境
6
-   callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
5
+    callcenter_url: "http://192.168.4.18:4010/",//生产环境
6
+// callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
7 7
     //callcenter_url: "http://localhost:63662/"//测试环境
8 8
 
9 9
 //  socket_ip: "192.168.5.8",//ip

+ 2 - 2
WebChart/index.html

@@ -23,7 +23,7 @@
23 23
    </div>
24 24
 </div>
25 25
 <div class="qunzhong clearfix">
26
-	<div style="width: 60%;float: left;">
26
+	<div style="width: 50%;float: left;">
27 27
 		<div class="biao-title">受理群众区域统计</div>
28 28
 		<div id="container1" style="width: 100%; height:500px;float: left;"></div>
29 29
 	</div>
@@ -35,7 +35,7 @@
35 35
 		</div>
36 36
 	</div>
37 37
 	<div class="slqd">
38
-		<div class="biao-title">受理渠道24小时实时统计</div>
38
+		<div class="biao-title" style="margin-top: 29px;">受理渠道24小时实时统计</div>
39 39
 		<div id="qd_box" style="width: 100%;height: 200px;"></div>
40 40
 		<ul class="txbox">
41 41
 		</ul>

+ 11 - 14
WebChart/js/huawu.js

@@ -92,7 +92,7 @@ main.setOption({
92 92
 	series: []
93 93
 });
94 94
 
95
-//part 4
95
+//part 2
96 96
 	var phone_num = echarts.init(document.getElementById('phone_num'));
97 97
 		phone_num.setOption({
98 98
 //			title: {
@@ -115,7 +115,7 @@ main.setOption({
115 115
 			legend: {
116 116
 				//      orient: 'vertical',
117 117
 				bottom: '25',
118
-				data: ["话务","来电","接通","平均通话时长","接通率"],
118
+				data: ["话务","来电","接通","平均通话时长"],
119 119
 				textStyle: {
120 120
 					color: '#fff'
121 121
 				}
@@ -131,7 +131,14 @@ main.setOption({
131 131
 						shadowBlur: 10,
132 132
 						shadowOffsetX: 0,
133 133
 						shadowColor: 'rgba(0, 0, 0, 0.5)'
134
-					}
134
+					},
135
+					normal:{
136
+				 label:{ 
137
+                                   show: true, 
138
+                                   formatter: '{b} : {c} ({d}%)' 
139
+                                }, 
140
+                                labelLine :{show:true}
141
+			}
135 142
 				},
136 143
 				label: {
137 144
                 normal: {
@@ -145,7 +152,7 @@ main.setOption({
145 152
 		});
146 153
 Ajax();
147 154
 function Ajax(){
148
-		 var index = layer.load(1, { shade: [0.5,'#f5f5f5'] //0.1透明度的白色背景
155
+		 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
149 156
 							});
150 157
 	$.ajax({
151 158
 	type: "get",
@@ -189,14 +196,6 @@ function Ajax(){
189 196
 					symbolSize: 10,
190 197
 					data: part1.lcounts
191 198
 				}, {
192
-					name: "放弃数量",
193
-					type: "line",
194
-					smooth: true,
195
-					showAllSymbol: true,
196
-					symbol: "emptyCircle",
197
-					symbolSize: 10,
198
-					data: part1.gcounts
199
-				}, {
200 199
 					name: "骚扰数量",
201 200
 					type: "line",
202 201
 					smooth: true,
@@ -240,8 +239,6 @@ function Ajax(){
240 239
 						name:"接通",value:part4.jtcon
241 240
 					},{  
242 241
 						name:"平均通话时长",value:part4.pjthtimes
243
-					},{  
244
-						name:"接通率",value:part4.jtl
245 242
 					}
246 243
 					]
247 244
 				}]

+ 2 - 2
WebChart/js/jiedanbumen.js

@@ -91,7 +91,7 @@
91 91
 
92 92
 		Ajax();
93 93
 		function Ajax(){
94
-				 var index = layer.load(1, { shade: [0.5,'#f5f5f5'] //0.1透明度的白色背景
94
+				 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
95 95
 							});
96 96
 			$('.txbox').html('');
97 97
 			$.ajax({
@@ -132,7 +132,7 @@
132 132
 						var part3_xAxis = [];
133 133
 						$(department).each(function(i, n) {
134 134
 							var part3_obj = {};
135
-							part3_obj.value = n.percent;
135
+							part3_obj.value = n.count;
136 136
 							part3_obj.name = n.deptname;
137 137
 
138 138
 							part3_ser.push(part3_obj);

+ 226 - 194
WebChart/js/laiyuanqudao.js

@@ -1,4 +1,3 @@
1
-		
2 1
 		var container1 = echarts.init(document.getElementById('container1'));
3 2
 		container1.setOption({
4 3
 			tooltip: {
@@ -11,17 +10,17 @@
11 10
 					}
12 11
 				}
13 12
 			},
14
-//			title: {
15
-//				text: '受理群众区域统计',
16
-//				x: 'center',
17
-//				top: 'top',
18
-//				textStyle: {
19
-//					color: '#fff',
20
-//					fontSize: 18,
21
-//
22
-//				},
23
-//
24
-//			},
13
+			//			title: {
14
+			//				text: '受理群众区域统计',
15
+			//				x: 'center',
16
+			//				top: 'top',
17
+			//				textStyle: {
18
+			//					color: '#fff',
19
+			//					fontSize: 18,
20
+			//
21
+			//				},
22
+			//
23
+			//			},
25 24
 			legend: {
26 25
 				data: [],
27 26
 				textStyle: {
@@ -57,196 +56,229 @@
57 56
 		//受理区域统计
58 57
 		var shouLiArea = echarts.init(document.getElementById('shouLiArea'));
59 58
 		shouLiArea.setOption({
60
-//					title: {
61
-//						text: '受理区域统计',
62
-//						x: 'center',
59
+			//					title: {
60
+			//						text: '受理区域统计',
61
+			//						x: 'center',
62
+			//						textStyle: {
63
+			//							color: '#fff',
64
+			//							fontSize: 18
65
+			//						}
66
+			//					},
67
+			tooltip: {
68
+				trigger: 'item',
69
+				formatter: "{a} <br/>{b} : {c} ({d}%)"
70
+			},
71
+			legend: {
72
+				x: 'center',
73
+				y: 'bottom',
74
+				textStyle: {
75
+					color: '#fff'
76
+				},
77
+				data: []
78
+			},
79
+			calculable: true,
80
+			series: [{
81
+				name: '数量统计',
82
+				type: 'pie',
83
+				radius: [50, 150],
84
+				center: ['45%', '40%'],
85
+				roseType: 'radius',
86
+//				label: {
87
+//					normal: {
88
+//						show: false,
63 89
 //						textStyle: {
64
-//							color: '#fff',
65
-//							fontSize: 18
90
+//							color: '#fff'
66 91
 //						}
67 92
 //					},
68
-					tooltip: {
69
-						trigger: 'item',
70
-						formatter: "{a} <br/>{b} : {c} ({d}%)"
71
-					},
72
-					legend: {
73
-						x: 'center',
74
-						y: 'bottom',
75
-						textStyle: {
76
-							color: '#fff'
77
-						},
78
-						data: []
93
+//					emphasis: {
94
+//						show: true
95
+//					}
96
+//				},
97
+//				lableLine: {
98
+//					normal: {
99
+//						show: false
100
+//					},
101
+//					emphasis: {
102
+//						show: true
103
+//					}
104
+//				},
105
+				data: [],
106
+				itemStyle: {
107
+					emphasis: {
108
+						shadowBlur: 10,
109
+						shadowOffsetX: 0,
110
+						shadowColor: 'rgba(0, 0, 0, 0.5)'
79 111
 					},
80
-					calculable: true,
81
-					series: [{
82
-						name: '数量统计',
83
-						type: 'pie',
84
-						radius: [50, 150],
85
-						center: ['45%', '40%'],
86
-						roseType: 'radius',
112
+					normal: {
87 113
 						label: {
88
-							normal: {
89
-								show: false,
90
-								 textStyle: {
91
-				                        color: '#fff'
92
-				                    }
93
-							},
94
-							emphasis: {
95
-								show: true
96
-							}
114
+							show: true,
115
+							formatter: '{b} :\n {c} ({d}%)'
116
+//							formatter: function(val){   //让series 中的文字进行换行  
117
+//					                 return val.name.split(":").join("\n");}  
118
+//					             }
97 119
 						},
98
-						lableLine: {
99
-							normal: {
100
-								show: false
101
-							},
102
-							emphasis: {
103
-								show: true
104
-							}
105
-						},
106
-						data: []
107
-					}]
108
-				});
109
-          //受理渠道24小时统计
110
-          var qd_box = echarts.init(document.getElementById('qd_box'));
111
-			qd_box .setOption({
112
-				    tooltip : {
113
-				        trigger: 'axis',
114
-						formatter: function(datas) 
115
-					              {
116
-					              var res = datas[0].name + '<br/>', val;
117
-					                  for(var i = 0, length = datas.length; i < length; i++) {
118
-					                        val = (datas[i].value) + '%';
119
-					                        res += datas[i].seriesName + ':' + val + '<br/>';
120
-					                    }
121
-					                    return res;
122
-					               }
123
-				    },
124
-				    legend: {
125
-				    	textStyle: {
126
-							color: '#fff'
127
-						},
128
-				        data: []
129
-				    },
130
-//				    grid: {
131
-//				        left: '3%',
132
-//				        right: '4%',
133
-//				        bottom: '3%',
134
-//				        containLabel: true
135
-//				    },
136
-				    xAxis:  {
137
-				        type: 'value',
138
-				        axisLine: {
139
-							lineStyle: {
140
-								color: '#fff'
141
-							}
120
+						labelLine: {
121
+							show: true
142 122
 						}
143
-				    },
144
-				    yAxis: {
145
-				        type: 'category',
146
-				        axisLine: {
147
-								lineStyle: {
148
-									color: '#fff'
149
-								}
150
-						},
151
-				        data: ['渠道占比']
152
-				    },
153
-				    series: []
154
-				});
155
-            
156
-              Ajax();
157
-              function Ajax(){
158
-              	 var index = layer.load(1, { shade: [0.5,'#f5f5f5'] //0.1透明度的白色背景
159
-							});
160
-              	$(".txbox").html('');
161
-                	$.ajax({
162
-					type: "get",
163
-					url: huayi.config.callcenter_url + "Info/GetSourceInfo",
164
-					dataType: 'json',
165
-					async: true,
166
-					data: {
167
-						//				token:token
168
-					},
169
-					success: function(result) {
170
-						if(result.state.toLowerCase() == 'success') {
171
-							layer.close(index); 
172
-							var qunZhongArea = result.data.c;
173
-							var sers = []
174
-							for(var i = 0; i < qunZhongArea.counts.length; i++) {
175
-								var obj = {};
176
-								obj.name = qunZhongArea.cols[i];
177
-								obj.type = "line";
178
-								obj.smooth = true;
179
-								obj.showAllSymbol = true;
180
-								obj.symbol = "emptyCircle";
181
-								obj.symbolSize = 10;
182
-								obj.data = qunZhongArea.counts[i];
183
-								sers.push(obj)
184
-							}
185
-							container1.setOption({
186
-								xAxis: {
187
-									data: qunZhongArea.hours
188
-								},
189
-								legend: {
190
-									data: qunZhongArea.cols
191
-								},
192
-								series: sers
193
-							});
123
+					}
124
+				},
125
+				label: {
126
+                normal: {
127
+                    textStyle: {
128
+                        color: '#fff'
129
+                    }
130
+                }
131
+            }
132
+			}]
133
+		});
134
+		//受理渠道24小时统计
135
+		var qd_box = echarts.init(document.getElementById('qd_box'));
136
+		qd_box.setOption({
137
+			tooltip: {
138
+				trigger: 'axis',
139
+				formatter: function(datas) {
140
+					var res = datas[0].name + '<br/>',
141
+						val;
142
+					for(var i = 0, length = datas.length; i < length; i++) {
143
+						val = (datas[i].value) + '%';
144
+						res += datas[i].seriesName + ':' + val + '<br/>';
145
+					}
146
+					return res;
147
+				}
148
+			},
149
+			legend: {
150
+				textStyle: {
151
+					color: '#fff'
152
+				},
153
+				data: []
154
+			},
155
+			//				    grid: {
156
+			//				        left: '3%',
157
+			//				        right: '4%',
158
+			//				        bottom: '3%',
159
+			//				        containLabel: true
160
+			//				    },
161
+			xAxis: {
162
+				type: 'value',
163
+				axisLine: {
164
+					lineStyle: {
165
+						color: '#fff'
166
+					}
167
+				}
168
+			},
169
+			yAxis: {
170
+				type: 'category',
171
+				axisLine: {
172
+					lineStyle: {
173
+						color: '#fff'
174
+					}
175
+				},
176
+				data: ['渠道占比']
177
+			},
178
+			series: []
179
+		});
194 180
 
195
-							var shouLiQuDao = result.data.a;
196
-							var qd_legend=[];
197
-							var qd_sers=[]
198
-							var qd_label={normal:{show: true, position: 'inside',formatter: '{c}%'}};
199
-							$(shouLiQuDao).each(function(i, n) {
200
-								var qd_obj={};
201
-								var ser_data=[];
202
-								ser_data.push(n.Count)
203
-//								$('<li><div id="qd' + i + '"></div>' + n.Source + '</li>').appendTo('.txbox');
204
-								qd_legend.push(n.Source);
205
-								qd_obj.name =n.Source;
206
-								qd_obj.type ='bar';
207
-								qd_obj.stack ='总量';
208
-								qd_obj.label =qd_label;
209
-								qd_obj.data =ser_data;
210
-								qd_sers.push(qd_obj);
211
-								
212
-//								$('#qd' + i).radialIndicator({
213
-//									barColor: getColor(),
214
-//									barWidth: 10,
215
-//									initValue: n.Count,
216
-//									roundCorner: true,
217
-//									percentage: true
218
-//								});
219
-							})
220
-							qd_box.setOption({
221
-								legend: {
222
-									data: qd_legend
223
-								},
224
-								series: qd_sers
225
-							});
181
+		Ajax();
226 182
 
227
-							var hsouLiArea = result.data.b;
228
-							var hsouLiArea_lengend=[];
229
-							var hsouLiArea_ser=[];
230
-							$(hsouLiArea).each(function(i, n) {
231
-								var hsouLiArea_obj={};
232
-								hsouLiArea_lengend.push(n.AreaName);
233
-								hsouLiArea_obj.value=n.Count;
234
-								hsouLiArea_obj.name=n.AreaName;
235
-								hsouLiArea_ser.push(hsouLiArea_obj);
236
-							
237
-							})
238
-							shouLiArea.setOption({
239
-								legend: {
240
-									data: hsouLiArea_lengend
241
-								},
242
-								series: [{
243
-									data:hsouLiArea_ser
244
-								}]
245
-							});
183
+		function Ajax() {
184
+			var index = layer.load(1, {
185
+				shade: [0.5, '#030303'] //0.1透明度的白色背景
186
+			});
187
+			$(".txbox").html('');
188
+			$.ajax({
189
+				type: "get",
190
+				url: huayi.config.callcenter_url + "Info/GetSourceInfo",
191
+				dataType: 'json',
192
+				async: true,
193
+				data: {
194
+					//				token:token
195
+				},
196
+				success: function(result) {
197
+					if(result.state.toLowerCase() == 'success') {
198
+						layer.close(index);
199
+						var qunZhongArea = result.data.c;
200
+						var sers = []
201
+						for(var i = 0; i < qunZhongArea.counts.length; i++) {
202
+							var obj = {};
203
+							obj.name = qunZhongArea.cols[i];
204
+							obj.type = "line";
205
+							obj.smooth = true;
206
+							obj.showAllSymbol = true;
207
+							obj.symbol = "emptyCircle";
208
+							obj.symbolSize = 10;
209
+							obj.data = qunZhongArea.counts[i];
210
+							sers.push(obj)
246 211
 						}
212
+						container1.setOption({
213
+							xAxis: {
214
+								data: qunZhongArea.hours
215
+							},
216
+							legend: {
217
+								data: qunZhongArea.cols
218
+							},
219
+							series: sers
220
+						});
221
+
222
+						var shouLiQuDao = result.data.a;
223
+						var qd_legend = [];
224
+						var qd_sers = []
225
+						var qd_label = {
226
+							normal: {
227
+								show: true,
228
+								position: 'inside',
229
+								formatter: '{c}%'
230
+							}
231
+						};
232
+						$(shouLiQuDao).each(function(i, n) {
233
+							var qd_obj = {};
234
+							var ser_data = [];
235
+							ser_data.push(n.percent)
236
+							//								$('<li><div id="qd' + i + '"></div>' + n.Source + '</li>').appendTo('.txbox');
237
+							qd_legend.push(n.source);
238
+							qd_obj.name = n.source;
239
+							qd_obj.type = 'bar';
240
+							qd_obj.stack = '总量';
241
+							qd_obj.label = qd_label;
242
+							qd_obj.data = ser_data;
243
+							qd_sers.push(qd_obj);
244
+
245
+							//								$('#qd' + i).radialIndicator({
246
+							//									barColor: getColor(),
247
+							//									barWidth: 10,
248
+							//									initValue: n.Count,
249
+							//									roundCorner: true,
250
+							//									percentage: true
251
+							//								});
252
+						})
253
+						qd_box.setOption({
254
+							legend: {
255
+								data: qd_legend
256
+							},
257
+							series: qd_sers
258
+						});
259
+
260
+						var hsouLiArea = result.data.b;
261
+						var hsouLiArea_lengend = [];
262
+						var hsouLiArea_ser = [];
263
+						$(hsouLiArea).each(function(i, n) {
264
+							var hsouLiArea_obj = {};
265
+							hsouLiArea_lengend.push(n.AreaName);
266
+							hsouLiArea_obj.value = n.Count;
267
+							hsouLiArea_obj.name = n.AreaName;
268
+							hsouLiArea_ser.push(hsouLiArea_obj);
269
+
270
+						})
271
+						shouLiArea.setOption({
272
+							legend: {
273
+								data: hsouLiArea_lengend
274
+							},
275
+							series: [{
276
+								data: hsouLiArea_ser
277
+							}]
278
+						});
247 279
 					}
248
-				});
249
-                }
250
-				
251
-		setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
252
-       
280
+				}
281
+			});
282
+		}
283
+
284
+		setInterval(Ajax, huayi.config.indextime); //Ajax调用函数

+ 26 - 12
WebChart/js/tousujubao.js

@@ -37,8 +37,22 @@
37 37
 						shadowBlur: 10,
38 38
 						shadowOffsetX: 0,
39 39
 						shadowColor: 'rgba(0, 0, 0, 0.5)'
40
-					}
41
-				}
40
+					},
41
+					normal:{
42
+				 label:{ 
43
+                                   show: true, 
44
+                                   formatter: '{b} : {c} ({d}%)' 
45
+                                }, 
46
+                                labelLine :{show:true}
47
+			}
48
+				},
49
+				label: {
50
+                normal: {
51
+                    textStyle: {
52
+                        color: '#fff'
53
+                    }
54
+                }
55
+            }
42 56
 			}]
43 57
 		});
44 58
 		
@@ -139,7 +153,7 @@
139 153
 			}]
140 154
 		});		Ajax();
141 155
 		function Ajax(){
142
-				 var index = layer.load(1, { shade: [0.5,'#f5f5f5'] //0.1透明度的白色背景
156
+				 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
143 157
 							});
144 158
 			$('.tsjb-bm ul').html('');
145 159
 				$.ajax({
@@ -180,13 +194,13 @@
180 194
 							});
181 195
 							//part 1
182 196
 							var part1 = result.data.b;
183
-							var part_1_legend = [];
197
+							var part_1_legend = part1.cols;
184 198
 							var part_1_ser = [];
185
-							$(part1).each(function(i, n) {
186
-								part_1_legend.push(n.teptname);
199
+							$(part1.cols).each(function(i, n) {
200
+//								part_1_legend.push(n.teptname);
187 201
 								var part_1_obj = {};
188
-								part_1_obj.value = n.count;
189
-								part_1_obj.name = n.teptname;
202
+								part_1_obj.value = part1.counts[i];
203
+								part_1_obj.name = n;
190 204
 								part_1_ser.push(part_1_obj)
191 205
 							})
192 206
 							quantity.setOption({
@@ -200,15 +214,15 @@
200 214
 							//part 3
201 215
 							var part3 = result.data.c;
202 216
 							var colorArr = [];
203
-							$(part3).each(function(i, n) {
217
+							$(part3.cols).each(function(i, n) {
204 218
 								$('<li class="clearfix">' +
205 219
 									'<div class="tsgjz-left">' +
206
-									'<div class="progress" title="' + n.percent + '">' +
207
-									'<div class="progress-bar bar' + i + '" title="' + n.percent + '" style="width: ' + n.percent + ';background:' + getColor() + '">' +
220
+									'<div class="progress" title="' + part3.counts[i]+ '个">' +
221
+									'<div class="progress-bar bar' + i + '" title="' + part3.counts[i] + '" style="width: ' + part3.counts[i] + 'px;background:' + getColor() + '">' +
208 222
 									'</div>' +
209 223
 									'</div>' +
210 224
 									'</div>' +
211
-									'<div class="tsgjz-right">' + n.deptname + '<span class="count' + i + '" style="color:' + $('.bar' + i).css("background-color") + '">' + n.count + '</span></div>' +
225
+									'<div class="tsgjz-right">' + n + '<span class="count' + i + '" style="color:' + $('.bar' + i).css("background-color") + '">' + part3.counts[i] + '</span></div>' +
212 226
 									'</li>').appendTo('.tsjb-bm ul');
213 227
 								colorArr.push($('.bar' + i).css("background-color"));
214 228
 							})

+ 22 - 10
WebChart/js/zhongxin.js

@@ -34,6 +34,13 @@ slhw.setOption({
34 34
 				shadowBlur: 10,
35 35
 				shadowOffsetX: 0,
36 36
 				shadowColor: 'rgba(0, 0, 0, 0.5)'
37
+			},
38
+			normal:{
39
+				 label:{ 
40
+                                   show: true, 
41
+                                   formatter: '{b} : {c} ({d}%)' 
42
+                                }, 
43
+                                labelLine :{show:true}
37 44
 			}
38 45
 		},
39 46
 		label: {
@@ -44,6 +51,11 @@ slhw.setOption({
44 51
                 }
45 52
             }
46 53
 	}]
54
+	
55
+	
56
+	
57
+	
58
+	
47 59
 });
48 60
 
49 61
 //接通率报表
@@ -191,9 +203,9 @@ th_nums.setOption({
191 203
 });
192 204
 Ajax();
193 205
 function Ajax(){
194
-		$('.gdmap-r ul').html('');
206
+	$('.gdmap-r ul').html('');
195 207
 	$('.gdmap-l ul').html('');
196
-	var index = layer.load(1, { shade: [0.5,'#f5f5f5'] //0.1透明度的白色背景
208
+	var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
197 209
 	});
198 210
 
199 211
 	$.ajax({
@@ -283,21 +295,21 @@ function Ajax(){
283 295
 			var part2=data.data.a;
284 296
 			var part2_legend = [];
285 297
 			var part2_ser = [];
286
-			$(part2).each(function(i,n){
298
+			$(part2.cols).each(function(i,n){
287 299
 				var obj={};
288 300
 				if(i==1){
289
-					obj.value=n.count;
290
-					obj.name=n.teptname;
301
+					obj.value=part2.counts[i];
302
+					obj.name=n;
291 303
 					obj.selected=true;
292 304
 				}else{
293
-					obj.value=n.count;
294
-					obj.name=n.teptname;
305
+					obj.value=part2.counts[i];
306
+					obj.name=n;
295 307
 				}
296
-				part2_legend.push(n.teptname);
308
+				part2_legend.push(n);
297 309
 				part2_ser.push(obj);
298 310
 				$('<li>'+
299
-						'<div>'+n.teptname +'</div>'+
300
-						'<span>'+n.count +'</span>'+
311
+						'<div>'+n +'</div>'+
312
+						'<span>'+part2.counts[i] +'</span>'+
301 313
 					'</li>').appendTo('.gdmap-l ul');
302 314
 			})
303 315
 			slhw.setOption({

+ 5 - 0
WebChat/css/inits.css

@@ -8,3 +8,8 @@
8 8
 	line-height: 50px!important;
9 9
     color: #fff!important;
10 10
 }
11
+.block_button{
12
+	width: 95%;
13
+	margin: 0 auto;
14
+    letter-spacing: 18px;
15
+}

+ 189 - 0
WebChat/html/allSuQiu.html

@@ -0,0 +1,189 @@
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,maximum-scale=1,user-scalable=no">
8
+		<meta name="apple-mobile-web-app-capable" content="yes">
9
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
10
+		<link href="../css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/iconfont.css" />
12
+		<link rel="stylesheet" href="../css/inits.css" />
13
+		<style>
14
+			.mui-bar-popover {
15
+				width: 30%;
16
+			}
17
+			.mui-popover.mui-bar-popover .mui-table-view{
18
+				width: 100%;
19
+			}
20
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn){
21
+				text-align: center;
22
+			}
23
+			.san{
24
+				    font-size: 14px;
25
+    				margin-right: 5px
26
+			}
27
+			.nav_a{
28
+				    border-right: 1px solid #ccc;
29
+			}
30
+			.go_search{
31
+				background: #fff!important;
32
+			    border: 1px solid #ccc!important;
33
+			    border-radius: 17px!important;
34
+			}
35
+			.new_title{
36
+				color: #000;
37
+				font-size: 16px;
38
+			}
39
+			.list_new_icon{
40
+				margin-right: 5px;
41
+				font-size: 20px;
42
+				vertical-align: middle;
43
+			}
44
+			.time i{
45
+				font-size: 18px!important;
46
+			}
47
+			.finish{
48
+				color: #5ccb91;
49
+			}
50
+			.going{
51
+				color: #febd23;
52
+			}
53
+			.waiting{
54
+				color: #fd7c78;
55
+			}
56
+			.advice,.time{
57
+				margin-left: 15px;
58
+			}
59
+		</style>
60
+	</head>
61
+
62
+	<body>
63
+		<header id="header" class="mui-bar mui-bar-nav new_head">
64
+			<h1 class="mui-title new_head_title">所有诉求</h1>
65
+			<a class="new_head_left mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
66
+				<span class="mui-icon mui-icon-left-nav"></span>返回
67
+			</a>
68
+			<a class="new_head_right mui-btn mui-btn-blue mui-btn-link mui-pull-right"><span class="iconfont icon-unie644" style="font-size: 25px;"></span></a>
69
+		</header>
70
+		<nav class="mui-bar mui-bar-tab ">
71
+			<a class="mui-tab-item nav_a" ><span class="mui-icon iconfont icon-jianpan2" style="font-size: 30px;"></span></a>
72
+			<a class="mui-tab-item nav_a" href="#Popover_0"><span class="san iconfont icon-sangeheng"></span>提交诉求</a>
73
+			<a class="mui-tab-item nav_a" href="#Popover_1"><span class="san iconfont icon-sangeheng"></span>市民服务</a>
74
+			<a class="mui-tab-item" href="#Popover_2"><span class="san iconfont icon-sangeheng"></span>@我</a>
75
+		</nav>
76
+		<div class="mui-content">
77
+			<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
78
+				<li class="mui-table-view-cell">
79
+					<div class="mui-input-row mui-search">
80
+					<input type="search" class="mui-input-clear go_search" placeholder="请输入关键字">
81
+				</div>
82
+				</li>
83
+				  <li class="mui-table-view-cell">
84
+		            <div class="mui-table">
85
+		                <div class="mui-table-cell mui-col-xs-12">
86
+		                    <h5 class="mui-ellipsis-2 new_title" >诉求标题诉求标题诉求标题诉求标题诉求标题</h5>
87
+		                    <p class="mui-h6 mui-ellipsis">
88
+		                    	<span class="finish state"><i class="iconfont icon-duihao list_new_icon"></i>已完成</span>
89
+		                    	<span class="time"><i class="iconfont icon-daichuli list_new_icon"></i>2017年09月09日</span>
90
+		                    	<span class="advice"><i class="iconfont icon-wuyetousu list_new_icon"></i>建议反馈</span>
91
+		                    </p>
92
+		                </div>
93
+		               
94
+		            </div>
95
+		        </li>
96
+				  <li class="mui-table-view-cell">
97
+		            <div class="mui-table">
98
+		                <div class="mui-table-cell mui-col-xs-12">
99
+		                    <h5 class="mui-ellipsis-2 new_title" >题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题</h5>
100
+		                    <p class="mui-h6 mui-ellipsis">
101
+		                    	<span class="finish state"><i class="iconfont icon-duihao list_new_icon"></i>已完成</span>
102
+		                    	<span class="time"><i class="iconfont icon-daichuli list_new_icon"></i>2017年09月09日</span>
103
+		                    	<span class="advice"><i class="iconfont icon-wuyetousu list_new_icon"></i>建议反馈</span>
104
+		                    </p>
105
+		                </div>
106
+		               
107
+		            </div>
108
+		        </li>
109
+				  <li class="mui-table-view-cell">
110
+		            <div class="mui-table">
111
+		                <div class="mui-table-cell mui-col-xs-12">
112
+		                    <h5 class="mui-ellipsis-2 new_title" >诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题诉求标题</h5>
113
+		                    <p class="mui-h6 mui-ellipsis">
114
+		                    	<span class="going state"><i class="iconfont icon-gengduo list_new_icon"></i>正在调整</span>
115
+		                    	<span class="time"><i class="iconfont icon-daichuli list_new_icon"></i>2017年09月09日</span>
116
+		                    	<span class="advice"><i class="iconfont icon-wuyetousu list_new_icon"></i>建议反馈</span>
117
+		                    </p>
118
+		                </div>
119
+		               
120
+		            </div>
121
+		        </li>
122
+				  <li class="mui-table-view-cell">
123
+		            <div class="mui-table">
124
+		                <div class="mui-table-cell mui-col-xs-12">
125
+		                    <h5 class="mui-ellipsis-2 new_title" >诉求标题诉求标题诉求标题诉求标题诉求标题</h5>
126
+		                    <p class="mui-h6 mui-ellipsis">
127
+		                    	<span class="waiting state"><i class="iconfont icon-icon16 list_new_icon"></i>等待处理</span>
128
+		                    	<span class="time"><i class="iconfont icon-daichuli list_new_icon"></i>2017年09月09日</span>
129
+		                    	<span class="advice"><i class="iconfont icon-wuyetousu list_new_icon"></i>问题投诉</span>
130
+		                    </p>
131
+		                </div>
132
+		               
133
+		            </div>
134
+		        </li>
135
+				
136
+				
137
+				
138
+			</ul>
139
+				
140
+			
141
+			
142
+		</div>
143
+		<!--二级菜单开始-->
144
+		<div id="Popover_0" class="mui-popover mui-bar-popover">
145
+			<div class="mui-popover-arrow"></div>
146
+			<ul class="mui-table-view">
147
+				<li class="mui-table-view-cell"><a href="#">我要咨询</a>
148
+				</li>
149
+				<li class="mui-table-view-cell"><a href="#">我要投诉</a>
150
+				</li>
151
+				<li class="mui-table-view-cell"><a href="#">我要建议</a>
152
+				</li>
153
+				<li class="mui-table-view-cell"><a href="#">我要表扬</a>
154
+				</li>
155
+			</ul>
156
+		</div>
157
+		<div id="Popover_1" class="mui-popover mui-bar-popover">
158
+			<div class="mui-popover-arrow"></div>
159
+			<ul class="mui-table-view">
160
+				<li class="mui-table-view-cell"><a href="#">通知公告</a>
161
+				</li>
162
+				<li class="mui-table-view-cell"><a href="#">知识搜索</a>
163
+				</li>
164
+				<li class="mui-table-view-cell"><a href="#">常见问题</a>
165
+				</li>
166
+			</ul>
167
+		</div>
168
+		<div id="Popover_2" class="mui-popover mui-bar-popover">
169
+			<div class="mui-popover-arrow"></div>
170
+			<ul class="mui-table-view">
171
+				<li class="mui-table-view-cell"><a href="#">我的投诉</a>
172
+				</li>
173
+				<li class="mui-table-view-cell"><a href="#">进度查询</a>
174
+				</li>
175
+				<li class="mui-table-view-cell"><a href="#">个人中心</a>
176
+				</li>
177
+			</ul>
178
+		</div>
179
+		<!--二级菜单结束-->
180
+		
181
+		
182
+		
183
+		<script src="../js/mui.min.js"></script>
184
+		<script type="text/javascript">
185
+			mui.init()
186
+		</script>
187
+	</body>
188
+
189
+</html>

+ 165 - 0
WebChat/html/myTouSu.html

@@ -0,0 +1,165 @@
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,maximum-scale=1,user-scalable=no">
8
+		<meta name="apple-mobile-web-app-capable" content="yes">
9
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
10
+		<link href="../css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/iconfont.css" />
12
+		<link rel="stylesheet" href="../css/inits.css" />
13
+		<style>
14
+			.mui-bar-popover {
15
+				width: 30%;
16
+			}
17
+			.mui-popover.mui-bar-popover .mui-table-view{
18
+				width: 100%;
19
+			}
20
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn){
21
+				text-align: center;
22
+			}
23
+			.san{
24
+				    font-size: 14px;
25
+    				margin-right: 5px
26
+			}
27
+			.nav_a{
28
+				    border-right: 1px solid #ccc;
29
+			}
30
+			.radio_box{
31
+				display: inline-block;
32
+			}
33
+			.mui-radio input[type=radio]:before{
34
+				font-size: 25px;
35
+				vertical-align: middle;
36
+			}
37
+			.ztext{
38
+				width: 100%;
39
+			    margin: 0;
40
+			    border: 0;
41
+			}
42
+			.action{
43
+				padding: 11px 15px;
44
+			}
45
+			
46
+		</style>
47
+	</head>
48
+
49
+	<body>
50
+		<header id="header" class="mui-bar mui-bar-nav new_head">
51
+			<h1 class="mui-title new_head_title">我要投诉</h1>
52
+			<button class="new_head_left mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
53
+				<span class="mui-icon mui-icon-left-nav"></span>返回
54
+			</button>
55
+			<button class="new_head_right mui-btn mui-btn-blue mui-btn-link mui-pull-right"><span class="iconfont icon-unie644" style="font-size: 25px;"></span></button>
56
+		</header>
57
+		
58
+		<div class="mui-content">
59
+			<ul class="mui-table-view">
60
+				 <li class="mui-table-view-cell">
61
+				 	<div class="mui-input-row" id="showUserPicker">
62
+						<label>诉求类型:</label>
63
+						<input type="text" id='userResult' class="ui-alert" />
64
+					</div>
65
+				 </li>
66
+		         <li class="mui-table-view-cell">
67
+		         	<div class="mui-input-row">
68
+							<label>保密要求:</label>
69
+							<div class="mui-input-row mui-radio mui-left radio_box">
70
+		         		<label>保密</label>
71
+		         		<input type="radio" type="radio" name="secret"/>
72
+		         	</div>
73
+		         	<div class="mui-input-row mui-radio mui-left radio_box">
74
+		         		<label>公开</label>
75
+		         		<input type="radio" type="radio" name="secret"/>
76
+		         	</div>
77
+					</div>
78
+		         </li>
79
+		         <li class="mui-table-view-cell">
80
+		         		<div class="mui-input-row">
81
+						<label>诉求主题:</label>
82
+						<input type="text" placeholder="请填写您的诉求主题">
83
+					</div>
84
+		         </li>
85
+		         <li class="mui-table-view-cell">
86
+		         		<div class="mui-input-row">
87
+						<textarea class="ztext" name="" id="textarea" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
88
+					</div>
89
+		         </li>
90
+		           <li class="mui-table-view-cell">
91
+		         		<div class="mui-input-row">
92
+						<label>联系人:</label>
93
+						<input type="text" placeholder="请填写您的称呼">
94
+					</div>
95
+		         </li>
96
+		           <li class="mui-table-view-cell">
97
+		         		<div class="mui-input-row">
98
+						<label>联系电话:</label>
99
+						<input type="text" placeholder="请填写您的手机号">
100
+					</div>
101
+		         </li>
102
+			</ul>
103
+			
104
+			<p class="action">
105
+				<i class="iconfont icon-gantanhao" style="margin-right: 5px;font-size: 20px;vertical-align: middle;"></i>
106
+				<span style="color: #f81737;">以上内容都为必填内容,请如实填写</span>
107
+			</p>
108
+			<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button">提交</button>
109
+		</div>
110
+		
111
+		<script src="../js/mui.min.js"></script>
112
+		<script type="text/javascript">
113
+//			mui.init()
114
+		(function($, doc) {
115
+				$.init();
116
+				$.ready(function() {
117
+					//普通示例
118
+					var userPicker = new $.PopPicker();
119
+					userPicker.setData([{
120
+						value: 'ywj',
121
+						text: '董事长 叶文洁'
122
+					}, {
123
+						value: 'aaa',
124
+						text: '总经理 艾AA'
125
+					}, {
126
+						value: 'lj',
127
+						text: '罗辑'
128
+					}, {
129
+						value: 'ymt',
130
+						text: '云天明'
131
+					}, {
132
+						value: 'shq',
133
+						text: '史强'
134
+					}, {
135
+						value: 'zhbh',
136
+						text: '章北海'
137
+					}, {
138
+						value: 'zhy',
139
+						text: '庄颜'
140
+					}, {
141
+						value: 'gyf',
142
+						text: '关一帆'
143
+					}, {
144
+						value: 'zhz',
145
+						text: '智子'
146
+					}, {
147
+						value: 'gezh', 
148
+						text: '歌者'
149
+					}]);
150
+					var showUserPickerButton = doc.getElementById('showUserPicker');
151
+					var userResult = doc.getElementById('userResult');
152
+					showUserPickerButton.addEventListener('tap', function(event) {
153
+						userPicker.show(function(items) {
154
+							userResult.innerText = JSON.stringify(items[0]);
155
+							//返回 false 可以阻止选择框的关闭
156
+							//return false;
157
+						});
158
+					}, false);
159
+				})
160
+		})
161
+			
162
+		</script>
163
+	</body>
164
+
165
+</html>

+ 83 - 0
WebChat/html/shouLiChaXun.html

@@ -0,0 +1,83 @@
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,maximum-scale=1,user-scalable=no">
8
+		<meta name="apple-mobile-web-app-capable" content="yes">
9
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
10
+		<link href="../css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/iconfont.css" />
12
+		<link rel="stylesheet" href="../css/inits.css" />
13
+		<style>
14
+			.mui-bar-popover {
15
+				width: 30%;
16
+			}
17
+			.mui-popover.mui-bar-popover .mui-table-view{
18
+				width: 100%;
19
+			}
20
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn){
21
+				text-align: center;
22
+			}
23
+			.san{
24
+				    font-size: 14px;
25
+    				margin-right: 5px
26
+			}
27
+			.nav_a{
28
+				    border-right: 1px solid #ccc;
29
+			}
30
+			.radio_box{
31
+				display: inline-block;
32
+			}
33
+			.mui-radio input[type=radio]:before{
34
+				font-size: 25px;
35
+				vertical-align: middle;
36
+			}
37
+			.ztext{
38
+				width: 100%;
39
+			    margin: 0;
40
+			    border: 0;
41
+			}
42
+			.action{
43
+				padding: 11px 15px;
44
+			}
45
+		
46
+		</style>
47
+	</head>
48
+
49
+	<body>
50
+		<header id="header" class="mui-bar mui-bar-nav new_head">
51
+			<h1 class="mui-title new_head_title">受理查询</h1>
52
+			<a class="new_head_left mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
53
+				<span class="mui-icon mui-icon-left-nav"></span>返回
54
+			</a>
55
+			<a class="new_head_right mui-btn mui-btn-blue mui-btn-link mui-pull-right"><span class="iconfont icon-unie644" style="font-size: 25px;"></span></a>
56
+		</header>
57
+		
58
+		<div class="mui-content">
59
+			<ul class="mui-table-view" style="margin-top: 40px;">
60
+				 <li class="mui-table-view-cell">
61
+				 	<div class="mui-input-row">
62
+						<label><i style="color: red;margin-right: 3px;">*</i>受理编号:</label>
63
+						<input type="text" class="mui-input-clear" placeholder="请输入您的受理编号">
64
+					</div>
65
+				 </li>
66
+				 <li class="mui-table-view-cell">
67
+				 	<div class="mui-input-row">
68
+						<label><i style="color: red;margin-right: 3px;">*</i>手机号码:</label>
69
+						<input type="text" class="mui-input-clear" placeholder="请输入您的手机号码">
70
+					</div>
71
+				 </li>
72
+		         
73
+			</ul>
74
+			<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button" style="margin-top: 35px;">提交</button>
75
+		</div>
76
+		
77
+		<script src="../js/mui.min.js"></script>
78
+		<script type="text/javascript">
79
+			mui.init()
80
+		</script>
81
+	</body>
82
+
83
+</html>

+ 41 - 4
WebChat/html/ziXunJianYi.html

@@ -34,6 +34,15 @@
34 34
 				font-size: 25px;
35 35
 				vertical-align: middle;
36 36
 			}
37
+			.ztext{
38
+				width: 100%;
39
+			    margin: 0;
40
+			    border: 0;
41
+			}
42
+			.action{
43
+				padding: 11px 15px;
44
+			}
45
+			
37 46
 		</style>
38 47
 	</head>
39 48
 
@@ -57,9 +66,7 @@
57 66
 		         <li class="mui-table-view-cell">
58 67
 		         	<div class="mui-input-row">
59 68
 							<label>保密要求:</label>
60
-					</div>
61
-		         	
62
-		         	<div class="mui-input-row mui-radio mui-left radio_box">
69
+							<div class="mui-input-row mui-radio mui-left radio_box">
63 70
 		         		<label>保密</label>
64 71
 		         		<input type="radio" type="radio" name="secret"/>
65 72
 		         	</div>
@@ -67,9 +74,39 @@
67 74
 		         		<label>公开</label>
68 75
 		         		<input type="radio" type="radio" name="secret"/>
69 76
 		         	</div>
77
+					</div>
78
+		         </li>
79
+		         <li class="mui-table-view-cell">
80
+		         		<div class="mui-input-row">
81
+						<label>咨询主题:</label>
82
+						<input type="text" placeholder="请填写您的咨询主题">
83
+					</div>
84
+		         </li>
85
+		         <li class="mui-table-view-cell">
86
+		         		<div class="mui-input-row">
87
+						<!--<label>咨询主题:</label>-->
88
+						<textarea class="ztext" name="" id="textarea" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
89
+					</div>
90
+		         </li>
91
+		           <li class="mui-table-view-cell">
92
+		         		<div class="mui-input-row">
93
+						<label>联系人:</label>
94
+						<input type="text" placeholder="请填写您的称呼">
95
+					</div>
96
+		         </li>
97
+		           <li class="mui-table-view-cell">
98
+		         		<div class="mui-input-row">
99
+						<label>联系电话:</label>
100
+						<input type="text" placeholder="请填写您的手机号">
101
+					</div>
70 102
 		         </li>
71
-		         <li class="mui-table-view-cell">Item 3</li>
72 103
 			</ul>
104
+			
105
+			<p class="action">
106
+				<i class="iconfont icon-gantanhao" style="margin-right: 5px;font-size: 20px;vertical-align: middle;"></i>
107
+				<span style="color: #f81737;">以上内容都为必填内容,请如实填写</span>
108
+			</p>
109
+			<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button">提交</button>
73 110
 		</div>
74 111
 		
75 112
 		<script src="../js/mui.min.js"></script>

+ 134 - 0
WebChat/icon.html

@@ -0,0 +1,134 @@
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,maximum-scale=1,user-scalable=no">
8
+		<meta name="apple-mobile-web-app-capable" content="yes">
9
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
10
+		<link href="css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="css/iconfont.css" />
12
+		<link rel="stylesheet" href="css/inits.css" />
13
+		<style>
14
+			.mui-bar-popover {
15
+				width: 30%;
16
+			}
17
+			.mui-popover.mui-bar-popover .mui-table-view{
18
+				width: 100%;
19
+			}
20
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn){
21
+				text-align: center;
22
+			}
23
+			.san{
24
+				    font-size: 14px;
25
+    				margin-right: 5px
26
+			}
27
+			.nav_a{
28
+				    border-right: 1px solid #ccc;
29
+			}
30
+			.radio_box{
31
+				display: inline-block;
32
+			}
33
+			.mui-radio input[type=radio]:before{
34
+				font-size: 25px;
35
+				vertical-align: middle;
36
+			}
37
+			.ztext{
38
+				width: 100%;
39
+			    margin: 0;
40
+			    border: 0;
41
+			}
42
+			.action{
43
+				padding: 11px 15px;
44
+			}
45
+		
46
+		</style>
47
+	</head>
48
+
49
+	<body>
50
+		<header id="header" class="mui-bar mui-bar-nav new_head">
51
+			<h1 class="mui-title new_head_title">受理查询</h1>
52
+			<button class="new_head_left mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
53
+				<span class="mui-icon mui-icon-left-nav"></span>返回
54
+			</button>
55
+			<button class="new_head_right mui-btn mui-btn-blue mui-btn-link mui-pull-right"><span class="iconfont icon-iconfont02"></span></button>
56
+		</header>
57
+		
58
+		<div class="mui-content">
59
+			<ul>
60
+				<li>
61
+					1.<span class="iconfont icon-iconfont02"></span>iconfont02
62
+				</li>
63
+				<li>
64
+					2.<span class="iconfont icon-zixun"></span>zixun
65
+				</li>
66
+				<li>
67
+					3.<span class="iconfont icon-duihao"></span>duihao
68
+				</li>
69
+				<li>
70
+					4.<span class="iconfont icon-lalala"></span>lalala
71
+				</li>
72
+				<li>
73
+					5.<span class="iconfont icon-daichuli"></span>daichuli
74
+				</li>
75
+				<li>
76
+					6.<span class="iconfont icon-xiugai"></span>xiugai
77
+				</li>
78
+				<li>
79
+					7.<span class="iconfont icon-gantanhao"></span>gantanhao
80
+				</li>
81
+				<li>
82
+					8.<span class="iconfont icon-jiahao"></span>jiahao
83
+				</li>
84
+				<li>
85
+					9.<span class="iconfont icon-asterisk"></span>asterisk
86
+				</li>
87
+				<li>
88
+					10.<span class="iconfont icon-gengduo"></span>gengduo
89
+				</li>
90
+				<li>
91
+					11.<span class="iconfont icon-icon16"></span>icon16
92
+				</li>
93
+				<li>
94
+					12.<span class="iconfont icon-sangeheng"></span>sangeheng
95
+				</li>
96
+				<li>
97
+					13.<span class="iconfont icon-caogaoxiang"></span>caogaoxiang
98
+				</li>
99
+				<li>
100
+					14.<span class="iconfont icon-dianhua"></span>dianhua
101
+				</li>
102
+				<li>
103
+					15.<span class="iconfont icon-sangeheng1"></span>sangeheng1
104
+				</li>
105
+				<li>
106
+					16.<span class="iconfont icon-dizhi"></span>dizhi
107
+				</li>
108
+				<li>
109
+					17.<span class="iconfont icon-quanbu"></span>quanbu
110
+				</li>
111
+				<li>
112
+					18.<span class="iconfont icon-youjianshezhi"></span>youjianshezhi
113
+				</li>
114
+				<li>
115
+					19.<span class="iconfont icon-jianpan"></span>jianpan
116
+				</li>
117
+				<li>
118
+					20.<span class="iconfont icon-wuyetousu"></span>wuyetousu
119
+				</li>
120
+				<li>
121
+					21.<span class="iconfont icon-unie644"></span>unie644
122
+				</li>
123
+				<li>
124
+					22.<span class="iconfont icon-jianpan2"></span>jianpan2
125
+				</li>
126
+			</ul>
127
+		</div>
128
+		<script src="js/mui.min.js"></script>
129
+		<script type="text/javascript">
130
+			mui.init()
131
+		</script>
132
+	</body>
133
+
134
+</html>

+ 9 - 0
WebSite/.project

@@ -33,5 +33,14 @@
33 33
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
34 34
 			</matcher>
35 35
 		</filter>
36
+		<filter>
37
+			<id>1505698358592</id>
38
+			<name></name>
39
+			<type>26</type>
40
+			<matcher>
41
+				<id>org.eclipse.ui.ide.multiFilter</id>
42
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
43
+			</matcher>
44
+		</filter>
36 45
 	</filteredResources>
37 46
 </projectDescription>

+ 17 - 3
WebUI/CallCenterWeb.UI/Announcement/Add.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 	<head>
4 4
 		<meta charset="UTF-8">
@@ -54,7 +54,7 @@
54 54
 		   	laydate.skin('blue');
55 55
  					  laydate({
56 56
                 elem: '#startTime',
57
-                event: 'focus'
57
+                event: 'focus',
58 58
             });
59 59
              laydate({
60 60
                 elem: '#endTime',
@@ -65,7 +65,9 @@
65 65
             		if(!$("#title").val()){
66 66
             			layer.msg("输入标题");
67 67
             		}
68
-					 else if(!$("#startTime").val()&&!$("#endTime").val()){
68
+					 else if(!$("#startTime").val()){
69
+            			layer.msg("输入选择日期");
70
+            		}else if(!$("#endTime").val()){
69 71
             			layer.msg("输入选择日期");
70 72
             		}else{
71 73
             			Add();
@@ -93,6 +95,18 @@
93 95
 						}
94 96
 					})
95 97
             }
98
+            function GetData() {
99
+				var date = new Date;
100
+				var year = date.getFullYear();
101
+				var month = date.getMonth() + 1;
102
+				var strDate = date.getDate();
103
+				month = (month <= 9 ? "0" + month : month);
104
+				strDate = (strDate <= 9 ? "0" + strDate : strDate)
105
+				var mydate = (year.toString() + '-' + month.toString() + '-' + strDate.toString());
106
+				$("#startTime").val(mydate);
107
+				$("#endTime").val(mydate);				
108
+			}
109
+			GetData();
96 110
 		   </script>
97 111
 	</body>
98 112
 </html>

+ 5 - 2
WebUI/CallCenterWeb.UI/Announcement/AnnDatil.html

@@ -67,12 +67,15 @@
67 67
             		if(!$("#title").val()){
68 68
             			layer.msg("输入标题");
69 69
             		}
70
-					 else if(!$("#startTime").val()&&!$("#endTime").val()){
70
+					 else if(!$("#startTime").val()){
71
+            			layer.msg("输入选择日期");
72
+            		}else if(!$("#endTime").val()){
71 73
             			layer.msg("输入选择日期");
72 74
             		}else{
73 75
             			Add();
74 76
             		}
75
-            	})
77
+            			
78
+            		})
76 79
             	if(wid){
77 80
             		$.getJSON(huayi.config.callcenter_url + 'Notice/GetNotice', {
78 81
 									noticeid: wid,

+ 5 - 5
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -505,7 +505,7 @@
505 505
 					type: 2,
506 506
 					content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
507 507
 					title: '工单交办',
508
-					area: ['45%', '48%'], //宽高
508
+					area: ['60%', '70%'], //宽高
509 509
 				});
510 510
 			}
511 511
 			//领导批示
@@ -514,7 +514,7 @@
514 514
 					type: 2,
515 515
 					content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
516 516
 					title: '领导批示',
517
-					area: ['45%', '40%'], //宽高
517
+					area: ['48%', '45%'], //宽高
518 518
 				});
519 519
 			}
520 520
 			//市长批示
@@ -523,7 +523,7 @@
523 523
 					type: 2,
524 524
 					content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
525 525
 					title: '领导批示',
526
-					area: ['45%', '40%'], //宽高
526
+					area: ['48%', '45%'], //宽高
527 527
 				});
528 528
 			}
529 529
 			//办理
@@ -542,7 +542,7 @@
542 542
 					type: 2,
543 543
 					content: "../CommonHtml/Supervision_.html?wid=" + str+'&type=1', //iframe的url,no代表不显示滚动条
544 544
 					title: '督办',
545
-					area: ['35%', '30%'], //宽高
545
+					area: ['50%', '45%'], //宽高
546 546
 				});
547 547
 			}
548 548
 			
@@ -552,7 +552,7 @@
552 552
 					type: 2,
553 553
 					content: "../CommonHtml/Supervision_.html?wid=" + str+'&type=2', //iframe的url,no代表不显示滚动条
554 554
 					title: '监察',
555
-					area: ['35%', '30%'], //宽高
555
+					area: ['50%', '45%'], //宽高
556 556
 				});
557 557
 			}
558 558
 			//强制结案

+ 9 - 20
WebUI/CallCenterWeb.UI/Business/LeaderDCL.html

@@ -181,8 +181,8 @@
181 181
 									<td colspan="3">
182 182
 										<input type="text" id="starttime" class="laydate-icon" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon" style="height: 32px;" />
183 183
 									</td>
184
-									<th>工单状态:</th>
185
-									<td colspan="3">
184
+									<th>状态:</th>
185
+									<td >
186 186
 										<select name="" class="select" id="Select">
187 187
 											<option value="1" selected="selected">待交办</option>
188 188
 											<option value="2">待收回</option>
@@ -239,18 +239,7 @@
239 239
 		<script src="../css/laydate/laydate.js"></script>
240 240
 		<script src="../My97DatePicker/WdatePicker.js"></script>
241 241
 		<script>
242
-			//							return '<div class="imgs" >' +
243
-			//								'<a class="xg"  title="查看" onclick="ckxq(' + val + ')"> <i class="fa fa-search"></i></a>' +
244
-			//								'<a class="xg"  title="编辑" onclick="bj(' + val + ')"> <i class="fa fa-pencil-square-o"></i></a>' +
245
-			//								'<a class="xg" title="回访" onclick="back(' + val + ')"> <i class="fa fa-mail-reply"></i></a>' +
246
-			//								'<a class="xg" "title="强回"onclick="recycles(' + val + ')"> <i class="fa fa-exchange"></i></a>' +
247
-			//								'<a class="xg"  title="结案" onclick="Lawsuit(' + val + ')"> <i class="fa fa-pie-chart"></i></a>' +
248
-			//								'<a class="xg" "title="交办"onclick="jb(' + val + ')"> <i class="fa fa-check-square-o"></i></a>' +
249
-			//								'<a class="xg" "title="回收"onclick="recycle(' + val + ')"> <i class="fa fa-retweet"></i></a>' +
250
-			//								'<a class="xg "title="督查" onclick="Supervision(' + val + ')"> <i class="fa fa-eye"></i></a>' +
251
-			//								'<a class="xg" "title="强制" onclick="StrongLawsuit(' + val + ')"> <i class="fa fa-check-circle"></i></a>' +
252
-			//								'<a class="xg" title="删除"onclick="move(' + val + ')"> <i class="fa fa-remove"></i></a>' +
253
-			//								'</div>';
242
+			
254 243
 			var arr = ["<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
255 244
 				"<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",
256 245
 				"<a class='xg' onclick='move(data)' title='删除'>删除</a>",
@@ -458,9 +447,9 @@
458 447
 			function bj(str) {
459 448
 				layer.open({
460 449
 					type: 2,
461
-					content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
450
+					content: "../CommonHtml/LeaderAdd.html?wid=" + str, //iframe的url,no代表不显示滚动条
462 451
 					title: '编辑工单',
463
-					area: ['85%', '80%'], //宽高
452
+					area: ['90%', '85%'], //宽高
464 453
 				});
465 454
 			}
466 455
 			//删除
@@ -505,7 +494,7 @@
505 494
 					type: 2,
506 495
 					content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
507 496
 					title: '工单交办',
508
-					area: ['45%', '40%'], //宽高
497
+					area: ['48%', '45%'], //宽高
509 498
 				});
510 499
 			}
511 500
 			//领导批示
@@ -514,7 +503,7 @@
514 503
 					type: 2,
515 504
 					content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
516 505
 					title: '领导批示',
517
-					area: ['45%', '40%'], //宽高
506
+					area: ['48%', '45%'], //宽高
518 507
 				});
519 508
 			}
520 509
 			//市长批示
@@ -523,7 +512,7 @@
523 512
 					type: 2,
524 513
 					content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
525 514
 					title: '领导批示',
526
-					area: ['45%', '40%'], //宽高
515
+					area: ['48%', '45%'], //宽高
527 516
 				});
528 517
 			}
529 518
 			//办理
@@ -532,7 +521,7 @@
532 521
 					type: 2,
533 522
 					content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
534 523
 					title: '办理工单',
535
-					area: ['45%', '40%'], //宽高
524
+					area: ['48%', '45%'], //宽高
536 525
 				});
537 526
 			}
538 527
 			//督办

+ 11 - 36
WebUI/CallCenterWeb.UI/Business/LeaderYTH.html

@@ -181,14 +181,18 @@
181 181
 									<td colspan="3">
182 182
 										<input type="text" id="starttime" class="laydate-icon" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon" style="height: 32px;" />
183 183
 									</td>
184
+									<th></th>
185
+									<td>
186
+										<div class="" style="line-height: 50px;">
187
+										<botton class="btns Seach">搜索</botton>
188
+										<botton class="btns ">导出</botton>
189
+									</div>
190
+									</td>
184 191
 								</tr>
185 192
 								
186 193
 							</table>
187 194
 						</div>
188
-						<div class="" style="line-height: 50px;">
189
-							<botton class="btns Seach">搜索</botton>
190
-							<botton class="btns ">导出</botton>
191
-						</div>
195
+						
192 196
 					</div>
193 197
 					<div>
194 198
 						<div style="width: 100%;padding: 10px;">
@@ -228,18 +232,7 @@
228 232
 		<script src="../css/laydate/laydate.js"></script>
229 233
 		<script src="../My97DatePicker/WdatePicker.js"></script>
230 234
 		<script>
231
-			//							return '<div class="imgs" >' +
232
-			//								'<a class="xg"  title="查看" onclick="ckxq(' + val + ')"> <i class="fa fa-search"></i></a>' +
233
-			//								'<a class="xg"  title="编辑" onclick="bj(' + val + ')"> <i class="fa fa-pencil-square-o"></i></a>' +
234
-			//								'<a class="xg" title="回访" onclick="back(' + val + ')"> <i class="fa fa-mail-reply"></i></a>' +
235
-			//								'<a class="xg" "title="强回"onclick="recycles(' + val + ')"> <i class="fa fa-exchange"></i></a>' +
236
-			//								'<a class="xg"  title="结案" onclick="Lawsuit(' + val + ')"> <i class="fa fa-pie-chart"></i></a>' +
237
-			//								'<a class="xg" "title="交办"onclick="jb(' + val + ')"> <i class="fa fa-check-square-o"></i></a>' +
238
-			//								'<a class="xg" "title="回收"onclick="recycle(' + val + ')"> <i class="fa fa-retweet"></i></a>' +
239
-			//								'<a class="xg "title="督查" onclick="Supervision(' + val + ')"> <i class="fa fa-eye"></i></a>' +
240
-			//								'<a class="xg" "title="强制" onclick="StrongLawsuit(' + val + ')"> <i class="fa fa-check-circle"></i></a>' +
241
-			//								'<a class="xg" title="删除"onclick="move(' + val + ')"> <i class="fa fa-remove"></i></a>' +
242
-			//								'</div>';
235
+			
243 236
 			var arr = ["<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
244 237
 				"<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",
245 238
 				"<a class='xg' onclick='move(data)' title='删除'>删除</a>",
@@ -270,17 +263,7 @@
270 263
 
271 264
 				load();
272 265
 
273
-				laydate.skin('blue');
274
-
275
-				laydate({
276
-					elem: '#starttime',
277
-					event: 'focus'
278
-				});
279
-
280
-				laydate({
281
-					elem: '#endtime',
282
-					event: 'focus'
283
-				});
266
+				
284 267
 				///搜素
285 268
 				$(".Seach").click(function() {
286 269
 					load();
@@ -323,17 +306,9 @@
323 306
 						var param = {
324 307
 							page: params.pageNumber,
325 308
 							pagesize: params.pageSize,
326
-							state: $("#state").val(), //=工单状态
327
-							type: $("#type").val(), //=工单类型
328
-							bigtype: $("#bigtype").val(), //=大类别
329
-							smalltype: $("#smalltype").val(), //=小类别
330 309
 							key: $("#key").val(), //=关键字
331
-							tel: $("#tel").val(), //=投诉人电话
332
-							name: $("#name").val(), //=客户名称
333 310
 							code: $("#code").val(), //=坐席工号
334
-							//      					keyid:2,//=关键词id
335 311
 							tab: 2,//已审核退回
336
-							source: $("#source").val(), //=来源&
337 312
 							starttime: $("#starttime").val(), //=开始时间
338 313
 							endtime: $("#endtime").val(), //=结束时间
339 314
 							token: $.cookie("token")
@@ -440,7 +415,7 @@
440 415
 					type: 2,
441 416
 					content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
442 417
 					title: '工单详情',
443
-					area: ['85%', '80%'], //宽高
418
+					area: ['87%', '84%'], //宽高
444 419
 				});
445 420
 			}
446 421
 			//编辑

+ 2 - 2
WebUI/CallCenterWeb.UI/Business/ZXDCL.html

@@ -181,7 +181,7 @@
181 181
 									<td colspan="3">
182 182
 										<input type="text" id="starttime" class="laydate-icon" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon" style="height: 32px;" />
183 183
 									</td>
184
-									<th>工单状态</th>
184
+									<th>状态</th>
185 185
 									<td>
186 186
 										<select name="" class="select" id="Select">
187 187
 											<option value="0" selected="selected">待提交</option>
@@ -190,7 +190,7 @@
190 190
 									</td>
191 191
 									<th></th>
192 192
 									<td><botton class="btns Seach">搜索</botton>
193
-							<botton class="btns ">导出</botton></td>
193
+									<botton class="btns ">导出</botton></td>
194 194
 								</tr>
195 195
 								
196 196
 							</table>

+ 84 - 4
WebUI/CallCenterWeb.UI/CommonHtml/Leader.html

@@ -8,6 +8,21 @@
8 8
 		<link href="../css/layer/need/layer.css" />
9 9
 		<link rel="stylesheet" href="../css/init.css" />
10 10
 		<title>领导批示</title>
11
+			<style>
12
+			.input {
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px
19
+			}
20
+			
21
+			.fjnr {
22
+				padding: 0!important;
23
+				border: none!important;
24
+			}
25
+		</style>
11 26
 	</head>
12 27
 
13 28
 	<body>
@@ -21,12 +36,16 @@
21 36
 					<th class="Importent">批示内容:</th>
22 37
 					<td colspan="2"><textarea  id="superopinion" name="" rows="" cols=""></textarea></td>
23 38
 				</tr>
24
-				<!--<tr>
39
+				<tr>
25 40
 					<th>附件上传:</th>
26 41
 					<td colspan="7">
27
-						<input type="text" placeholder="输入附件详情" style="width:66%" />
42
+						<span class="fjnr"></span>
43
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
44
+								<input class="input" type="button" value="上传" id="scwj" />
45
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
46
+								<input type="hidden" id="file" />
28 47
 					</td>
29
-				</tr>-->
48
+				</tr>
30 49
 			</table>
31 50
 			<div class="btn_box">
32 51
 				<button class="btns">保存</button>
@@ -36,6 +55,17 @@
36 55
 		<script>
37 56
 			var wid = helper.request.queryString("wid");
38 57
 			$(document).ready(function() {
58
+				//上传附件
59
+				$("#scwj").click(function() {
60
+					$("#upFile").trigger("click");
61
+				})
62
+				$("#upFile").change(function() {
63
+					upload();
64
+				})
65
+				$("#scfj").click(function() {
66
+					$(".fjnr").text("");
67
+					$("#scfj").hide();
68
+				})
39 69
 				$(".btns").click(function(){
40 70
 					JA();
41 71
 				})
@@ -47,7 +77,7 @@
47 77
 					type:1,//(1领导批示 2市长指示)
48 78
 					superuser:$("#superuser").val(),//批示人&
49 79
 					superopinion:$('#superopinion').val(),//批示内容&
50
-					files:1,//附件id(多个用英文逗号,隔开
80
+					files:$("#file").val(),//附件id(多个用英文逗号,隔开
51 81
 					"token": $.cookie("token")
52 82
 				}, function(result) {
53 83
 					result = JSON.parse(result);
@@ -61,6 +91,56 @@
61 91
 					}
62 92
 				})
63 93
 			}
94
+			function upload() {
95
+				var Files = document.getElementById("upFile").files;
96
+				if(Files.length > 0) {
97
+					var formData = new FormData();
98
+					for(var i = 0; i < Files.length; i++) {
99
+						formData.append('file' + i, Files[i]);
100
+					}
101
+					formData.append("token", $.cookie("token"));
102
+					$.ajax({
103
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
104
+						type: "POST",
105
+						data: formData,
106
+						/**
107
+						 *必须false才会自动加上正确的Content-Type
108
+						 */
109
+						contentType: false,
110
+						/**
111
+						 * 必须false才会避开jQuery对 formdata 的默认处理
112
+						 * XMLHttpRequest会对 formdata 进行正确的处理
113
+						 */
114
+						processData: false,
115
+						success: function(result) {
116
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
117
+							$("#upFile").change(function() {
118
+								upload();
119
+							});
120
+							var r = $.parseJSON(result);
121
+							if(r.state.toLowerCase() == "success") {
122
+								$(".fjnr").text(r.data[0].F_FileName);
123
+								var a = r.data;
124
+								var str = '';
125
+								var Str;
126
+
127
+								$(a).each(function(i, n) {
128
+									console.log(n.F_FileId);
129
+									str += n.F_FileId + ",";
130
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
131
+									console.log(Str);
132
+								})
133
+								$("#file").val(Str);
134
+								$("#scfj").show();
135
+							}
136
+						}
137
+					});
138
+				} else {
139
+					layer.confirm('请上传文件!', {
140
+						btn: ['确定']
141
+					});
142
+				}
143
+			}
64 144
 		</script>
65 145
 	</body>
66 146
 

+ 391 - 0
WebUI/CallCenterWeb.UI/CommonHtml/LeaderAdd.html

@@ -0,0 +1,391 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<link href="../css/layer/need/layer.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<title>新增诉求工单</title>
11
+		<style type="text/css">
12
+			.input {
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px
19
+			}
20
+			
21
+			.fjnr {
22
+				padding: 0!important;
23
+				border: none!important;
24
+			}
25
+		</style>
26
+	</head>
27
+
28
+	<body>
29
+
30
+		<div class="wrapper wrapper-content animated fadeInRight">
31
+			<div style="padding: 10px;" class="tj_content clearFix">
32
+				<div class="Common">
33
+					<table>
34
+						<tr>
35
+							<th class="Importent">姓名:</th>
36
+							<td>
37
+								<input type="text" id="cusname" />
38
+							</td>
39
+							<th>性别:</th>
40
+							<td>
41
+								<select class="select_">
42
+									<option value="">请选择</option>
43
+									<option value="0">男</option>
44
+									<option value="1">女</option>
45
+								</select>
46
+							</td>
47
+							<th>来源:</th>
48
+							<td>
49
+								<select class="select_" id="source">
50
+								</select>
51
+							</td>
52
+							<th class="Importent">投诉电话:</th>
53
+							<td>
54
+								<input type="text" id="cusphone" />
55
+							</td>
56
+						</tr>
57
+						<tr>
58
+							<th>邮箱:</th>
59
+							<td>
60
+								<input type="text" id="email" />
61
+							</td>
62
+							<th>邮编:</th>
63
+							<td>
64
+								<input type="text" id="zipcode" />
65
+							</td>
66
+							<th>联系电话:</th>
67
+							<td>
68
+								<input type="text" id="conphone" />
69
+							</td>
70
+						</tr>
71
+						<tr>
72
+							<th class="Importent">标题:</th>
73
+							<td colspan="7">
74
+								<input id="title" type="text" style="width: 100%;" />
75
+							</td>
76
+						</tr>
77
+						<tr>
78
+							<th class="Importent">内容:</th>
79
+							<td colspan="7">
80
+								<textarea id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
81
+							</td>
82
+						</tr>
83
+						<tr>
84
+							<th>事件地址:</th>
85
+							<td colspan="7">
86
+								<select class="select_" id="sourcearea">
87
+								</select>
88
+								<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
89
+							</td>
90
+						</tr>
91
+						<tr>
92
+							<th>附件上传:</th>
93
+							<td colspan="7">
94
+								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
+								<span class="fjnr"></span>
96
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97
+								<input class="input" type="button" value="上传" id="scwj" />
98
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
99
+								<input type="hidden" id="file" />
100
+							</td>
101
+						</tr>
102
+						<tr>
103
+							<th>处理方式:</th>
104
+							<td colspan="7">
105
+								<input type="radio" value="1" name="banli" class="Nows" />当即办理
106
+								<input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
107
+							</td>
108
+						</tr>
109
+						<tr class="Nows_box Hidens">
110
+							<th>办理内容:</th>
111
+							<td colspan="7">
112
+
113
+								<input type="text" style="width: 100%;" id="result" />
114
+							</td>
115
+						</tr>
116
+						<tr>
117
+							<th class="Importent">主题词:</th>
118
+							<td>
119
+								<!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
120
+								<select class="select_" id="keys">
121
+									<option value=""></option>
122
+								</select>
123
+							</td>
124
+							<th>类型:</th>
125
+							<td>
126
+								<select class="select_" id="type">
127
+								</select>
128
+							</td>
129
+							<th>密级:</th>
130
+							<td>
131
+								<input checked="true" type="radio" name="mj" id="" value="0" />普通
132
+								<input type="radio" name="mj" id="" value="1" />保密
133
+							</td>
134
+							<th>紧急程度:</th>
135
+							<td>
136
+								<select class="select_" id="level">
137
+									<option value="">选择</option>
138
+									<option value="0">普通</option>
139
+									<option value="1">紧急</option>
140
+								</select>
141
+							</td>
142
+							<!--<th class="">分管领导:</th>
143
+							<td colspan="4">
144
+								<input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
145
+							</td>-->
146
+						</tr>
147
+					</table>
148
+					<div class="btn_box">
149
+						<button class="btns BC">保存</button>
150
+					</div>
151
+
152
+				</div>
153
+			</div>
154
+		</div>
155
+		<script src="../css/laydate/laydate.js"></script>
156
+		<script>
157
+			var wid = helper.request.queryString("wid");
158
+			var submit;
159
+
160
+			$(document).ready(function() {
161
+				QY($("#sourcearea"));
162
+				LY($("#source"));
163
+				LB($("#type"));
164
+				ZT($("#keys"))
165
+				//当即办理
166
+				$(".Nows").click(function() {
167
+					$(".Nows_box").toggle();
168
+				})
169
+				$(".Nows_").click(function() {
170
+					$(".Nows_box").toggle();
171
+				})
172
+				$(".BC").click(function() {
173
+					submit = 0;
174
+					Add()
175
+				});
176
+				//上传附件
177
+				$("#scwj").click(function() {
178
+					$("#upFile").trigger("click");
179
+				})
180
+				$("#upFile").change(function() {
181
+					upload();
182
+				})
183
+				$("#scfj").click(function() {
184
+					$(".fjnr").text("");
185
+					$("#scfj").hide();
186
+				})
187
+				if(wid) {
188
+					$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
189
+						workorderid: wid,
190
+						"token": $.cookie("token")
191
+					}, function(result) {
192
+						if(result.state.toLowerCase() == "success") {
193
+							var Data = result.data.data;
194
+							$("#cusname").val(Data[0].F_CusName);
195
+							$("#cusphone").val(Data[0].F_CusPhone);
196
+							$("#conphone").val(Data[0].F_ConPhone);
197
+							$("#title").val(Data[0].F_ComTitle);
198
+							$('#content').val(Data[0].F_ComContent);
199
+							$('#email').val(Data[0].F_Email);
200
+							$("#zipcode").val(Data[0].F_ZipCode);
201
+							$("#result").val(Data[0].F_Result);
202
+							if(Data[0].F_IsResult == 1) {
203
+								$(".Nows_box").toggle();
204
+							}
205
+							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
206
+							$('#sourceaddress').val(Data[0].F_SourceAddress);
207
+							console.log(Data);
208
+
209
+						}
210
+					})
211
+
212
+				}
213
+			});
214
+
215
+			///修改工单
216
+			function Add() {
217
+				var value = $(' input[name="banli"]:checked ').val();
218
+				var content = $("#content").val();
219
+				if(!$("#cusname").val()) {
220
+					layer.msg("诉求人不能为空");
221
+				} else if(!$("#cusphone").val()) {
222
+					layer.msg("投诉电话不能为空");
223
+				} else if(!$("#title").val()) {
224
+					layer.msg("标题不能为空");
225
+				} else if(!$("#content").val()) {
226
+					layer.msg("内容不能为空");
227
+				} else if(value == 1 && !$('#result').val()) {
228
+					layer.msg("输入直办内容");
229
+
230
+				} else {
231
+					$.ajax({
232
+						type: "post",
233
+						url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
234
+						dataType: 'json',
235
+						async: true,
236
+						data: {
237
+							workorderid: wid,
238
+							cusname: $("#cusname").val(), //=投诉人姓名
239
+							cussex: $("#cussex").val(),
240
+							cusphone: $("#cusphone").val(), //=投诉人电话
241
+							email: $("#email").val(),
242
+							zipcode: $("#zipcode").val(),
243
+							conphone: $("#conphone").val(),
244
+							title: $("#title").val(),
245
+							content: $("#content").val(),
246
+							files: $("#file").val(), //(多个用英文逗号,隔开)
247
+							sourcearea: $("#sourcearea").val(), //=事发地域id
248
+							sourceaddress: $('#sourceaddress').val(), //=事发详细地址
249
+							source: $("#source").val(), //=来源
250
+							isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
251
+							result: $('#result').val(),
252
+							keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
253
+							type: $("#type").val(), //=类型
254
+							bigtype: $("#bigtype").val(), //=大类别
255
+							smalltype: $("#smalltype").val(), //=小类别
256
+							isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
257
+							level: $('#level').val(), //=(1普通2紧急3特急)
258
+							issubmit: submit, //=(0保存1保存并提交)
259
+							token: $.cookie("token")
260
+						},
261
+						success: function(data) {
262
+							if(data.state.toLowerCase() == "success") {
263
+								var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
264
+								parent.layer.close(index); //再执行关闭
265
+								parent.load();
266
+								parent.layer.msg(data.message);
267
+							}
268
+
269
+						}
270
+					});
271
+				}
272
+			}
273
+			//来源
274
+			function LY(obj) {
275
+				obj.empty();
276
+				//obj.append('<option selected="selected" value="1">请选择</option>');
277
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
278
+					"token": $.cookie("token"),
279
+					id: 1
280
+				}, function(data) {
281
+					if(data.state.toLowerCase() == "success") {
282
+						var content = data.data;
283
+						$(content).each(function(i, n) {
284
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
285
+						})
286
+
287
+					}
288
+				})
289
+			}
290
+			//类别
291
+			function LB(obj) {
292
+				obj.empty();
293
+				obj.append('<option selected="selected" value="">请选择</option>');
294
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
295
+					"token": $.cookie("token"),
296
+					id: 2
297
+				}, function(data) {
298
+					if(data.state.toLowerCase() == "success") {
299
+						var content = data.data;
300
+						$(content).each(function(i, n) {
301
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
302
+						})
303
+					}
304
+				})
305
+			}
306
+			//		主题
307
+			function ZT(obj) {
308
+				obj.empty();
309
+				//obj.append('<option selected="selected" value="">请选择</option>');
310
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
311
+					"token": $.cookie("token"),
312
+					id: 3
313
+				}, function(data) {
314
+					if(data.state.toLowerCase() == "success") {
315
+						var content = data.data;
316
+						$(content).each(function(i, n) {
317
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
318
+						})
319
+					}
320
+				})
321
+			}
322
+			//区域
323
+			function QY(obj) {
324
+				obj.empty();
325
+				obj.append('<option selected="selected" value="">请选择</option>');
326
+				$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById?", {
327
+					"token": $.cookie("token"),
328
+				}, function(data) {
329
+					if(data.state.toLowerCase() == "success") {
330
+						var content = data.data;
331
+						$(content).each(function(i, n) {
332
+							$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
333
+						})
334
+					}
335
+				})
336
+			}
337
+			//上传文件
338
+			function upload() {
339
+				var Files = document.getElementById("upFile").files;
340
+				if(Files.length > 0) {
341
+					var formData = new FormData();
342
+					for(var i = 0; i < Files.length; i++) {
343
+						formData.append('file' + i, Files[i]);
344
+					}
345
+					formData.append("token", $.cookie("token"));
346
+					$.ajax({
347
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
348
+						type: "POST",
349
+						data: formData,
350
+						/**
351
+						 *必须false才会自动加上正确的Content-Type
352
+						 */
353
+						contentType: false,
354
+						/**
355
+						 * 必须false才会避开jQuery对 formdata 的默认处理
356
+						 * XMLHttpRequest会对 formdata 进行正确的处理
357
+						 */
358
+						processData: false,
359
+						success: function(result) {
360
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
361
+							$("#upFile").change(function() {
362
+								upload();
363
+							});
364
+							var r = $.parseJSON(result);
365
+							if(r.state.toLowerCase() == "success") {
366
+								$(".fjnr").text(r.data[0].F_FileName);
367
+								var a = r.data;
368
+								var str = '';
369
+								var Str;
370
+
371
+								$(a).each(function(i, n) {
372
+									console.log(n.F_FileId);
373
+									str += n.F_FileId + ",";
374
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
375
+									console.log(Str);
376
+								})
377
+								$("#file").val(Str);
378
+								$("#scfj").show();
379
+							}
380
+						}
381
+					});
382
+				} else {
383
+					layer.confirm('请上传文件!', {
384
+						btn: ['确定']
385
+					});
386
+				}
387
+			}
388
+		</script>
389
+	</body>
390
+
391
+</html>

+ 127 - 37
WebUI/CallCenterWeb.UI/CommonHtml/Supervision_.html

@@ -1,74 +1,164 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3
+
3 4
 	<head>
4 5
 		<meta charset="UTF-8">
5
-    <script src="../Script/Common/huayi.load.js"></script>
6
-    <script src="../Script/Common/huayi.config.js"></script>
7
-    <link href="../css/layer/need/layer.css" />
8
-    <link rel="stylesheet" href="../css/init.css" />
9
-    		   <title>监察</title>
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<link href="../css/layer/need/layer.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<title>监察</title>
11
+			<style>
12
+			.input {
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px
19
+			}
20
+			
21
+			.fjnr {
22
+				padding: 0!important;
23
+				border: none!important;
24
+			}
25
+		</style>
10 26
 	</head>
27
+
11 28
 	<body>
12 29
 		<div class="Common">
13
-		<table  >
14
-			<tr>
15
-				<th class="Importent title">督查意见:</th>
16
-				<td><textarea id='overseeopinion'textarea name="" rows="" cols=""></textarea></td>
17
-			</tr>
18
-			
19
-		</table>
20
-		<div class="btn_box">
21
-			<button class="btns DB">保存</button>
22
-			<button class="btns JC">保存</button>
23
-		</div>
30
+			<table>
31
+				<tr>
32
+					<th class="Importent title">督查意见:</th>
33
+					<td><textarea id='overseeopinion' textarea name="" rows="" cols=""></textarea></td>
34
+				</tr>
35
+				<tr>
36
+					<th>附件上传:</th>
37
+					<td colspan="7">
38
+						<span class="fjnr"></span>
39
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
40
+								<input class="input" type="button" value="上传" id="scwj" />
41
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
42
+								<input type="hidden" id="file" />
43
+					</td>
44
+				</tr>
45
+			</table>
46
+			<div class="btn_box">
47
+				<button class="btns DB">保存</button>
48
+				<button class="btns JC">保存</button>
49
+			</div>
24 50
 		</div>
25
-		<script >
51
+		<script>
26 52
 			var wid = helper.request.queryString("wid");
27
-			var type=helper.request.queryString("type");
53
+			var type = helper.request.queryString("type");
28 54
 			$(document).ready(function() {
29
-				if(type==1){
55
+				if(type == 1) {
30 56
 					$(".title").text("督办意见")
31 57
 					$(".JC").hide();
32
-				}else{
58
+				} else {
33 59
 					$(".title").text("监察意见")
34 60
 					$(".DB").hide();
35 61
 				}
36
-				$(".DB").click(function(){
37
-					if($("#overseeopinion").val()==''){
62
+				$(".DB").click(function() {
63
+					if($("#overseeopinion").val() == '') {
38 64
 						layer.msg("意见不能为空");
39
-					}else {
40
-						type=1;
65
+					} else {
66
+						type = 1;
41 67
 						JA();
42 68
 					}
43 69
 				})
44
-				$(".JC").click(function(){
45
-					if($("#overseeopinion").val()==''){
70
+				$(".JC").click(function() {
71
+					if($("#overseeopinion").val() == '') {
46 72
 						layer.msg("意见不能为空");
47
-					}else {
48
-						type=2;
73
+					} else {
74
+						type = 2;
49 75
 						JA();
50 76
 					}
51 77
 				})
78
+				//上传附件
79
+				$("#scwj").click(function() {
80
+					$("#upFile").trigger("click");
81
+				})
82
+				$("#upFile").change(function() {
83
+					upload();
84
+				})
85
+				$("#scfj").click(function() {
86
+					$(".fjnr").text("");
87
+					$("#scfj").hide();
88
+				})
52 89
 			})
53 90
 			//督察
54 91
 			function JA() {
55 92
 				$.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
56 93
 					workorderid: wid,
57
-					overseeopinion:$("#overseeopinion").val(),
58
-					type:type,
94
+					overseeopinion: $("#overseeopinion").val(),
95
+					type: type,
96
+					files:$("#file").val(),
59 97
 					"token": $.cookie("token")
60 98
 				}, function(result) {
61 99
 					result = JSON.parse(result);
62 100
 					if(result.state.toLowerCase() == "success") {
63
-						
64
-					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
65
-                    parent.layer.close(index); //再执行关闭
66
-						  parent.load();
67
-						  parent.layer.msg("操作成功");
68
-                  	
101
+
102
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
103
+						parent.layer.close(index); //再执行关闭
104
+						parent.load();
105
+						parent.layer.msg("操作成功");
106
+
69 107
 					}
70 108
 				})
71 109
 			}
110
+			//上传文件
111
+			function upload() {
112
+				var Files = document.getElementById("upFile").files;
113
+				if(Files.length > 0) {
114
+					var formData = new FormData();
115
+					for(var i = 0; i < Files.length; i++) {
116
+						formData.append('file' + i, Files[i]);
117
+					}
118
+					formData.append("token", $.cookie("token"));
119
+					$.ajax({
120
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
121
+						type: "POST",
122
+						data: formData,
123
+						/**
124
+						 *必须false才会自动加上正确的Content-Type
125
+						 */
126
+						contentType: false,
127
+						/**
128
+						 * 必须false才会避开jQuery对 formdata 的默认处理
129
+						 * XMLHttpRequest会对 formdata 进行正确的处理
130
+						 */
131
+						processData: false,
132
+						success: function(result) {
133
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
134
+							$("#upFile").change(function() {
135
+								upload();
136
+							});
137
+							var r = $.parseJSON(result);
138
+							if(r.state.toLowerCase() == "success") {
139
+								$(".fjnr").text(r.data[0].F_FileName);
140
+								var a = r.data;
141
+								var str = '';
142
+								var Str;
143
+
144
+								$(a).each(function(i, n) {
145
+									console.log(n.F_FileId);
146
+									str += n.F_FileId + ",";
147
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
148
+									console.log(Str);
149
+								})
150
+								$("#file").val(Str);
151
+								$("#scfj").show();
152
+							}
153
+						}
154
+					});
155
+				} else {
156
+					layer.confirm('请上传文件!', {
157
+						btn: ['确定']
158
+					});
159
+				}
160
+			}
72 161
 		</script>
73 162
 	</body>
74
-</html>
163
+
164
+</html>

+ 15 - 18
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -181,13 +181,12 @@
181 181
 									<td class="text-center">次数</td>
182 182
 									<td class="text-center">监察人</td>
183 183
 									<td class="text-center">监察意见</td>
184
+									<td class="text-center">办理意见</td>
184 185
 								</tr>
185 186
 							</theard>
186 187
 							<tbody class="JC">
187 188
 								<tr>
188
-									<td class="text-center">1</td>
189
-									<td class="text-center">1000</td>
190
-									<td class="text-center">测试测试测试测试</td>
189
+									
191 190
 								</tr>
192 191
 							</tbody>
193 192
 						</table>
@@ -231,7 +230,6 @@
231 230
 									<td class="text-center">二级承办单位(8888)</td>
232 231
 									<td class="text-center">二级承办单位</td>
233 232
 									<td class="text-center">主办</td>
234
-									<td class="text-center">测试测试测试测试</td>
235 233
 									<td class="text-center">2017-5-28</td>
236 234
 								</tr>
237 235
 							</tbody>
@@ -276,7 +274,7 @@
276 274
 									<td class="text-center">次数</td>
277 275
 									<td class="text-center">督办人</td>
278 276
 									<td class="text-center">督办意见</td>
279
-									<td class="text-center">附件</td>
277
+
280 278
 									<td class="text-center">办理时间</td>
281 279
 								</tr>
282 280
 							</theard>
@@ -285,7 +283,6 @@
285 283
 									<td class="text-center">11</td>
286 284
 									<td class="text-center">系统</td>
287 285
 									<td class="text-center">测试测试测试测试测试测试测试测试测试测试测试测试</td>
288
-									<td class="text-center">附件</td>
289 286
 									<td class="text-center">2017-5-28</td>
290 287
 								</tr>
291 288
 							</tbody>
@@ -438,7 +435,7 @@
438 435
 								$('.CD').text("紧急");
439 436
 							}
440 437
 							//办理情况
441
-							var htmls;
438
+							var htmls='';
442 439
 							if(result.data.bldata.length < 0) {
443 440
 								alert(45);
444 441
 								htmls = '<tr>' +
@@ -447,7 +444,7 @@
447 444
 							}
448 445
 							$(".BLQK").empty();
449 446
 							$(result.data.bldata).each(function(i, n) {
450
-								htmls = '<tr>' +
447
+								htmls+= '<tr>' +
451 448
 									'<td class="text-center">' + n.UserName + '</td>' +
452 449
 									'<td class="text-center">' + n.DeptName + '</td>' +
453 450
 									'<td class="text-center">' + n.F_Result + '</td>' +
@@ -457,9 +454,9 @@
457 454
 
458 455
 							$(htmls).appendTo($(".BLQK"));
459 456
 							//回访信息
460
-							var htmlss;
457
+							var htmlss='';
461 458
 							if(result.data.hfdata.length < 0) {
462
-								htmls = '<tr>' +
459
+								htmlss = '<tr>' +
463 460
 									'<td class="text-center">' + n.UserName + '</td>' +
464 461
 									'</tr>';
465 462
 							} else {
@@ -478,7 +475,7 @@
478 475
 										b = "微信";
479 476
 									}
480 477
 
481
-									htmlss = '<tr>' +
478
+									htmlss += '<tr>' +
482 479
 										'<td class="text-center">' + i + '</td>' +
483 480
 										'<td class="text-center">' + n.F_VisitUser + '</td>' +
484 481
 										'<td class="text-center">' + b + '</td>' +
@@ -489,7 +486,7 @@
489 486
 								})
490 487
 								$(htmlss).appendTo($(".HGXX"));
491 488
 								//督办信息
492
-								var htmlsss;
489
+								var htmlsss='';
493 490
 								if(result.data.dbdata.length < 0) {
494 491
 									htmlsss = '<tr>' +
495 492
 										'<td class="text-center">' + n.UserName + '</td>' +
@@ -497,8 +494,8 @@
497 494
 								} else {
498 495
 									$(".DBXX").empty();
499 496
 									$(result.data.dbdata).each(function(i, n) {
500
-										htmlsss = '<tr>' +
501
-											'<td class="text-center">' + i + '</td>' +
497
+										htmlsss=htmlsss+ '<tr>' +
498
+											'<td class="text-center">' + (i+1) + '</td>' +
502 499
 											'<td class="text-center">' + n.UserName + '</td>' +
503 500
 											'<td class="text-center">' + n.F_Content + '</td>' +
504 501
 											'<td class="text-center">' + n.F_CreateTime + '</td>' +
@@ -506,10 +503,10 @@
506 503
 									})
507 504
 									$(htmlsss).appendTo($(".DBXX"));
508 505
 									//监察
509
-									var html_;
506
+									var html_='';
510 507
 									$(".JC").empty();
511 508
 									$(result.data.jcdata).each(function(i, n) {
512
-										html_ = '<tr>' +
509
+										html_ += '<tr>' +
513 510
 											'<td class="text-center">' + i + '</td>' +
514 511
 											'<td class="text-center">' + n.UserName + '</td>' +
515 512
 											'<td class="text-center">' + n.F_Content + '</td>' +
@@ -519,10 +516,10 @@
519 516
 									$(html_).appendTo($(".JC"));
520 517
 									//办理过程
521 518
 									$("#BLGC_").empty();
522
-									var html;
519
+									var html='';
523 520
 									$(result.data.gcdata).each(function(i, n) {
524 521
 										html = '<tr>' +
525
-											'<td class="text-center">' + i + '</td>' +
522
+											'<td class="text-center">' + (i+1) + '</td>' +
526 523
 											'<td class="text-center">' + n.F_Message + '</td>' +
527 524
 											'<td class="text-center">' + n.F_CreateTime + '</td>' +
528 525
 											'</tr>';

+ 87 - 4
WebUI/CallCenterWeb.UI/CommonHtml/banli.html

@@ -8,6 +8,21 @@
8 8
 		<link href="../css/layer/need/layer.css" />
9 9
 		<link rel="stylesheet" href="../css/init.css" />
10 10
 		<title>办理工单</title>
11
+		<style>
12
+			.input {
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px
19
+			}
20
+			
21
+			.fjnr {
22
+				padding: 0!important;
23
+				border: none!important;
24
+			}
25
+		</style>
11 26
 	</head>
12 27
 
13 28
 	<body>
@@ -17,10 +32,16 @@
17 32
 					<th class="Importent">办理人:</th>
18 33
 					<td> <input  id="dealman" type="text"  style="height: 32px;"></td>
19 34
 				</tr>
20
-				<!--<tr>
35
+				<tr>
21 36
 					<th class="Importent">附件:</th>
22
-					<td> <input type="text" name="" id="" value="" /></td>
23
-				</tr>-->
37
+					<td> 
38
+						<span class="fjnr"></span>
39
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
40
+								<input class="input" type="button" value="上传" id="scwj" />
41
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
42
+								<input type="hidden" id="file" />
43
+					</td>
44
+				</tr>
24 45
 				<tr>
25 46
 					<th class="Importent">办理内容:</th>
26 47
 					<td><textarea id="result" name="" rows="" cols=""></textarea></td>
@@ -41,7 +62,17 @@
41 62
 					Detail();	
42 63
 			$(document).ready(function() {
43 64
 				
44
-			
65
+			//上传附件
66
+				$("#scwj").click(function() {
67
+					$("#upFile").trigger("click");
68
+				})
69
+				$("#upFile").change(function() {
70
+					upload();
71
+				})
72
+				$("#scfj").click(function() {
73
+					$(".fjnr").text("");
74
+					$("#scfj").hide();
75
+				})
45 76
 				$('.BC').click(function() {
46 77
 					if($("#dealman").val()==""){
47 78
 						layer.msg("办理人不能为空");
@@ -72,6 +103,7 @@
72 103
 					result: $('#result').val(), //办理内容
73 104
 					state: State,
74 105
 					feedbackid:a,
106
+					files:$("#file").val(),
75 107
 					token: $.cookie("token")
76 108
 				}, function(result) {
77 109
 					result = JSON.parse(result);
@@ -107,6 +139,57 @@
107 139
 				$("#startTime").val(''), 
108 140
 				$('#assignedopinion').val('')
109 141
 			}
142
+			//上传文件
143
+			function upload() {
144
+				var Files = document.getElementById("upFile").files;
145
+				if(Files.length > 0) {
146
+					var formData = new FormData();
147
+					for(var i = 0; i < Files.length; i++) {
148
+						formData.append('file' + i, Files[i]);
149
+					}
150
+					formData.append("token", $.cookie("token"));
151
+					$.ajax({
152
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
153
+						type: "POST",
154
+						data: formData,
155
+						/**
156
+						 *必须false才会自动加上正确的Content-Type
157
+						 */
158
+						contentType: false,
159
+						/**
160
+						 * 必须false才会避开jQuery对 formdata 的默认处理
161
+						 * XMLHttpRequest会对 formdata 进行正确的处理
162
+						 */
163
+						processData: false,
164
+						success: function(result) {
165
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
166
+							$("#upFile").change(function() {
167
+								upload();
168
+							});
169
+							var r = $.parseJSON(result);
170
+							if(r.state.toLowerCase() == "success") {
171
+								$(".fjnr").text(r.data[0].F_FileName);
172
+								var a = r.data;
173
+								var str = '';
174
+								var Str;
175
+
176
+								$(a).each(function(i, n) {
177
+									console.log(n.F_FileId);
178
+									str += n.F_FileId + ",";
179
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
180
+									console.log(Str);
181
+								})
182
+								$("#file").val(Str);
183
+								$("#scfj").show();
184
+							}
185
+						}
186
+					});
187
+				} else {
188
+					layer.confirm('请上传文件!', {
189
+						btn: ['确定']
190
+					});
191
+				}
192
+			}
110 193
 		</script>
111 194
 	</body>
112 195
 

+ 73 - 0
WebUI/CallCenterWeb.UI/CommonHtml/shizhang.html

@@ -18,6 +18,16 @@
18 18
 					<td> <input type="text" id="superuser"/></td>
19 19
 				</tr>
20 20
 				<tr>
21
+					<th class="Importent">附件:</th>
22
+					<td> 
23
+						<span class="fjnr"></span>
24
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
25
+								<input class="input" type="button" value="上传" id="scwj" />
26
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
27
+								<input type="hidden" id="file" />
28
+					</td>
29
+				</tr>
30
+				<tr>
21 31
 					<th class="Importent">批示内容:</th>
22 32
 					<td colspan="2"><textarea  id="superopinion" name="" rows="" cols=""></textarea></td>
23 33
 				</tr>
@@ -30,6 +40,17 @@
30 40
 		<script>
31 41
 			var wid = helper.request.queryString("wid");
32 42
 			$(document).ready(function() {
43
+				//上传附件
44
+				$("#scwj").click(function() {
45
+					$("#upFile").trigger("click");
46
+				})
47
+				$("#upFile").change(function() {
48
+					upload();
49
+				})
50
+				$("#scfj").click(function() {
51
+					$(".fjnr").text("");
52
+					$("#scfj").hide();
53
+				})
33 54
 				$(".btns").click(function(){
34 55
 					if($("#superopinion").val()==''){
35 56
 						layer.msg("意见不能为空");
@@ -43,6 +64,7 @@
43 64
 				$.post(huayi.config.callcenter_url + 'WorkOrder/SuperWorkOrder', {
44 65
 					workorderid: wid,
45 66
 					type:2,//(1领导批示 2市长指示)
67
+					files:$("#file").val(),
46 68
 					superuser:$("#superuser").val(),//批示人&
47 69
 					superopinion:$('#superopinion').val(),//批示内容&
48 70
 					"token": $.cookie("token")
@@ -58,6 +80,57 @@
58 80
 					}
59 81
 				})
60 82
 			}
83
+			//上传文件
84
+			function upload() {
85
+				var Files = document.getElementById("upFile").files;
86
+				if(Files.length > 0) {
87
+					var formData = new FormData();
88
+					for(var i = 0; i < Files.length; i++) {
89
+						formData.append('file' + i, Files[i]);
90
+					}
91
+					formData.append("token", $.cookie("token"));
92
+					$.ajax({
93
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
94
+						type: "POST",
95
+						data: formData,
96
+						/**
97
+						 *必须false才会自动加上正确的Content-Type
98
+						 */
99
+						contentType: false,
100
+						/**
101
+						 * 必须false才会避开jQuery对 formdata 的默认处理
102
+						 * XMLHttpRequest会对 formdata 进行正确的处理
103
+						 */
104
+						processData: false,
105
+						success: function(result) {
106
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
107
+							$("#upFile").change(function() {
108
+								upload();
109
+							});
110
+							var r = $.parseJSON(result);
111
+							if(r.state.toLowerCase() == "success") {
112
+								$(".fjnr").text(r.data[0].F_FileName);
113
+								var a = r.data;
114
+								var str = '';
115
+								var Str;
116
+
117
+								$(a).each(function(i, n) {
118
+									console.log(n.F_FileId);
119
+									str += n.F_FileId + ",";
120
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
121
+									console.log(Str);
122
+								})
123
+								$("#file").val(Str);
124
+								$("#scfj").show();
125
+							}
126
+						}
127
+					});
128
+				} else {
129
+					layer.confirm('请上传文件!', {
130
+						btn: ['确定']
131
+					});
132
+				}
133
+			}
61 134
 		</script>
62 135
 	</body>
63 136
 

+ 109 - 0
WebUI/CallCenterWeb.UI/WebSite/weiBo.html

@@ -0,0 +1,109 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <title>微博列表</title>
10
+    <style>
11
+        .treeTable {
12
+            height: 400px;
13
+            /*overflow-y: auto;*/
14
+        }
15
+        .content {
16
+            width: 270px;
17
+            height: 100%;
18
+            overflow: hidden;
19
+            white-space: nowrap;
20
+            text-overflow: ellipsis;
21
+            text-align: left;
22
+            cursor: pointer;
23
+        }
24
+    </style>
25
+</head>
26
+
27
+<body>
28
+    <div class="container-fluid">
29
+        <div class="daoHang clearfix">
30
+            <div class="dhLeft">
31
+                <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">后台管理</a>&gt;<a href="" class="nowPosition">微博列表</a></sapn>
32
+            </div>
33
+            <div class="dhRight"><i class="fa fa-refresh"></i></div>
34
+        </div>
35
+        <div class="treeTable clearfix">
36
+            <div class="tableCon col-md-9">
37
+                <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
38
+                    <thead>
39
+                        <tr>
40
+                            <th data-align="W_Id">微博ID</th>
41
+                            <th data-field="W_Text" data-align="center"  data-formatter="detail">微博信息</th>
42
+                            <th data-field="W_Source" data-align="left">关联</th>
43
+                            <th data-field="W_Name" data-align="left" >发布人</th>
44
+                            <th data-field="W_Created_at" data-align="left" >发布时间</th>
45
+                            <th data-field="W_Url" data-align="left" >操作</th>
46
+                        </tr>
47
+                    </thead>
48
+                    <tbody id="tbody"></tbody>
49
+                </table>
50
+
51
+            </div>
52
+        </div>
53
+    </div>
54
+    <script src="../css/layer/layer.js"></script>
55
+    <script src="../js/weiBo.js"></script>
56
+</body>
57
+<script>
58
+	var table=$('#table1');
59
+	function initTable() {
60
+	//先销毁表格
61
+	table.bootstrapTable('destroy');
62
+	//初始化表格,动态从服务器加载数据
63
+	table.bootstrapTable({
64
+		method: "get", //使用get请求到服务器获取数据
65
+		url: huayi.config.callcenter_url + "WeiBo/WeiBoList", //获取数据的Servlet地址
66
+		contentType: "application/x-www-form-urlencoded",
67
+		striped: true, //表格显示条纹
68
+		pagination: true, //启动分页
69
+		pageSize: 10, //每页显示的记录数
70
+		pageNumber: 1, //当前第几页
71
+		pageList: [10, 20, 50, 100], //记录数可选列表
72
+		search: false, //是否启用查询
73
+		showColumns: false, //显示下拉框勾选要显示的列
74
+		showRefresh: false, //显示刷新按钮
75
+		sidePagination: "server", //表示服务端请求
76
+		//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
77
+		//设置为limit可以获取limit, offset, search, sort, order
78
+		queryParamsType: "undefined",
79
+		queryParams: function queryParams(params) { //设置查询参数
80
+			var param = {
81
+				page: params.pageNumber,
82
+				pagesize: params.pageSize,
83
+				token:$.cookie("token")
84
+			};
85
+			return param;
86
+		},
87
+		onLoadSuccess: function() { //加载成功时执行
88
+			//layer.msg("加载成功");
89
+		},
90
+		onLoadError: function() { //加载失败时执行
91
+			//layer.msg("加载数据失败", { time: 1500, icon: 2 });
92
+		}
93
+	});
94
+}
95
+	
96
+function detail(val,row){
97
+	return'<div class="content" onclick="goDetail('+ row.W_Id+')">'+ val +'</div>'
98
+}
99
+//跳转详情页
100
+function goDetail(did){
101
+	top.$("iframe:visible")[0].src = "zhiShiKu/zhiShiKuDetail.html?id="+did;
102
+}
103
+
104
+	
105
+	
106
+
107
+</script>
108
+
109
+</html>

+ 58 - 0
WebUI/CallCenterWeb.UI/WebSite/weiBoDetail.html

@@ -0,0 +1,58 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <title>微博详情</title>
10
+    <style>
11
+        .treeTable {
12
+            height: 400px;
13
+            /*overflow-y: auto;*/
14
+        }
15
+        .content {
16
+            width: 270px;
17
+            height: 100%;
18
+            overflow: hidden;
19
+            white-space: nowrap;
20
+            text-overflow: ellipsis;
21
+            text-align: left;
22
+            cursor: pointer;
23
+        }
24
+    </style>
25
+</head>
26
+
27
+<body>
28
+    <div class="container-fluid">
29
+        <div class="daoHang clearfix">
30
+            <div class="dhLeft">
31
+                <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">后台管理</a>&gt;<a href="" class="nowPosition">微博信息详情</a></sapn>
32
+            </div>
33
+            <div class="dhRight"><i class="fa fa-refresh"></i></div>
34
+        </div>
35
+        <div class="treeTable clearfix">
36
+            <div class="tableCon col-md-9">
37
+                <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
38
+                    <thead>
39
+                        <tr>
40
+                            <th data-align="W_Id">微博ID</th>
41
+                            <th data-field="W_Text" data-align="center"  data-formatter="detail">微博信息</th>
42
+                            <th data-field="W_Source" data-align="left">关联</th>
43
+                            <th data-field="W_Name" data-align="left" >发布人</th>
44
+                            <th data-field="W_Created_at" data-align="left" >发布时间</th>
45
+                            <th data-field="W_Url" data-align="left" >操作</th>
46
+                        </tr>
47
+                    </thead>
48
+                    <tbody id="tbody"></tbody>
49
+                </table>
50
+
51
+            </div>
52
+        </div>
53
+    </div>
54
+    <script src="../css/layer/layer.js"></script>
55
+    <script src="../js/weiBo.js"></script>
56
+</body>
57
+
58
+</html>

+ 48 - 0
WebUI/CallCenterWeb.UI/js/weiBo.js

@@ -0,0 +1,48 @@
1
+	var table=$('#table1');
2
+	function initTable() {
3
+	//先销毁表格
4
+	table.bootstrapTable('destroy');
5
+	//初始化表格,动态从服务器加载数据
6
+	table.bootstrapTable({
7
+		method: "get", //使用get请求到服务器获取数据
8
+		url: huayi.config.callcenter_url + "WeiBo/WeiBoList", //获取数据的Servlet地址
9
+		contentType: "application/x-www-form-urlencoded",
10
+		striped: true, //表格显示条纹
11
+		pagination: true, //启动分页
12
+		pageSize: 10, //每页显示的记录数
13
+		pageNumber: 1, //当前第几页
14
+		pageList: [10, 20, 50, 100], //记录数可选列表
15
+		search: false, //是否启用查询
16
+		showColumns: false, //显示下拉框勾选要显示的列
17
+		showRefresh: false, //显示刷新按钮
18
+		sidePagination: "server", //表示服务端请求
19
+		//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
20
+		//设置为limit可以获取limit, offset, search, sort, order
21
+		queryParamsType: "undefined",
22
+		queryParams: function queryParams(params) { //设置查询参数
23
+			var param = {
24
+				page: params.pageNumber,
25
+				pagesize: params.pageSize,
26
+				token:$.cookie("token")
27
+			};
28
+			return param;
29
+		},
30
+		onLoadSuccess: function() { //加载成功时执行
31
+			//layer.msg("加载成功");
32
+		},
33
+		onLoadError: function() { //加载失败时执行
34
+			//layer.msg("加载数据失败", { time: 1500, icon: 2 });
35
+		}
36
+	});
37
+}
38
+	
39
+function detail(val,row){
40
+	return'<div class="content" onclick="goDetail('+ row.W_Id+')">'+ val +'</div>'
41
+}
42
+//跳转详情页
43
+function goDetail(did){
44
+	top.$("iframe:visible")[0].src = "WebSite/weiBoDetail.html?id="+did;
45
+}
46
+
47
+	
48
+