Преглед на файлове

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/12345_Base_Web

fanlongfei преди 8 години
родител
ревизия
ca05dd4bdf

+ 27 - 18
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -104,8 +104,11 @@
104 104
 						<tr>
105 105
 							<th>附件上传:</th>
106 106
 							<td colspan="7">
107
+								<div class="fileBox">
108
+									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
109
+								</div>
107 110
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
108
-								<span class="fjnr"></span>
111
+								<!--<span class="fjnr"></span>-->
109 112
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
110 113
 								<input class="input" type="button" value="上传" id="scwj" />
111 114
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
@@ -183,11 +186,8 @@
183 186
 					}else{
184 187
 						$(".Nows_box").hide();
185 188
 					}
186
-					
187 189
 				})
188
-				
189 190
 				$(".BC").click(function() {
190
-
191 191
 					submit = 0;
192 192
 					Add();
193 193
 				})
@@ -203,8 +203,8 @@
203 203
 					upload();
204 204
 				})
205 205
 				$("#scfj").click(function() {
206
-					$(".fjnr").text("");
207
-					$("#scfj").hide();
206
+//					$(".fjnr").text("");
207
+//					$("#scfj").hide();
208 208
 				})
209 209
 			});
210 210
 
@@ -228,7 +228,6 @@
228 228
 				    layer.msg("请输入直办内容");
229 229
 
230 230
 				} else {
231
-
232 231
 					$.ajax({
233 232
 						type: "post",
234 233
 						url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
@@ -258,8 +257,8 @@
258 257
 						},
259 258
 						success: function(data) {
260 259
 							Clean();
260
+							$('.fileBox').html('');
261 261
 							layer.msg("创建工单成功");
262
-
263 262
 						}
264 263
 					});
265 264
 				}
@@ -294,19 +293,17 @@
294 293
 							});
295 294
 							var r = $.parseJSON(result);
296 295
 							if(r.state.toLowerCase() == "success") {
297
-								$(".fjnr").text(r.data[0].F_FileName);
296
+//								$(".fjnr").text(r.data[0].F_FileName);
298 297
 								var a = r.data;
299
-								var str = '';
300
-								var Str;
301
-
302 298
 								$(a).each(function(i, n) {
303
-									console.log(n.F_FileId);
304
-									str += n.F_FileId + ",";
305
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
306
-									console.log(Str);
299
+								var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
300
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
301
+									event.stopPropagation();
302
+									$(this).parent().remove();
303
+										file_num()
304
+								})
307 305
 								})
308
-								$("#file").val(Str);
309
-								$("#scfj").show();
306
+							file_num()
310 307
 							}
311 308
 						}
312 309
 					});
@@ -316,6 +313,18 @@
316 313
 					});
317 314
 				}
318 315
 			}
316
+			//上传文件隐藏域值
317
+			function file_num(){
318
+				var str = '';
319
+				var Str;
320
+				$('.fileBox .files').each(function(j,m){
321
+					var aa=$(m).attr("fiel-num")
322
+					console.log(aa);
323
+					str += aa + ",";
324
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
325
+				})
326
+				$("#file").val(Str);	
327
+			}
319 328
 			//来源
320 329
 			function LY(obj) {
321 330
 				obj.empty();

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

@@ -658,7 +658,7 @@
658 658
 				layer.open({
659 659
 					type: 2,
660 660
 					content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
661
-					title: '领导批示',
661
+					title: '市长批示',
662 662
 					area: ['60%', '80%'], //宽高
663 663
 				});
664 664
 			}

+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeal.html

@@ -91,8 +91,10 @@
91 91
 						<tr>
92 92
 							<th>附件上传:</th>
93 93
 							<td colspan="7">
94
-								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
-								<span class="fjnr"></span>
94
+								<div class="fileBox">
95
+									
96
+								</div>
97
+								<!--<span class="fjnr"></span>-->
96 98
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97 99
 								<input class="input" type="button" value="上传" id="scwj" />
98 100
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
@@ -185,10 +187,10 @@
185 187
 				$("#upFile").change(function() {
186 188
 					upload();
187 189
 				})
