|
@@ -96,22 +96,22 @@ function resizeBox(){
|
|
|
function dateChange(){
|
|
|
$(".monthYear .mon").click(function(){
|
|
|
$(this).css({
|
|
|
- backgroundColor:'#5A8EEE',
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
color:'#fff'
|
|
|
}).siblings().css({
|
|
|
- color:'#5A8EEE',
|
|
|
- backgroundColor:'#fff'
|
|
|
+ color:'#fff',
|
|
|
+ backgroundColor:'#203463'
|
|
|
})
|
|
|
dateType = 1
|
|
|
getBarData(1)
|
|
|
})
|
|
|
$(".monthYear .year").click(function(){
|
|
|
$(this).css({
|
|
|
- backgroundColor:'#5A8EEE',
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
color:'#fff'
|
|
|
}).siblings().css({
|
|
|
- color:'#5A8EEE',
|
|
|
- backgroundColor:'#fff'
|
|
|
+ color:'#fff',
|
|
|
+ backgroundColor:'#203463'
|
|
|
})
|
|
|
dateType = 2
|
|
|
getBarData(2)
|
|
@@ -304,7 +304,8 @@ function getBarData(type){
|
|
|
}).then((res)=>{
|
|
|
let data = res.data;
|
|
|
if(data.code == 0){
|
|
|
- let result1 = data.data['各模块缺陷占比排行']||[]
|
|
|
+ let result1 = data.data['各模块缺陷占比排行']||[];
|
|
|
+ result1.length>8?result1.length=8:"";
|
|
|
queList(result1)
|
|
|
}
|
|
|
})
|
|
@@ -395,7 +396,7 @@ function part02pan(data,dom){
|
|
|
let color = ['#37CBCB','#dedede'];
|
|
|
let echartData = data;
|
|
|
option = {
|
|
|
- backgroundColor: bgColor,
|
|
|
+ //backgroundColor: bgColor,
|
|
|
color: color,
|
|
|
title: [{
|
|
|
text:'{val|' + echartData[0].percentStr + '}',
|
|
@@ -405,7 +406,7 @@ function part02pan(data,dom){
|
|
|
rich: {
|
|
|
val: {
|
|
|
fontSize: 14,
|
|
|
- color: '#333',
|
|
|
+ color: '#fff',
|
|
|
fontWeight: 'bold',
|
|
|
padding: [10, 0]
|
|
|
},
|
|
@@ -460,7 +461,7 @@ function lineChart(dataX,dataY){
|
|
|
left: 0,
|
|
|
textStyle: {
|
|
|
fontSize: 14,
|
|
|
- color:'#666666',
|
|
|
+ color:'#fff',
|
|
|
fontWeight: 400
|
|
|
}
|
|
|
}],
|
|
@@ -502,7 +503,7 @@ function lineChart(dataX,dataY){
|
|
|
},
|
|
|
axisLine: {//x轴
|
|
|
lineStyle:{
|
|
|
- color:'#AAAAAA'
|
|
|
+ color:'#fff'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -511,7 +512,7 @@ function lineChart(dataX,dataY){
|
|
|
axisLabel: {
|
|
|
formatter: '{value} %',
|
|
|
textStyle: {
|
|
|
- color: '#333333'
|
|
|
+ color: '#fff'
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -568,7 +569,7 @@ function lineChartSpecial(dataX,dataY){
|
|
|
},
|
|
|
axisLabel: {//x轴刻度
|
|
|
textStyle: {
|
|
|
- color: '#333'
|
|
|
+ color: '#fff'
|
|
|
},
|
|
|
rotate:45,
|
|
|
formatter: function (value) {
|
|
@@ -581,7 +582,7 @@ function lineChartSpecial(dataX,dataY){
|
|
|
},
|
|
|
axisLine: {//x轴
|
|
|
lineStyle:{
|
|
|
- color:'#AAAAAA'
|
|
|
+ color:'#fff'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -597,12 +598,12 @@ function lineChartSpecial(dataX,dataY){
|
|
|
},
|
|
|
axisLabel: {//y轴刻度
|
|
|
textStyle: {
|
|
|
- color: '#333333'
|
|
|
+ color: '#fff'
|
|
|
}
|
|
|
},
|
|
|
splitLine:{//分割线
|
|
|
lineStyle:{
|
|
|
- color:'#EFF3FC'
|
|
|
+ color:'#4A5D8E'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -614,7 +615,7 @@ function lineChartSpecial(dataX,dataY){
|
|
|
left: 10,
|
|
|
textStyle: {
|
|
|
fontSize: 14,
|
|
|
- color:'#666666',
|
|
|
+ color:'#fff',
|
|
|
fontWeight: 400
|
|
|
}
|
|
|
}],
|
|
@@ -660,7 +661,7 @@ function barChartPay(dataX,dataY){
|
|
|
},
|
|
|
axisLabel: {//x轴刻度
|
|
|
textStyle: {
|
|
|
- color: '#333'
|
|
|
+ color: '#fff'
|
|
|
},
|
|
|
rotate:45,
|
|
|
formatter: function (value) {
|
|
@@ -689,12 +690,12 @@ function barChartPay(dataX,dataY){
|
|
|
},
|
|
|
axisLabel: {//y轴刻度
|
|
|
textStyle: {
|
|
|
- color: '#333333'
|
|
|
+ color: '#fff'
|
|
|
}
|
|
|
},
|
|
|
splitLine:{//分割线
|
|
|
lineStyle:{
|
|
|
- color:'#EFF3FC'
|
|
|
+ color:'#4A5D8E'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -706,7 +707,7 @@ function barChartPay(dataX,dataY){
|
|
|
left: 10,
|
|
|
textStyle: {
|
|
|
fontSize: 14,
|
|
|
- color:'#666666',
|
|
|
+ color:'#fff',
|
|
|
fontWeight: 400
|
|
|
}
|
|
|
}],
|
|
@@ -839,7 +840,7 @@ function barChart(data,type){
|
|
|
left: 10,
|
|
|
textStyle: {
|
|
|
fontSize: 14,
|
|
|
- color:'#666666',
|
|
|
+ color:'#fff',
|
|
|
fontWeight: 400
|
|
|
}
|
|
|
}],
|
|
@@ -849,6 +850,9 @@ function barChart(data,type){
|
|
|
right:15,
|
|
|
top:15,
|
|
|
selectedMode:false,
|
|
|
+ textStyle:{
|
|
|
+ color:'#fff'
|
|
|
+ },
|
|
|
formatter: function (name) {
|
|
|
return name;
|
|
|
}
|
|
@@ -873,7 +877,7 @@ function barChart(data,type){
|
|
|
data: dataX,
|
|
|
axisLabel: {//x轴刻度
|
|
|
textStyle: {
|
|
|
- color: '#333'
|
|
|
+ color: '#fff'
|
|
|
},
|
|
|
rotate:'45',
|
|
|
formatter: function (value) {
|
|
@@ -886,7 +890,7 @@ function barChart(data,type){
|
|
|
},
|
|
|
axisLine: {//x轴
|
|
|
lineStyle:{
|
|
|
- color:'#AAAAAA'
|
|
|
+ color:'#4A5D8E'
|
|
|
}
|
|
|
},
|
|
|
}
|
|
@@ -900,9 +904,14 @@ function barChart(data,type){
|
|
|
axisTick: {
|
|
|
show: false
|
|
|
},
|
|
|
+ axisLabel: {//y轴刻度
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ },
|
|
|
splitLine:{//分割线
|
|
|
lineStyle:{
|
|
|
- color:'#EFF3FC'
|
|
|
+ color:'#4A5D8E'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -941,7 +950,7 @@ function emptyCircle(data){
|
|
|
$(window).resize(function(){
|
|
|
myChart.resize()
|
|
|
});
|
|
|
- let bgColor = '#fff';
|
|
|
+ let bgColor = '#203463';
|
|
|
let title = '总量';
|
|
|
let color = ['#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336','#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336'];
|
|
|
let echartData = data;
|
|
@@ -950,7 +959,7 @@ function emptyCircle(data){
|
|
|
total += echartData[i].num
|
|
|
}
|
|
|
option = {
|
|
|
- backgroundColor: bgColor,
|
|
|
+ /*backgroundColor: bgColor,*/
|
|
|
color: color,
|
|
|
title: [{
|
|
|
text: data.length>0?'{val|' + total + '}\n{name|' + title + '}':'',
|
|
@@ -960,14 +969,14 @@ function emptyCircle(data){
|
|
|
rich: {
|
|
|
val: {
|
|
|
fontSize: 24,
|
|
|
- color: '#333',
|
|
|
+ color: '#fff',
|
|
|
fontWeight: 'bold',
|
|
|
padding: [10, 0]
|
|
|
},
|
|
|
name: {
|
|
|
fontSize: 12,
|
|
|
fontWeight: 'normal',
|
|
|
- color: '#777',
|
|
|
+ color: '#fff',
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1035,7 +1044,7 @@ function emptyCircleB(data){
|
|
|
$(window).resize(function(){
|
|
|
myChart.resize()
|
|
|
});
|
|
|
- let bgColor = '#fff';
|
|
|
+ let bgColor = '#203463';
|
|
|
let title = '总量';
|
|
|
let color = ['#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336','#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336'];
|
|
|
let echartData = data;
|
|
@@ -1044,7 +1053,7 @@ function emptyCircleB(data){
|
|
|
total += echartData[i].num
|
|
|
}
|
|
|
option = {
|
|
|
- backgroundColor: bgColor,
|
|
|
+ /*backgroundColor: bgColor,*/
|
|
|
color: color,
|
|
|
title: [{
|
|
|
text: data.length>0?'{val|' + total + '}\n{name|' + title + '}':'',
|
|
@@ -1054,14 +1063,14 @@ function emptyCircleB(data){
|
|
|
rich: {
|
|
|
val: {
|
|
|
fontSize: 24,
|
|
|
- color: '#333',
|
|
|
+ color: '#fff',
|
|
|
fontWeight: 'bold',
|
|
|
padding: [10, 0]
|
|
|
},
|
|
|
name: {
|
|
|
fontSize: 12,
|
|
|
fontWeight: 'normal',
|
|
|
- color: '#777',
|
|
|
+ color: '#fff',
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1137,7 +1146,7 @@ function queList(data){
|
|
|
for(let i = 0;i < data.length;i++){
|
|
|
strAll += `
|
|
|
<tr>
|
|
|
- <td style="text-align:center;"><i style="background:${i < 3?'#bea571':'#eff3fc'};color:${i < 3?'#fff':'#999'};">${i+1}</i></td>
|
|
|
+ <td style="text-align:center;"><i style="background:${i < 3?'#ECB22E':'#526186'};color:${i < 3?'#fff':'#B7BDCC'};">${i+1}</i></td>
|
|
|
<td><p class="td02name">${data[i].name}</p></td>
|
|
|
<td>${data[i].num}</td>
|
|
|
<td>${data[i].percentStr}</td>
|