miaofuhao 1 年之前
父節點
當前提交
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,8 +2248,10 @@ function theme_chart(dom, nameArray, piData) {
2248 2248
 	})
2249 2249
 
2250 2250
 	keywordName.reverse();
2251
+	
2252
+//	调度专题饼状图数据设置
2251 2253
 	option = {
2252
-		legend: keylegend,
2254
+//		legend: keylegend,
2253 2255
 		color: ['#008aff', '#88ffb7', '#00bba7', '#fddb6a', '#fb6a76',
2254 2256
 			'#ff0000', '#e5a0ff', '#9b56ff', '#8200f0', '#68f6ff',
2255 2257
 			'#FF8352', '#E271DE', '#F8456B', '#3751E6', '#FFC722',
@@ -2259,6 +2261,7 @@ function theme_chart(dom, nameArray, piData) {
2259 2261
 			name: '访问来源',
2260 2262
 			type: 'pie',
2261 2263
 			radius: '58%',
2264
+//			center: ['50%', '43%'],
2262 2265
 			data: piData,
2263 2266
 			emphasis: {
2264 2267
 				itemStyle: {
@@ -2267,9 +2270,27 @@ function theme_chart(dom, nameArray, piData) {
2267 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 2291
 			label: {
2271 2292
 				normal: {
2272
-					show: false,
2293
+					show: true,
2273 2294
 					formatter: function (params) {
2274 2295
 //						if (params.name.length > 9 && params.name.length < 35) {
2275 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,7 +2301,7 @@ function theme_chart(dom, nameArray, piData) {
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 2307
 				emphasis: {

+ 4 - 5
WebChartNewest/js/workOrder.js

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