miaofuhao 1 год назад
Родитель
Сommit
99ae48cd23
2 измененных файлов с 28 добавлено и 8 удалено
  1. 24 3
      WebChartNewest/js/second_index.js
  2. 4 5
      WebChartNewest/js/workOrder.js

+ 24 - 3
WebChartNewest/js/second_index.js

2248
 	})
2248
 	})
2249
 
2249
 
2250
 	keywordName.reverse();
2250
 	keywordName.reverse();
2251
+	
2252
+//	调度专题饼状图数据设置
2251
 	option = {
2253
 	option = {
2252
-		legend: keylegend,
2254
+//		legend: keylegend,
2253
 		color: ['#008aff', '#88ffb7', '#00bba7', '#fddb6a', '#fb6a76',
2255
 		color: ['#008aff', '#88ffb7', '#00bba7', '#fddb6a', '#fb6a76',
2254
 			'#ff0000', '#e5a0ff', '#9b56ff', '#8200f0', '#68f6ff',
2256
 			'#ff0000', '#e5a0ff', '#9b56ff', '#8200f0', '#68f6ff',
2255
 			'#FF8352', '#E271DE', '#F8456B', '#3751E6', '#FFC722',
2257
 			'#FF8352', '#E271DE', '#F8456B', '#3751E6', '#FFC722',
2259
 			name: '访问来源',
2261
 			name: '访问来源',
2260
 			type: 'pie',
2262
 			type: 'pie',
2261
 			radius: '58%',
2263
 			radius: '58%',
2264
+//			center: ['50%', '43%'],
2262
 			data: piData,
2265
 			data: piData,
2263
 			emphasis: {
2266
 			emphasis: {
2264
 				itemStyle: {
2267
 				itemStyle: {
2267
 					shadowColor: 'rgba(0, 0, 0, 0.5)'
2270
 					shadowColor: 'rgba(0, 0, 0, 0.5)'
2268
 				}
2271
 				}
2269
 			},
2272
 			},
2273
+			// 修改字体颜色的代码begin
2274
+            itemStyle: {
2275
+                  normal: {
2276
+                      label: {
2277
+                          textStyle: {
2278
+                            color:'#fff',
2279
+                              fontSize: 14,
2280
+                              fontWeight:'bolder'
2281
+                          }
2282
+                      },
2283
+                    labelLine : {
2284
+                          lineStyle:{
2285
+                            color:'#fff'
2286
+                          }
2287
+                      }
2288
+                  }
2289
+              },
2290
+            // 修改字体颜色的代码end
2270
 			label: {
2291
 			label: {
2271
 				normal: {
2292
 				normal: {
2272
-					show: false,
2293
+					show: true,
2273
 					formatter: function (params) {
2294
 					formatter: function (params) {
2274
 //						if (params.name.length > 9 && params.name.length < 35) {
2295
 //						if (params.name.length > 9 && params.name.length < 35) {
2275
 //							return params.name.substring(0, 20) + '\n' + params.name.substring(20, params.name.length) + ':' + (allCount > 0 ? (params.value.toString() + '(' + (params.value/allCount).toFixed(2) + '%)') : params.value.toString();
2296
 //							return params.name.substring(0, 20) + '\n' + params.name.substring(20, params.name.length) + ':' + (allCount > 0 ? (params.value.toString() + '(' + (params.value/allCount).toFixed(2) + '%)') : params.value.toString();
2280
 //
2301
 //
2281
 //						}
2302
 //						}
2282
 
2303
 
2283
-return params.name + ':' + (allCount > 0 ? (params.value.toString() + '(' + (params.value/allCount *100).toFixed(2) + '%)') : params.value.toString());
2304
+						return params.name + ':' + (allCount > 0 ? (params.value.toString() + '(' + (params.value/allCount *100).toFixed(2) + '%)') : params.value.toString());
2284
 					}
2305
 					}
2285
 				},
2306
 				},
2286
 				emphasis: {
2307
 				emphasis: {

+ 4 - 5
WebChartNewest/js/workOrder.js

299
 	$('.acceptType').text(" ");
299
 	$('.acceptType').text(" ");
300
 	$('.isSecrecy').text(" ");
300
 	$('.isSecrecy').text(" ");
301
 	$('.workNo').text(' '); //工单编号
301
 	$('.workNo').text(' '); //工单编号
302
-	$('#files').text(' '); //工单编号
302
+	$('#filesSecnod').html(' '); //工单附件
303
 	$('.acceptNumber').text(' '); //受理人工号
303
 	$('.acceptNumber').text(' '); //受理人工号
304
 	$('.acceptName').text(' '); //受理人
304
 	$('.acceptName').text(' '); //受理人
305
 	$('.contacts').text(' '); //来单联系人
305
 	$('.contacts').text(' '); //来单联系人
410
 					}
410
 					}
411
 				})
411
 				})
412
 				
412
 				
413
-				$('#files').append(str);
413
+//				$('#files').append(str);
414
 				$('#filesSecnod').append(str);
414
 				$('#filesSecnod').append(str);
415
 			}
415
 			}
416
 			
416
 			
433
 		$('.workList').show();
433
 		$('.workList').show();
434
 		$('.workList').siblings().hide()
434
 		$('.workList').siblings().hide()
435
 	})
435
 	})
436
-	console.log(id)
437
 	$(".workDetailsHandle").show()
436
 	$(".workDetailsHandle").show()
438
 	$('.urgency').text(' ');
437
 	$('.urgency').text(' ');
439
 	$('.workState').text(" ");
438
 	$('.workState').text(" ");
440
 	$('.acceptType').text(" ");
439
 	$('.acceptType').text(" ");
441
 	$('.isSecrecy').text(" ");
440
 	$('.isSecrecy').text(" ");
442
 	$('.workNo').text(' '); //工单编号
441
 	$('.workNo').text(' '); //工单编号
443
-	$('#files').text(' '); //工单编号
442
+	$('#files').html(' '); //工单编号
444
 	$('.acceptNumber').text(' '); //受理人工号
443
 	$('.acceptNumber').text(' '); //受理人工号
445
 	$('.acceptName').text(' '); //受理人
444
 	$('.acceptName').text(' '); //受理人
446
 	$('.contacts').text(' '); //来单联系人
445
 	$('.contacts').text(' '); //来单联系人
461
 		url: huayi.config.callcenter_url + "/InfoNew/GetWorkOrder",
460
 		url: huayi.config.callcenter_url + "/InfoNew/GetWorkOrder",
462
 		data: {
461
 		data: {
463
 			token: $.cookie("token"),
462
 			token: $.cookie("token"),
464
-			workorderid: id
463
+			workorderid: id,
465
 		},
464
 		},
466
 		Type: 'GET',
465
 		Type: 'GET',
467
 		callBack: function(res) {
466
 		callBack: function(res) {