188
-				$("#scfj").click(function() {
189
-					$(".fjnr").text("");
190
-					$("#scfj").hide();
191
-				})
190
+//				$("#scfj").click(function() {
191
+//					$(".fjnr").text("");
192
+//					$("#scfj").hide();
193
+//				})
192 194
 				$(".SavedSubmit").click(function() {
193 195
 					submit = 1;
194 196
 					Add()
@@ -227,8 +229,15 @@
227 229
 							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
228 230
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
229 231
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
230
-							console.log(Data);
231
-
232
+							$(Data[0].File).each(function(k,q){
233
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
234
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
235
+									event.stopPropagation();
236
+									$(this).parent().remove();
237
+										file_num()
238
+								})
239
+								file_num()
240
+							})
232 241
 						}
233 242
 					})
234 243
 
@@ -291,12 +300,25 @@
291 300
 								parent.layer.close(index); //再执行关闭
292 301
 								parent.load();
293 302
 								parent.layer.msg(data.message);
303
+								$('.fileBox').html('');
294 304
 							}
295 305
 
296 306
 						}
297 307
 					});
298 308
 				}
299 309
 			}
310
+				//上传文件隐藏域值
311
+			function file_num(){
312
+				var str = '';
313
+				var Str;
314
+				$('.fileBox .files').each(function(j,m){
315
+					var aa=$(m).attr("fiel-num")
316
+					console.log(aa);
317
+					str += aa + ",";
318
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
319
+				})
320
+				$("#file").val(Str);	
321
+			}
300 322
 			//来源
301 323
 			function LY(obj) {
302 324
 				obj.empty();
@@ -387,19 +409,18 @@
387 409
 							});
388 410
 							var r = $.parseJSON(result);
389 411
 							if(r.state.toLowerCase() == "success") {
390
-								$(".fjnr").text(r.data[0].F_FileName);
391 412
 								var a = r.data;
392
-								var str = '';
393
-								var Str;
394
-
395 413
 								$(a).each(function(i, n) {
396
-									console.log(n.F_FileId);
397
-									str += n.F_FileId + ",";
398
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
399
-									console.log(Str);
414
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
415
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
416
+									event.stopPropagation();
417
+									$(this).parent().remove();
418
+										file_num()
419
+								})
400 420
 								})
401
-								$("#file").val(Str);
402
-								$("#scfj").show();
421
+//								$("#file").val(Str);
422
+//								$("#scfj").show();
423
+									file_num()
403 424
 							}
404 425
 						}
405 426
 					});

+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeals.html

@@ -98,11 +98,14 @@
98 98
 						<tr>
99 99
 							<th>附件上传:</th>
100 100
 							<td colspan="7">
101
+								<div class="fileBox">
102
+									
103
+								</div>
101 104
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
102
-								<span class="fjnr"></span>
105
+								<!--<span class="fjnr"></span>-->
103 106
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
104 107
 								<input class="input" type="button" value="上传" id="scwj" />
105
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
108
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
106 109
 								<input type="hidden" id="file" />
107 110
 							</td>
108 111
 						</tr>
@@ -192,10 +195,10 @@
192 195
 				$("#upFile").change(function() {
193 196
 					upload();
194 197
 				})
195
-				$("#scfj").click(function() {
196
-					$(".fjnr").text("");
197
-					$("#scfj").hide();
198
-				})
198
+//				$("#scfj").click(function() {
199
+//					$(".fjnr").text("");
200
+//					$("#scfj").hide();
201
+//				})
199 202
 				$(".SavedSubmit").click(function() {
200 203
 					submit = 1;
201 204
 					Add()
@@ -235,8 +238,15 @@
235 238
 							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
236 239
 							$('.F_SourceAddress').val(Data[0].F_SourceAddress);
237 240
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
238
-							console.log(Data);
239
-
241
+							$(Data[0].File).each(function(k,q){
242
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
243
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
244
+									event.stopPropagation();
245
+									$(this).parent().remove();
246
+										file_num()
247
+								})
248
+								file_num()
249
+							})
240 250
 						}
241 251
 					})
242 252
 
@@ -301,6 +311,7 @@
301 311
 								parent.layer.close(index); //再执行关闭
302 312
 								parent.load();
303 313
 								parent.layer.msg(data.message);
314
+									$('.fileBox').html('');
304 315
 							}
305 316
 
306 317
 						}
@@ -397,19 +408,17 @@
397 408
 							});
398 409
 							var r = $.parseJSON(result);
399 410
 							if(r.state.toLowerCase() == "success") {
400
-								$(".fjnr").text(r.data[0].F_FileName);
411
+//								$(".fjnr").text(r.data[0].F_FileName);
401 412
 								var a = r.data;
402
-								var str = '';
403
-								var Str;
404
-
405 413
 								$(a).each(function(i, n) {
406
-									console.log(n.F_FileId);
407
-									str += n.F_FileId + ",";
408
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
409
-									console.log(Str);
414
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
415
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
416
+									event.stopPropagation();
417
+									$(this).parent().remove();
418
+										file_num();
419
+									})
410 420
 								})
411
-								$("#file").val(Str);
412
-								$("#scfj").show();
421
+								file_num();
413 422
 							}
414 423
 						}
415 424
 					});
@@ -419,6 +428,18 @@
419 428
 					});
420 429
 				}
421 430
 			}
431
+					//上传文件隐藏域值
432
+			function file_num(){
433
+				var str = '';
434
+				var Str;
435
+				$('.fileBox .files').each(function(j,m){
436
+					var aa=$(m).attr("fiel-num")
437
+					console.log(aa);
438
+					str += aa + ",";
439
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
440
+				})
441
+				$("#file").val(Str);	
442
+			}
422 443
 		</script>
423 444
 	</body>
424 445
 

+ 33 - 16
WebUI/CallCenterWeb.UI/CommonHtml/Leader.html

@@ -39,10 +39,13 @@
39 39
 				<tr>
40 40
 					<th>附件上传:</th>
41 41
 					<td colspan="7">
42
-						<span class="fjnr"></span>
42
+						<!--<span class="fjnr"></span>-->
43
+							<div class="fileBox">
44
+							
45
+						</div>
43 46
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
44 47
 								<input class="input" type="button" value="上传" id="scwj" />
45
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
48
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
46 49
 								<input type="hidden" id="file" />
47 50
 					</td>
48 51
 				</tr>
@@ -63,10 +66,10 @@
63 66
 				$("#upFile").change(function() {
64 67
 					upload();
65 68
 				})
66
-				$("#scfj").click(function() {
67
-					$(".fjnr").text("");
68
-					$("#scfj").hide();
69
-				})
69
+//				$("#scfj").click(function() {
70
+//					$(".fjnr").text("");
71
+//					$("#scfj").hide();
72
+//				})
70 73
 				$(".btns").click(function(){
71 74
 					JA();
72 75
 				})
@@ -88,6 +91,7 @@
88 91
                     parent.layer.close(index); //再执行关闭
89 92
 						  parent.load();
90 93
 						  parent.layer.msg("操作成功");
94
+						  $('.fileBox').html('');
91 95
                   	
92 96
 					}
93 97
 				})
@@ -120,19 +124,16 @@
120 124
 							});
121 125
 							var r = $.parseJSON(result);
122 126
 							if(r.state.toLowerCase() == "success") {
123
-								$(".fjnr").text(r.data[0].F_FileName);
124 127
 								var a = r.data;
125
-								var str = '';
126
-								var Str;
127
-
128 128
 								$(a).each(function(i, n) {
129
-									console.log(n.F_FileId);
130
-									str += n.F_FileId + ",";
131
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
132
-									console.log(Str);
129
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
130
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
131
+										event.stopPropagation();
132
+										$(this).parent().remove();
133
+											file_num();
134
+									});
133 135
 								})
134
-								$("#file").val(Str);
135
-								$("#scfj").show();
136
+								file_num();
136 137
 							}
137 138
 						}
138 139
 					});
@@ -142,6 +143,22 @@
142 143
 					});
143 144
 				}
144 145
 			}
146
+			
147
+			
148
+			//上传文件隐藏域值
149
+			function file_num(){
150
+				var str = '';
151
+				var Str;
152
+				$('.fileBox .files').each(function(j,m){
153
+					var aa=$(m).attr("fiel-num")
154
+					console.log(aa);
155
+					str += aa + ",";
156
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
157
+				})
158
+				$("#file").val(Str);	
159
+			}
160
+			
161
+			
145 162
 		</script>
146 163
 	</body>
147 164
 

+ 35 - 18
WebUI/CallCenterWeb.UI/CommonHtml/Supervision_.html

@@ -35,11 +35,14 @@
35 35
 				<tr>
36 36
 					<th>附件上传:</th>
37 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" />
38
+						<!--<span class="fjnr"></span>-->
39
+						<div class="fileBox">
40
+									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
41
+						</div>
42
+						<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
43
+						<input class="input" type="button" value="上传" id="scwj" />
44
+						<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
45
+						<input type="hidden" id="file" />
43 46
 					</td>
44 47
 				</tr>
45 48
 			</table>
@@ -83,10 +86,10 @@
83 86
 				$("#upFile").change(function() {
84 87
 					upload();
85 88
 				})
86
-				$("#scfj").click(function() {
87
-					$(".fjnr").text("");
88
-					$("#scfj").hide();
89
-				})
89
+//				$("#scfj").click(function() {
90
+//					$(".fjnr").text("");
91
+//					$("#scfj").hide();
92
+//				})
90 93
 			})
91 94
 			//督察
92 95
 			function JA() {
@@ -104,7 +107,7 @@
104 107
 						parent.layer.close(index); //再执行关闭
105 108
 						parent.load();
106 109
 						parent.layer.msg("操作成功");
107
-
110
+							$('.fileBox').html('');
108 111
 					}
109 112
 				})
110 113
 			}
@@ -139,17 +142,18 @@
139 142
 							if(r.state.toLowerCase() == "success") {
140 143
 								$(".fjnr").text(r.data[0].F_FileName);
141 144
 								var a = r.data;
142
-								var str = '';
143
-								var Str;
145
+//								var str = '';
146
+//								var Str;
144 147
 
145 148
 								$(a).each(function(i, n) {
146
-									console.log(n.F_FileId);
147
-									str += n.F_FileId + ",";
148
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
149
-									console.log(Str);
149
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
150
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
151
+									event.stopPropagation();
152
+									$(this).parent().remove();
153
+										file_num();
154
+								})
150 155
 								})
151
-								$("#file").val(Str);
152
-								$("#scfj").show();
156
+								file_num();
153 157
 							}
154 158
 						}
155 159
 					});
@@ -159,6 +163,19 @@
159 163
 					});
160 164
 				}
161 165
 			}
166
+			
167
+				//上传文件隐藏域值
168
+			function file_num(){
169
+				var str = '';
170
+				var Str;
171
+				$('.fileBox .files').each(function(j,m){
172
+					var aa=$(m).attr("fiel-num")
173
+					console.log(aa);
174
+					str += aa + ",";
175
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
176
+				})
177
+				$("#file").val(Str);	
178
+			}
162 179
 		</script>
163 180
 	</body>
164 181
 

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html


+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/XGwordel.html

@@ -91,11 +91,14 @@
91 91
 						<tr>
92 92
 							<th>附件上传:</th>
93 93
 							<td colspan="7">
94
+								<div class="fileBox">
95
+									
96
+								</div>
94 97
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
-								<span class="fjnr"></span>
98
+								<!--<span class="fjnr"></span>-->
96 99
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97 100
 								<input class="input" type="button" value="上传" id="scwj" />
98
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
101
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
99 102
 								<input type="hidden" id="file" />
100 103
 							</td>
101 104
 						</tr>
@@ -173,10 +176,10 @@
173 176
 				$("#upFile").change(function() {
174 177
 					upload();
175 178
 				})
176
-				$("#scfj").click(function() {
177
-					$(".fjnr").text("");
178
-					$("#scfj").hide();
179
-				})
179
+//				$("#scfj").click(function() {
180
+//					$(".fjnr").text("");
181
+//					$("#scfj").hide();
182
+//				})
180 183
 				$(".SavedSubmit").click(function() {
181 184
 					submit = 1;
182 185
 					Add()
@@ -215,8 +218,15 @@
215 218
 							
216 219
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
217 220
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
218
-							console.log(Data);
219
-
221
+							$(Data[0].File).each(function(k,q){
222
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
223
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
224
+									event.stopPropagation();
225
+									$(this).parent().remove();
226
+										file_num()
227
+								})
228
+								file_num()
229
+							})
220 230
 						}
221 231
 					})
222 232
 
@@ -274,6 +284,8 @@
274 284
 								parent.layer.close(index); //再执行关闭
275 285
 								parent.load();
276 286
 								parent.layer.msg(data.message);
287
+								$('.fileBox').html('');
288
+								
277 289
 							}
278 290
 
279 291
 						}
@@ -370,19 +382,16 @@
370 382
 							});
371 383
 							var r = $.parseJSON(result);
372 384
 							if(r.state.toLowerCase() == "success") {
373
-								$(".fjnr").text(r.data[0].F_FileName);
374 385
 								var a = r.data;
375
-								var str = '';
376
-								var Str;
377
-
378 386
 								$(a).each(function(i, n) {
379
-									console.log(n.F_FileId);
380
-									str += n.F_FileId + ",";
381
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
382
-									console.log(Str);
387
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
388
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
389
+									event.stopPropagation();
390
+									$(this).parent().remove();
391
+										file_num();
392
+										})
383 393
 								})
384
-								$("#file").val(Str);
385
-								$("#scfj").show();
394
+									file_num();
386 395
 							}
387 396
 						}
388 397
 					});
@@ -392,6 +401,18 @@
392 401
 					});
393 402
 				}
394 403
 			}
404
+					//上传文件隐藏域值
405
+			function file_num(){
406
+				var str = '';
407
+				var Str;
408
+				$('.fileBox .files').each(function(j,m){
409
+					var aa=$(m).attr("fiel-num")
410
+					console.log(aa);
411
+					str += aa + ",";
412
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
413
+				})
414
+				$("#file").val(Str);	
415
+			}
395 416
 		</script>
396 417
 	</body>
397 418
 

+ 28 - 16
WebUI/CallCenterWeb.UI/CommonHtml/shizhang.html

@@ -35,7 +35,9 @@
35 35
 				<tr>
36 36
 					<th class="Importent">附件:</th>
37 37
 					<td> 
38
-						<span class="fjnr"></span>
38
+						<div class="fileBox">
39
+							
40
+						</div>
39 41
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
40 42
 								<input class="input" type="button" value="上传" id="scwj" />
41 43
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
@@ -63,10 +65,10 @@
63 65
 				$("#upFile").change(function() {
64 66
 					upload();
65 67
 				})
66
-				$("#scfj").click(function() {
67
-					$(".fjnr").text("");
68
-					$("#scfj").hide();
69
-				})
68
+//				$("#scfj").click(function() {
69
+//					$(".fjnr").text("");
70
+//					$("#scfj").hide();
71
+//				})
70 72
 				$(".btns").click(function(){
71 73
 					if($("#superopinion").val()==''){
72 74
 						layer.msg("意见不能为空");
@@ -92,7 +94,7 @@
92 94
                     parent.layer.close(index); //再执行关闭
93 95
 						  parent.load();
94 96
 						  parent.layer.msg("操作成功");
95
-                  	
97
+						  $('.fileBox').html('');
96 98
 					}
97 99
 				})
98 100
 			}
@@ -125,19 +127,16 @@
125 127
 							});
126 128
 							var r = $.parseJSON(result);
127 129
 							if(r.state.toLowerCase() == "success") {
128
-								$(".fjnr").text(r.data[0].F_FileName);
129 130
 								var a = r.data;
130
-								var str = '';
131
-								var Str;
132
-
133 131
 								$(a).each(function(i, n) {
134
-									console.log(n.F_FileId);
135
-									str += n.F_FileId + ",";
136
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
137
-									console.log(Str);
132
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
133
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
134
+										event.stopPropagation();
135
+										$(this).parent().remove();
136
+											file_num();
137
+									})
138 138
 								})
139
-								$("#file").val(Str);
140
-								$("#scfj").show();
139
+							file_num();
141 140
 							}
142 141
 						}
143 142
 					});
@@ -147,6 +146,19 @@
147 146
 					});
148 147
 				}
149 148
 			}
149
+			
150
+				//上传文件隐藏域值
151
+			function file_num(){
152
+				var str = '';
153
+				var Str;
154
+				$('.fileBox .files').each(function(j,m){
155
+					var aa=$(m).attr("fiel-num")
156
+					console.log(aa);
157
+					str += aa + ",";
158
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
159
+				})
160
+				$("#file").val(Str);	
161
+			}
150 162
 		</script>
151 163
 	</body>
152 164
 

+ 29 - 0
WebUI/CallCenterWeb.UI/YeWu/businessBrief.html

@@ -10,6 +10,7 @@
10 10
     <link href="../css/init.css" rel="stylesheet" />
11 11
     <script src="../js/laydate/laydate.js"></script>
12 12
     <script src="../js/jquery.table2excel.js"></script>
13
+    <!--<script src="../js/excellentexport.js"></script>-->
13 14
     <style>
14 15
         .Shows {
15 16
             display: block !important;
@@ -211,6 +212,7 @@
211 212
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="endTimes_1" /></span>
212 213
                                 <button class="btns search_1">查询</button>
213 214
                                 <button class="btns export_1">导出</button>
215
+                                <!--<a id="export_1" class="btns export_1" href="">导出</a>-->
214 216
                             </div>
215 217
                         </div>
216 218
                         <!--startprint1-->
@@ -539,6 +541,7 @@
539 541
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" /></span>
540 542
                                 <button class="btns search_2">查询</button>
541 543
                                 <button class="btns export_2">导出</button>
544
+                                <!--<a id="export_2" class="btns export_2" href="">导出</a>-->
542 545
                             </div>
543 546
                         </div>
544 547
                         <!--startprint2-->
@@ -994,6 +997,22 @@
994 997
             initTableBrief(briefIndex);
995 998
         });
996 999
         $(".export_1").click(function () {
1000
+
1001
+            //var url = huayi.config.callcenter_url + "DataAnalysis/GetSimpleReport?token=" + $.cookie("token");
1002
+            //url += "&html=" + encodeURIComponent($("#weeklist").html()) + "&isdc=1";
1003
+            //$(".export_1").attr('href', url);
1004
+
1005
+            //return ExcellentExport.convert({
1006
+            //    anchor: 'export_1',
1007
+            //    filename: '业务简报周报',
1008
+            //    format: 'xlsx'
1009
+            //}, [{
1010
+            //    name: 'Sheet',
1011
+            //    from: {
1012
+            //        table: 'weeklist'
1013
+            //    }
1014
+            //}]);
1015
+
997 1016
             $("#weeklist").table2excel({
998 1017
                 exclude: ".noExl",
999 1018
                 name: "业务简报周报",
@@ -1004,6 +1023,16 @@
1004 1023
             });
1005 1024
         });
1006 1025
         $(".export_2").click(function () {
1026
+            //return ExcellentExport.convert({
1027
+            //    anchor: 'export_2',
1028
+            //    filename: '业务简报月报',
1029
+            //    format: 'xlsx'
1030
+            //}, [{
1031
+            //    name: 'Sheet',
1032
+            //    from: {
1033
+            //        table: 'monthlist'
1034
+            //    }
1035
+            //}]);
1007 1036
             $("#monthlist").table2excel({
1008 1037
                 exclude: ".noExl",
1009 1038
                 name: "业务简报月报",

+ 41 - 8
WebUI/CallCenterWeb.UI/css/init.css

@@ -280,11 +280,44 @@
280 280
 	background-color: #00A1CB;
281 281
 }
282 282
 .Reds{
283
-				color:#ed5565;
284
-			}
285
-			.Greens{
286
-				color: #46be8a;
287
-			}
288
-			.Yellows{
289
-				color: #FF9800;
290
-			}
283
+		color:#ed5565;
284
+	}
285
+	.Greens{
286
+		color: #46be8a;
287
+	}
288
+	.Yellows{
289
+		color: #FF9800;
290
+	}
291
+	/*工单上传附件*/
292
+	.files{
293
+			display: inline-block;
294
+			background: #666;
295
+		    color: #fff!important;
296
+		    font-size: 12px;
297
+		    padding: 0 5px!important;
298
+			border: 0!important;
299
+			margin-left: 8px!important;
300
+			    margin-bottom: 3px;
301
+		}
302
+		.files i{
303
+			margin-left: 3px;
304
+			color: #a9a5a5;
305
+			cursor: pointer;
306
+		}
307
+		.files:hover i{
308
+			color: #fff;
309
+		}
310
+		#scwj{
311
+			padding: 0 12px!important;
312
+			outline: none;
313
+		}
314
+		#scwj:hover{
315
+			background: #03a0cb;
316
+			color: #fff;
317
+			transition: .25s;
318
+		}
319
+		.fileBox{
320
+			display: inline-block;
321
+		}
322
+
323
+

+ 0 - 3
WebUI/CallCenterWeb.UI/css/wh.css

@@ -85,7 +85,6 @@ body {
85 85
     display: none !important;
86 86
    
87 87
 }
88
-
89 88
 .img {
90 89
     display: block;
91 90
     width: 27px;
@@ -95,11 +94,9 @@ body {
95 94
     right: 0;
96 95
     top: 15px;
97 96
 }
98
-
99 97
 .WH_Itop {
100 98
     position: relative;
101 99
 }
102
-
103 100
     .WH_Itop input {
104 101
         width: 100%;
105 102
         font-size: 30px;

+ 1 - 1
WebUI/CallCenterWeb.UI/index.html

@@ -1185,7 +1185,7 @@
1185 1185
 						<li><span style="font-size: 20px;" class="khgsd"></span></li>
1186 1186
 						<!-- <li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
1187 1187
 						<li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
1188
-						<li class="lahei">
1188
+						<li class="lahei" style="display: none;">
1189 1189
 							<div class="la-before"><i class="push"></i> 移至黑名单</div>
1190 1190
 							<div class="la-after" style="display: none;">
1191 1191
 								<p class="la-time">拉黑时间:<span class="lhtime"></span></p>

Файловите разлики са ограничени, защото са твърде много
+ 18 - 0
WebUI/CallCenterWeb.UI/js/excellentexport.js


+ 19 - 3
WebUI/CallCenterWeb.UI/js/main.js

@@ -1494,15 +1494,31 @@ function loadZSK() {
1494 1494
 		if(result.state.toLowerCase() == "success") {
1495 1495
 			$(".ldcr-bottom .detail-con ul").empty();
1496 1496
 			$(result.data).each(function(i, n) {
1497
-				var html = '<li>' +
1497
+				var key_w=$(".search").val();
1498
+			 		if(key_w){
1499
+			 			var after_w=n.F_Title.replace(key_w,'<span style="color:red;">'+ key_w +'</span>');
1500
+			 			var html = '<li>' +
1498 1501
 					'   <div class="zhishi-title clearfix">' +
1499
-					'	    <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
1502
+					'	    <a href="javascript:void(0);" class="titless" >' + after_w+ '</a>'+
1500 1503
 					'	    <em >' + n.F_CreateOn + '</em>' +
1501 1504
 					'   </div>' +
1502 1505
 					'   <div class="explancon">' +
1503 1506
 					n.F_Content +
1504 1507
 					'   </div>' +
1505 1508
 					'</li>';
1509
+			 		}else{
1510
+			 			var html = '<li>' +
1511
+					'   <div class="zhishi-title clearfix">' +
1512
+					'	    <a href="javascript:void(0);" class="titless" >' + n.F_Title+ '</a>'+
1513
+					'	    <em >' + n.F_CreateOn + '</em>' +
1514
+					'   </div>' +
1515
+					'   <div class="explancon">' +
1516
+					n.F_Content +
1517
+					'   </div>' +
1518
+					'</li>';
1519
+			 		}
1520
+
1521
+					
1506 1522
 				$(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function(event) {
1507 1523
 					event.stopPropagation();
1508 1524
 					if($(this).hasClass("active")) {
@@ -1514,9 +1530,9 @@ function loadZSK() {
1514 1530
 				})
1515 1531
 			})
1516 1532
 		}
1533
+		
1517 1534
 	})
1518 1535
 }
1519
-
1520 1536
 //外呼弹屏
1521 1537
 function whtp() {
1522 1538
 	$("#Result").val("");